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

Deselect profile problem #977

Open
Sorreldd opened this issue Jun 21, 2023 · 4 comments
Open

Deselect profile problem #977

Sorreldd opened this issue Jun 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Sorreldd
Copy link

Sorreldd commented Jun 21, 2023

When I deselect profile I get this generated command from the plugin.
[artyom@artyom-vivobook backstage-ai]$ mvn clean -f "/home/artyom/Projects/backstage-ai/pom.xml" -P !spbgut

And error:
bash: !spbgut: event not found

The exclamation mark needs to be escaped in most shells (but not required on Windows)
Profile deselect shoud be
-P '!profile1,profile2'
or
-P-profile1,-profile2 (without whitespace after P)

  • OS: [Arch Linux, terminal bash or zsh]
  • VS Code version: [1.79.2]
  • Extension version [0.41.0]
@testforstephen testforstephen added the bug Something isn't working label Jun 25, 2023
@jefferybradberry
Copy link

jefferybradberry commented Aug 10, 2023

I'm running into this, too, using Bash and WSL. I think shell-friendly escapes are needed here:

mavenUtils.ts#L149

@jefferybradberry
Copy link

I found a workaround using the "set +o history" command to disable command history.

$ mvn clean verify site -f "pom.xml" -P !source
bash: !source: event not found
$ set +o history
$ mvn clean verify site -f "pom.xml" -P !source
[INFO] Scanning for projects...
[INFO] 
[...]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.979 s
[INFO] Finished at: 2023-09-21T10:40:21-04:00
[INFO] ------------------------------------------------------------------------

@gabrielbergoc
Copy link

Ran into this issue just now

@arte0s
Copy link

arte0s commented Oct 5, 2024

+1 :(

The content of envFile in launch.json also has this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants