Replies: 3 comments 10 replies
-
Which Linux distribution are you running ?
When you do
Does this binary works in terminal ?
|
Beta Was this translation helpful? Give feedback.
-
Yes, I get the same path when I run 'which quatro' in VSCODE. The quarto.path box is blank within the settings. Above the blank box it says "A path to the Quarto CLI executable. By default, the extension looks for Quarto CLI in the PATH, but if set, will use the path specified instead." And the box under this is blank. So it should already be looking for the executable using the PATH if I understand correctly? Is it possible that the .qmd file I have open in VSCODE is not 'looking' in my WSL2 side of my computer? Although the .qmd file is saved in a folder within the WSL2 part and that is also where Quarto is installed. But could it somehow be trying to run the code on the windows side of my computer? If that makes any sense?! |
Beta Was this translation helpful? Give feedback.
-
Yes, the problem remains still with the updated version of the quarto extension. I saw the message "Unknown language in contributes.grammars.language. Provided value: typst" when I hovered my cursor over the quarto extension in the extensions marketplace. But now that message seems to have disappared. I think from some more digging the problem may be that VS Code is by default looking on the windows side of my computer for everything (and not the WSL2 side). I notice that when I try to run the test script 'hello.qmd' from the 'getting started' tutorial on the quarto website it fails and and a python error "ModuleNotFoundError: No module named 'numpy'". I can see at the top of the interactive screen that it has found a version of python in the windows side of my computer (and is thus not using the version on my WSL2 side). Is there some way I can force VS Code to look for programs etc on the WSL2 side of my computer? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have installed quarto within WSL2. I use VS code. When I try to use quarto on the command line within the terminal window in VS code it seems to work ok (i.e. it renders a pdf from example code given in the 'getting started' tutorial on the quarto website). But when I try to use quarto in the file view window e.g. to press preview and see a rendered pdf i get an error message saying "Quarto installation not found". So it seems it's not finding the quarto installation within WSL2 when I try to use it in the viewing window. I looked through the discussion forum and found some posts about needing to specify the path to the quarto CLI executable in the extensions settings within VS code. But I'm quite new to working on the command line & VS code (sorry!) and not 100% sure where the executable for quarto is on my computer. I found an executable file called 'quarto' within /usr/local/bin/. I tried specifying this as the path to the Quarto CLI execuatble as
"quarto.path": "/opt/quarto/bin/quarto"
but that gives the error message "Unable to find specified quarto execuatble". Any advice or thoughts would be really welcome! Thank you.
Beta Was this translation helpful? Give feedback.
All reactions