Skip to content

Commit 58e5dc8

Browse files
Handle errors in juliaup check better (#305)
* Handle errors in `juliaup` check better * Pin R to 4.3.3
1 parent e756c80 commit 58e5dc8

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- uses: r-lib/actions/setup-r@bd49c52ffe281809afa6f0fecbf37483c5dd0b93 # v2.11.3
8989
with:
9090
use-public-rspm: true
91-
r-version: "4.3"
91+
r-version: "4.3.3"
9292
- run: echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
9393
if: matrix.os == 'ubuntu-latest'
9494
- run: julia -e 'cp("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", joinpath(dirname(Sys.BINDIR), "lib", "julia", "libstdc++.so.6"); force = true)'

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [v0.17.3] - 2025-05-19
11+
12+
### Fixed
13+
14+
- Handle `ENOENT` error in `has_juliaup` when `juliaup` binary is not found [#305]
15+
1016
## [v0.17.2] - 2025-05-15
1117

1218
### Fixed
@@ -376,6 +382,7 @@ caching is enabled. Delete this folder to clear the cache. [#259]
376382
[v0.17.0]: https://github.com/PumasAI/QuartoNotebookRunner.jl/releases/tag/v0.17.0
377383
[v0.17.1]: https://github.com/PumasAI/QuartoNotebookRunner.jl/releases/tag/v0.17.1
378384
[v0.17.2]: https://github.com/PumasAI/QuartoNotebookRunner.jl/releases/tag/v0.17.2
385+
[v0.17.3]: https://github.com/PumasAI/QuartoNotebookRunner.jl/releases/tag/v0.17.3
379386
[#9]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/9
380387
[#11]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/11
381388
[#14]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/14
@@ -452,3 +459,4 @@ caching is enabled. Delete this folder to clear the cache. [#259]
452459
[#299]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/299
453460
[#303]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/303
454461
[#304]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/304
462+
[#305]: https://github.com/PumasAI/QuartoNotebookRunner.jl/issues/305

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "QuartoNotebookRunner"
22
uuid = "4c0109c6-14e9-4c88-93f0-2b974d3468f4"
33
authors = ["Michael Hatherly <[email protected]>", "Julius Krumbiegel <[email protected]>"]
4-
version = "0.17.2"
4+
version = "0.17.3"
55

66
[deps]
77
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"

src/server.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ mutable struct File
6161
end
6262
end
6363

64-
_has_juliaup() = success(`juliaup --version`) && success(`julia --version`)
64+
function _has_juliaup()
65+
try
66+
success(`juliaup --version`) && success(`julia --version`)
67+
catch error
68+
return false
69+
end
70+
end
6571

6672
function _julia_exe(exeflags)
6773
# Find the `julia` executable to use for this worker process. If the

0 commit comments

Comments
 (0)