Skip to content
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

Path with ( causes "SyntaxError: Invalid regular expression" duplicate of #3475 in redhat-developer/vscode-java #1064

Open
1 of 4 tasks
h-brockmann opened this issue Oct 15, 2024 · 0 comments

Comments

@h-brockmann
Copy link

Same error already issued in vscode-java#3475
redhat-developer/vscode-java#3475

Describe the bug

Due to naming conventions and limitations of windows, my username has an opening bracket in it.
This bracket causes a SyntaxError since the path to %APPDATA% gets evaluated as regular Expression

2024-10-15 12:38:07.237 [error] Activating extension redhat.java failed due to an error:
2024-10-15 12:38:07.237 [error] SyntaxError: Invalid regular expression: /c:\Users\myName(Gro\AppData\Roaming\Code\User\workspaceStorage\XXxXXXXXXxxXxxxXXXxXXxxXxXxXXXXx\redhat.java\client.log.2024-10-15/: Unterminated group
	at String.match (<anonymous>)
	at c.getStream (c:\Users\myName(Gro\.vscode\extensions\redhat.java-1.35.1-win32-x64\dist\extension.js:2:293676)
	at new f (c:\Users\myName(Gro\.vscode\extensions\redhat.java-1.35.1-win32-x64\dist\extension.js:2:1418356)
	at t.initializeLogFile (c:\Users\myName(Gro\.vscode\extensions\redhat.java-1.35.1-win32-x64\dist\extension.js:2:940453)
	at c:\Users\myName(Gro\.vscode\extensions\redhat.java-1.35.1-win32-x64\dist\extension.js:2:899088
	at Generator.next (<anonymous>)
	at s (c:\Users\myName(Gro\.vscode\extensions\redhat.java-1.35.1-win32-x64\dist\extension.js:2:890832)
2024-10-15 12:38:07.364 [warning] [redhat.vscode-yaml] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[yaml]', provide the URI of a resource or 'null' for any resource.
2024-10-15 12:38:07.467 [info] Eager extensions activated

Expected Behavior

No Error

Current Behavior

Error visible

Steps to Reproduce

Have opening bracket in user path

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant