REditorSupport / REditorSupport/vscode-R

Extension activation fails due to missing R Syntax dependency and command 'r.executeInTerminal' not found

Open
#1,622 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Install R extension (REditorSupport.r) via command line:

    code --install-extension REditorSupport.r
    
  2. Open an R file in VS Code/Cursor

  3. Try to activate R extension features or use Cmd+Enter to execute code

  4. 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
  • languageserver package 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

  1. Fix R Syntax Dependency: Either bundle R syntax with main extension or fix the signature verification issue for the separate R Syntax extension
  2. Command Registration: Ensure r.executeInTerminal command is properly registered during extension activation
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.