Skip to content

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

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

Open
adamaltmejd opened this issue Mar 7, 2025 · 1 comment
Open

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

adamaltmejd opened this issue Mar 7, 2025 · 1 comment
Labels

Comments

@adamaltmejd
Copy link

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 adamaltmejd added the bug label Mar 7, 2025
@mronkko
Copy link

mronkko commented Apr 9, 2025

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

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

2 participants