-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call the kaleido binary directly (fixes permission errors on Windows and Julia 1.10) #17
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
83b3dfe
point to kaleido.exe directly on windows
disberd 4080fc0
try alternative
disberd 0058f31
remove hanging stuff
disberd 565fcdf
remove `@test_nowarn` on start()
disberd 8d8f725
put bck test_nowarn on non-windows
disberd c462fc1
warn about windows problem on README
disberd f678ac4
testnowarn error
disberd ebe9ff2
revert test_nowarn error
disberd be759e4
Throw an error with a suggestion fix if kaleido seems to hang
disberd 6fab6e3
fix noblock function as bytesavailable does not work here
disberd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
using Test | ||
import Pkg | ||
if Sys.iswindows() | ||
# Fix kaleido tests on windows due to [email protected] hanging | ||
Pkg.add(;name = "Kaleido_jll", version = "0.1") | ||
end | ||
@test_nowarn @eval using PlotlyKaleido | ||
|
||
@testset "Start" begin | ||
@test_nowarn PlotlyKaleido.start() | ||
@testset "Start" begin | ||
if Sys.iswindows() | ||
PlotlyKaleido.start() | ||
else | ||
@test_nowarn PlotlyKaleido.start() | ||
end | ||
@test PlotlyKaleido.is_running() | ||
end | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the error message here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you are referring to the removal of
@test_nowarn
, you can check the error in the latest CI on windows here but I will also paste it here:Error
I was also quite baffled by this error and I kept getting it also locally. But calling
PlotlyKaleido.start()
without@test_nowarn
does not produce the warning triggering the error..At some point I thought it might be some quirk of downgrading kaleido_jll as part of the runtest file but at least locally I tried setting the Project compat on Kaleido_jll to version 0.1 but I still kept getting that error with
@test_nowarn