Fix test environment configuration of Julia on Windows #12244
Merged
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.
Note
I found that my Windows 11's built-in Windows PowerShell has the following issue while the one I downloaded from Microsoft Store does not. The version of the former is
5.1and that of the latter is7.5.0. Still, I suggest a fix that works in both versions.Description
On Linux, I verified that test environment configuration of Julia works with the following lines of code:
quarto-cli/tests/configure-test-env.sh
Lines 39 to 45 in 1eb9e51
What if the double quotes in
"IJulia"were omitted? Then it would not work as the following log shows:In fact, the very same error happens on Windows unlike on Linux with the following lines of code because of incomplete escape of double quotes with backticks(
`):quarto-cli/tests/configure-test-env.ps1
Lines 33 to 37 in 1eb9e51
I selected the second option from the following four approaches because it works both on Windows 11's built-in Windows PowerShell (version
5.1) and Microsoft Store's PowerShell (version7.5.0), and the single quotes are also used in the corresponding Linux command:Checklist
I have (if applicable):