You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This happens when one tries to create a new Maven Project through the Java Overview page, selects an archetype and selects a directory with brackets in the path. The Terminal uses Powershell.
As Powershell takes brackets as a wildcard when doing a cd in the Terminal, VS Code won't successfully change directory in the Terminal, showing an error. As a result, it will try to generate a Maven Project in my user path (C:\Users\User).
To Reproduce
Steps to reproduce the behavior:
Go to 'Java Overview' page
Click on 'Create a Maven Project...'
Select any archetype
Select a directory path with brackets (e.g: C:\dev\java\projects_[2019]\example)
See "directory doesn't exist" error in PowerShell
Expected behavior
VS Code should successfully change directory to that path, or at the very least, abort the operation to avoid creating projects in a wrong path.
Possible solution
Use -LiteralPath flag with cd command
-- not working in Powershell < 3
Environments (please complete the following information as much as possible):
Operating System: Windows 10 1809 (17763.475) [es-AR]
Visual Studio Code version: 1.33.1
Extension version: 0.16.2
The text was updated successfully, but these errors were encountered:
It causes regressions for Powershell 2.x users as you mentioned. I myself prefer to escape special characters for Powershell. It is a little bit dirty, but effective and safe.
Describe the bug
This happens when one tries to create a new Maven Project through the Java Overview page, selects an archetype and selects a directory with brackets in the path. The Terminal uses Powershell.
As Powershell takes brackets as a wildcard when doing a
cd
in the Terminal, VS Code won't successfully change directory in the Terminal, showing an error. As a result, it will try to generate a Maven Project in my user path (C:\Users\User
).To Reproduce
Steps to reproduce the behavior:
C:\dev\java\projects_[2019]\example
)Expected behavior
VS Code should successfully change directory to that path, or at the very least, abort the operation to avoid creating projects in a wrong path.
Possible solution
-- not working in Powershell < 3
Environments (please complete the following information as much as possible):
The text was updated successfully, but these errors were encountered: