vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

vsc.attach() fails to attach with non-ascii characters in path

Open adamaltmejd opened this issue 11 months ago • 2 comments

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.

adamaltmejd avatar Mar 07 '25 14:03 adamaltmejd

I can confirm this.

Steps to reproduce:

  1. Create a folder called "ä" (U+00E4)
  2. Open the folder in VS Code
  3. Create a new R terminal.

I get the following messages on the developer console

[Extension Host] [attachActive] [Extension Host] [updateRequest] Started [Extension Host] [updateRequest] requestFile: /Users/mronkko/.vscode-R/request.log [Extension Host] [updateRequest] request: {"time":"2025-04-09 22:16:19","pid":61244,"wd":"/Users/mronkko/ä","command":"attach","version":"4.4.1","tempdir":"/var/folders/tm/l_zg6j6d379d97kdmchpnhnc0000gn/T//RtmpgYKwci","info":{"command":"radian","version":"R version 4.4.1 (2024-06-14)","start_time":"2025-04-09 22:16:16"},"plot_url":null,"server":null} [Extension Host] [updateRequest] Ignored request outside workspace

mronkko avatar Apr 09 '25 19:04 mronkko