Skip to content

R language server crash: Backslash when pasting path from Windows Explorer #6584

Closed
@pbulsink

Description

@pbulsink

When pasting a path from windows explorer into R console, the path includes backslashes. This trips up the R language server, which promptly crashes.

System details:

Positron and OS details:

Positron Version: 2025.03.0 (system setup) build 97
Code - OSS Version: 1.96.0
Commit: 5e22d6f
Date: 2025-02-25T20:39:11.000Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631

Interpreter details:

R 4.4.2

Describe the issue:

When pasting a path from Windows Explorer, the path contains backslashes. This isn't properly handled by the R language server which crashes. In R Studio the server doesn't crash (but at times might prefer to have escaped slashes present).

Steps to reproduce the issue:

  1. In a new session on Windows, try source a file from a subdirectory of the current working directory and use backslash in the file string. Press tab for autocomplete suggestions.

For example, type source(".\R\utils.R") and press tab. Positron then pops up a notification that the R language server has crashed.

Expected or desired behavior:

R should proceed with autocomplete suggestions for files in the specificed directory and not crash the language server.

Were there any error messages in the UI, Output panel, or Developer Tools console?

Language Server Output is attached

languageserveroutput.txt

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions