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

Crash on non-alphanumeric user filepaths

Open SheepCommander opened this issue 9 months ago • 1 comments

The extension is searching for C:\Users\sheepy,

however my real username is C:\Users\sheepy! with an exclamation mark (!).

Image

The extension's verbose output here:

Image

SheepCommander avatar Apr 30 '25 06:04 SheepCommander

I added a symlink (Junction) in an attempt o get around this, but now the error has changed to an (Access is denied) error.

Caused by: java.io.FileNotFoundException: C:\Users\sheepy (Access is denied)

Despite that error, I feel very certain that this is not a permissions error as the extension works fine on the same system if I create a user without an exclamation mark in the username.

SheepCommander avatar Apr 30 '25 07:04 SheepCommander