microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
182 stars 89 forks source link

Terminal Not responding for Run Maven Commands #1048

Open SuparnaSuresh opened 1 month ago

SuparnaSuresh commented 1 month ago

Describe the bug Terminal is not responding for the "Run Maven Command" 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 csh. Experiencing same issue for other terminals (bash,dash,sh) as well.

Steps to reproduce the behavior:

  1. Open project from the folder --> should contain space in the directory [e.g: user/username/application support/mavenproject]
  2. Right Click on Project name from Maven dashboard
  3. Click on Run Maven Command select any action
  4. Terminal is not responding for the command

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

https://github.com/user-attachments/assets/1279ceb9-5bd0-48a8-a960-22330e926b23

testforstephen commented 1 week ago

The 'Run Maven Commands' feature simply generates the command line and executes it in your terminal. If the terminal is unresponsive, this is beyond the control of this extension. To troubleshoot, try running the generated command manually in the terminal—does it work as expected?

SuparnaSuresh commented 1 week ago

Corresponding command is not working even if it execute manually due the space in the project path. But tried below command its working fine. cd "/Users/username/Downloads/app-mvn prjectvs" && ./mvnw clean -f "/Users/username/Downloads/app-mvn prjectvs/pom.xml"

Image