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

Run Maven Command doesn't work correctly when the directory has space on Windows

Open SuparnaSuresh opened this issue 1 year ago • 1 comments

Describe the bug "Run Maven Command" giving error when one tries to perform the actions for a project opened from the directory, which includes space in the directory path [e.g: user/username/application support/mavenproject]. The terminal uses bash.

Image

Also facing below issue if configure WSL terminal.

Image . Steps to reproduce the behavior:

  • Open project from the folder --> should contain space in the directory [e.g: user/username/application support/mavenproject]

  • Right Click on Project name from Maven dashboard

  • Click on Run Maven Command select any action

  • Terminal is not responding for the command

Environments (please complete the following information as much as possible):

  • OS: Windows 11
  • VS Code version: Version: 1.94.1
  • Extension version : v0.44.0

SuparnaSuresh avatar Oct 21 '24 07:10 SuparnaSuresh

The 'Run Maven Commands' feature simply generates the command line and executes it in your terminal. It should behave the same as you manually run it in the terminal. Can you try running the generated command manually in the terminal to see if it works?

testforstephen avatar Nov 11 '24 04:11 testforstephen