REditorSupport / REditorSupport/vscode-R
Extension activation fails due to missing R Syntax dependency and command 'r.executeInTerminal' not found
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Environment
- OS: macOS 14.5.0 (Darwin 24.5.0)
- VS Code/Cursor Version: Cursor (VS Code fork)
- R Extension Version: 2.8.6
- R Version: 4.4.1 (2024-06-14) -- "Race for Your Life"
- R Path:
/usr/local/bin/R
Problem Description
The R extension fails to activate properly with two main issues:
Issue 1: Missing R Syntax Dependency
When attempting to activate the R extension, the following error occurs:
Cannot activate the 'R' extension because it depends on the 'R Syntax' extension from 'REditorSupport', which is not installed. Would you like to install the extension and reload the window?
However, when attempting to install the R Syntax extension (REditorSupport.r-syntax), installation fails with:
Error while installing extension reditorsupport.r-syntax: Signature verification was not executed.
Failed Installing Extensions: reditorsupport.r-syntax
Issue 2: Command Not Found
When trying to execute R code using Cmd+Enter, the following error occurs:
command 'r.executeInTerminal' not found
Steps to Reproduce
-
Install R extension (
REditorSupport.r) via command line:code --install-extension REditorSupport.r -
Open an R file in VS Code/Cursor
-
Try to activate R extension features or use Cmd+Enter to execute code
-
Observe the dependency error and command not found error
Expected Behavior
- R extension should activate without dependency issues
- Cmd+Enter should execute R code in terminal
- R syntax highlighting should work properly
Current Workaround
Currently using terminal-based R execution:
R --no-save --no-restore
Configuration Attempted
Added the following to .vscode/settings.json:
{
"r.rterm.mac": "/usr/local/bin/R",
"r.rpath.mac": "/usr/local/bin/R",
"r.rterm.option": [
"--no-save",
"--no-restore"
],
"r.sessionWatcher": true,
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"r.alwaysUseActiveTerminal": true,
"r.rtermSendDelay": 8
}
Additional Information
- R is properly installed and accessible via command line
languageserverpackage is installed in R- The issue appears to be related to extension dependencies and command registration
- Multiple R extensions were previously installed, which may have caused conflicts (now cleaned up)
Suggested Solutions
- Fix R Syntax Dependency: Either bundle R syntax with main extension or fix the signature verification issue for the separate R Syntax extension
- Command Registration: Ensure
r.executeInTerminalcommand is properly registered during extension activation - Better Error Handling: Provide clearer error messages and fallback options when dependencies fail to install
Related Issues
This may be related to recent changes in extension packaging or VS Code marketplace signature verification requirements.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing R extension activation, the R Syntax dependency installation, and registration of the r.executeInTerminal command. Reproduce the dependency and command errors using the listed installation steps and configuration; done means the extension activates, syntax support installs, and Cmd+Enter executes R code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100