-
Notifications
You must be signed in to change notification settings - Fork 26
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
VS Code extension: Rmd does not export symbols #488
Comments
If you check out posit-dev/positron#3982, you will see that @artmg also observes this problem in VS Studio, not only Positron. FWIW folks have not been able to reproduce this problem. We'll need to find a way to look at logs and/or debug what may be causing the Quarto extension not to contribute these symbols. |
Looking through @juliasilge If it helps I can use
Happy to supply further diagnostics if you can offer me a little direction, please. |
Can you check on a couple of things @artmg?
|
Thank you for your suggestions, I had a look at the config files... find ~ -iname "*rprofile*"
find ~ -iname "settings.json" but I had no .RProfile and I could not find anything obvious in any relevant settings.json. However this inspired me to try the perhaps desperate option to prove if it could work purge and start againI uninstalled Positron AND VSCode I purged the following folders
just Positron - successfully see symbolsI went to Positron releases and installed Positron-2024.09.0-1.dmg When I open the add vscode - fails in thereWhen I go back to try vscode: ❯ brew install visual-studio-code
❯ code --install-extension quarto.quarto
Installing extensions...
Installing extension 'quarto.quarto'...
Extension 'quarto.quarto' v1.114.0 was successfully installed.
❯ code . I now get an empty outline with even dev version - fails in there too❯ code --uninstall-extension quarto.quarto
❯ cd ..
❯ git clone [email protected]:quarto-dev/quarto.git
Cloning into 'quarto'...
[...] Receiving objects [...] done.
❯ cd quarto
Uninstalling quarto.quarto...
Extension 'quarto.quarto' was successfully uninstalled!
❯ corepack enable
❯ yarn
yarn install v1.22.22
[...]
[4/4] 🔨 Building fresh packages...
✨ Done in xx.36s.
❯ code .
❯ yarn dev-vscode
yarn run v1.22.22
$ turbo run dev --filter quarto...
[...]
quarto-vscode-editor:dev: build started...
[...]
quarto-vscode-markdownit:dev: built in xx108ms.
quarto-vscode-markdownit:dev: [vite-plugin-static-copy] Copied 7 items. Using Run and Debug to start up a new code instance as the 'extension development host' also gives Good news and badSo it's great that I got Positron itself working ok, which was my original goal – and it still works after vscode was installed. Perhaps not so great that I did not get the quarto extension in vscode to work, nor that it's not clear why not. Should I do further tests @juliasilge to see if I can remove everything and get just the quarto extension working in vscode? Even if it means putting off trying out Positron for the time being. |
Wow, thank you so much for sharing what you tried here @artmg! Can you clarify here for me:
Do I understand you correctly that after you install VS Code, you get no symbols found in Positron? Next question from me: what happens if you install VS Code but not the Quarto extension in VS Code? Do you get the symbols in Positron? Another question: what happens if you install VS Code from their official installers rather than via brew? |
Sorry for the ambiguity - I hope I improved it above to clarify that the failures were all in vscode with quarto. Positron is still working just fine, even after vscode is installed. Next I can try removing everything and purging files, then just installing VS Code (officially) and try the quarto extension. Likely next week now :) |
Try vscode and quarto aloneand this time use the official image to install purge and start again
# remove vscode and stray configs
brew uninstall visual-studio-code
rm -rf ~/Library/Application Support/Positron/
rm -rf ~/Library/Application Support/Code/
rm -rf ~/.positron/
rm -rf ~/.vscode-R/
rm -rf ~/.vscode/
VS Code no extnWith NO extensions at all, you can see that the Rmd has an 'R' icon, but is recognised as Plain Text and exports no symbols, which is what one would expect VS Code with Quarto extnInstalling Quarto extension does give the qmd file an icon, and both .qmd and .Rmd are recognised as Quarto language, but still no symbols can be found. PositronFortunately when I re-install Positron, opening the Rmd inside Positron SummaryUpon a totally clean install...
I am happy that I can carry on using Positron now that I have a clean install, but please do ask if you'd like any further diagnostics on the VS Code Quarto extension on its own |
PS: I tried to add a comment to the original posit-dev/positron#3982 but it has been locked - @juliasilge might it be worth adding a footnote in that issue, please, mentioning the resolution for Positron?
Thanks |
The Quarto extension fails to provide symbols for an R Markdown document such as scratch.Rmd (content below). The issue prevents:
This occurs in
Positron Version: 2024.07.0 (Universal) build 21
Code - OSS Version: 1.90.0
Commit: 82b335e27545e804b7fd806db00477a6eb49951d
Date: 2024-07-09T04:32:26.804Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Also in Quarto v1.113.0 in VS Code
If I install
REditorSupport.r
extension then the R Markdown document symbols appear as normal, but not in the Quarto extension.This issue was previously raised as Positron Issue #3982 and now transcribed here at the request of @juliasilge
Code for scratch.Rmd for testing is below:
The text was updated successfully, but these errors were encountered: