-
Notifications
You must be signed in to change notification settings - Fork 170
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
The vs code task "Start API and Web" does not work any more #2852
Comments
@bwateratmsft @vhvb1989 can you take a look? |
@thomasofdenmark , can you confirm if you have the Something like: |
@thomasofdenmark Those errors in the Output window are a known VSCode bug and you can ignore them. |
@vhvb1989 Yes it is installed. I have version 0.7.0. |
It seems like it is the "Start API" and "Start Web" tasks that is doing nothing. The other ones starts up in the TERMINAL tab if I run the individually. |
Does F5 (or the command "Debug: Start Debugging") work? The tasks are meant to be consumed by VSCode to enable debugging. |
No, that does not work either. |
This seem to be the same issue. When I replace "${input:dotEnvFilePath}" with "${workspaceFolder}/.azure/your-azure-env-name/.env" it works. So mabye the issue is with the "command" in the tasks.json:
|
Good find, I'll take a look. |
This looks to be a regression in the Azure Dev CLI itself. Compare the output from 1.3.1 vs 1.4.1: 1.3.1: [
{
"Name": "bwatertestenv",
"IsDefault": true,
"DotEnvPath": "D:\\Sandbox\\AzdTaskTest\\.azure\\bwatertestenv\\.env"
}
] 1.4.1: [
{
"Name": "bwatertestenv",
"HasLocal": true,
"HasRemote": false,
"IsDefault": true
}
] The 1.4.1 output is missing @wbreza do you know about the removal of that property? |
@bwateratmsft This was unintentionally removed. Posted PR #2858 with a fix. |
I got the error again today when opening https://github.com/Azure-Samples/azure-search-openai-demo/ Error: there is no registered task type 'dotenv'. Did you miss installing an extension that provides a corresponding task provider? |
Output from
azd version
Run
azd version
and copy and paste the output here:azd version 1.4.1 (commit 1cbed85)
Describe the bug
I am trying to run the task "Start API and Web" using the
todo-nodejs-mongo-aks
template. When I do "Shift + cmd + p" -> Tasks: Run task, I get this error in the OUTPUT tab (before selecting the actual task)This is my
tasks.json
:The text was updated successfully, but these errors were encountered: