Skip to content
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

Run command in Terminal errors with "Cannot read properties of undefined (reading 'replace')" #1530

Open
kassi opened this issue May 23, 2024 · 0 comments
Labels

Comments

@kassi
Copy link

kassi commented May 23, 2024

Describe the bug
Unable to run any code / file in R terminal.
Always getting an error dialog:

Command 'R: Run Command in Terminal' resulted in an error
Cannot read properties of undefined (reading 'split')

or when executing "R: Run command with editor path in terminal"

** Command 'R: Run Command With Editor Path in Terminal' resulted in an error**
Cannot read properties of undefined (reading 'replace')

To Reproduce
Steps to reproduce the behavior:

  1. Install R via homebrew brew install r
  2. Install R extension from REditorSupport
  3. Open R file
  4. Execute "R: Create R terminal"
  5. Execute "R: Run command in terminal"

Can you fix this issue by yourself? (We appreciate the help)

No

setting.json

// R path for Mac OS X
"r.rpath.mac": "/opt/homebrew/bin/R",

Expected behavior
Program is run in R terminal.

Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode

Environment (please complete the following information):

  • OS: macOS 14.4
  • VSCode Version: 1.89.1
  • R Version: 4.4.0
  • vscode-R version: 2.8.4

Additional context

@kassi kassi added the bug label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant