0
Guys I’m stuck here, if anyone can help me, it would be really nice, like every time I try to run some task in vscode, it is running in powershell after the last update it did of Vscode. Even configuring everything right, the task is executed in powershell regardless of what I do, I’ve read the documentation, but even following the procedures, still continues with the same problem.
task json.:
{
"version": "2.0.0",
"tasks": [
{
"label": "build dom",
"dependsOn": ["compile dom","build package dom"],
"dependsOrder": "sequence",
"type": "shell",
"problemMatcher": [
"$tsc"
],
"presentation": {
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"group": "build"
}...]
}
Settings.json:
"terminal.integrated.defaultProfile.windows": "Ubuntu (WSL)",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Ubuntu (WSL)": {
"path": "C:\\WINDOWS\\System32\\wsl.exe",
}
},
"terminal.integrated.profiles.linux": {
"Ubuntu (WSL)": {
"path": "C:\\WINDOWS\\System32\\wsl.exe",
}
}
Job output(Running on wrong terminal):
> Executing task in folder domsys: mvn compile -Dmaven.test.skip=true <
mvn : O termo 'mvn' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do
nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente.
No linha:1 caractere:1
+ mvn compile -Dmaven.test.skip=true
+ ~~~
+ CategoryInfo : ObjectNotFound: (mvn:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
O processo de terminal "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command mvn compile -Dmaven.test.skip=true" foi terminado com o código de saída: 1.