quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
332 stars 29 forks source link

Quarto VS Code extension not working? #325

Open dmonder opened 11 months ago

dmonder commented 11 months ago

I am using VS Code 1.84.2, Quarto 1.4.451, and Quarto extension 1.107.0. When I try to switch to Visual Mode, I see Activating Extensions... in the status bar, and then it goes away. The editor does not change its mode in any way. I created a screen recording of how it "works" on my machine. Not sure what I am doing wrong.

https://github.com/quarto-dev/quarto/assets/2252189/ad916cc6-1daf-45b5-882d-81d9419a47f3

jjallaire commented 11 months ago

Interesting, I'm not able to repro that! What platform are you running on?

One thing to do would be to open up the panel and check the "Debug Console" for activity. You could also check the "Output" tab and specifically the "Extension Host" output sync. One of these might give a more granular error message.

dmonder commented 11 months ago

Sorry, this is on Windows 11 Enterprise Version 21H2 OS Build 22000.2600.

Looking at the Debug Console under Developer Tools shows no errors. Nor did the "Output" tab. I created a profile with just the Quarto extension and it works. Now I need to figure out which extension is interfering with Quarto. I will post a response when I figure that out.

Cglezf commented 10 months ago

I have the seme version on Mac 14.1.1 Apple M2 Pro. Quarto 1.3.450 and don't exist the folder "tools" in the path to the error. Actually, in ./bin folder so exist the pandoc and quarto files.

Unexpected Error Loading Editor </> Return to Source Mode Request pandoc_list_extensions failed with message: spawn .../bin/tools/pandoc ENOENT

In the Debug Console Tab is empty (also, problem and output tabs)

` [✓] Checking versions of quarto binary dependencies... Pandoc version 3.1.1: OK Dart Sass version 1.58.3: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.3.450 Path: /opt/mamba/envs/mcd/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK Version: 3.12.0 (Conda) Path: /opt/mamba/envs/mcd/bin/python Jupyter: 5.5.0 Kernels: ir42, ir, python3

(-) Checking Jupyter engine render....0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. 0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. [✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK Version: 4.3.2 Path: /opt/mamba/envs/mcd/lib/R LibPaths:

[✓] Checking Knitr engine render......OK `

Screenshot 2023-11-28 at 11 24 37 p m

Cglezf commented 10 months ago

@dmonder

It just needs to create a folder .../bin/tools and copy the pandoc executable file.

This must solve the Devs fixing the correct path

jjallaire commented 10 months ago

I haven't actually seen or worked with a mamba distribution of Quarto, I'm guessing it is locating the pandoc binary in a place that we don't expect?

artur-sannikov commented 1 month ago

I have the same issue with Quarto and Pandoc installed via Nix Home-manager.

jairav commented 2 weeks ago

on Mac OS Sequoia (15.0), Positron (2024.09.0 Universal) Quarto (1.5.57) through miniforge (conda 24.9.1) this fixed it for me:

ln -s /opt/homebrew/Caskroom/miniforge/base/bin/pandoc /opt/homebrew/Caskroom/miniforge/base/bin/tools/aarch64/pandoc

Looks like this is still an outstanding issue that needs to be addressed.

cscheid commented 2 weeks ago

@jairav Our installers bundle Quarto; if that makes a difference for you, I suspect you're using a third-party Quarto installer. In that case, we cannot offer support.

jairav commented 2 weeks ago

@jairav Our installers bundle Quarto; if that makes a difference for you, I suspect you're using a third-party Quarto installer. In that case, we cannot offer support.

I understand. I need to control my environments quite strictly at my organization - so I am installing quarto through conda-forge::quarto . I also see that there is a conda-forge::r-quarto and a r::r-quarto on Anaconda's available channels. I wonder if any of these is better (or recommended).