REditorSupport / REditorSupport/vscode-R
vsc.attach() fails to attach with non-ascii characters in path
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
When VsCode is opened in a folder with non-ascii characters .vsc.attach() does nothing. Tried both with the "Create R terminal" command and opening a normal vscode terminal window and loading vscode-R.
Problem seems to be on the VSCode side of the extension, because when opening a terminal, cd-ing to the folder with the non-ascii characters (tested with åäö on MacOS 15) the session is attached as it is supposed to. But when i open the folder with a non-ascii path in VSCode and try to start an R session it fails to attach, even if I start R from a ascii-only path inside that VSCode window.
Tried setting useWebServer to true and multiServer to false but did not matter.
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
Reproduce the failure on macOS 15 with a VS Code workspace whose path contains non-ASCII characters, starting through vsc.attach(), the Create R terminal command, and a normal VS Code terminal. Compare this with starting R from an ASCII-only path in the same window, and verify that attachment succeeds in all reported cases without relying on useWebServer or multiServer settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100