-
Notifications
You must be signed in to change notification settings - Fork 167
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
Unexpected token P in JSON at position 0 azure developer CLI extension vscode #2072
Comments
So, clearly bad of the CLI to give back a string instead of JSON in this error case, but from the error message, it sounds like the |
Very similar to #2011 which @weikanglim fixed. Maybe exactly the same. |
@weikanglim does your fix above handle this error scenario? so VSCode gets a proper error json? |
@rajeshkamal5050 The underlying "listing environments" implementation was fixed, so it's no longer an issue if the user doesn't have an |
@bwateratmsft Based on the info above, is there something we need to do in the CLI? I can't tell if the output is the raw output that VSCode got from the CLI. From the error message "Unexpected token P at position 0", could the token be referring to the "Process" in |
That's my suspicion, yes. But if it no longer errors on a missing |
Marking this as fixed as part of #2296
|
Does this occur consistently?
Repro steps:
Action: azure-dev.views.workspace.environment.resolve
Error type: 1
Error Message: Process 'azd env list --cwd "/Users/redacted:username/Deskto...' exited with code 1
Error: {"type":"consoleMessage","timestamp":"redacted:id02T23redacted:id+redacted:id","data":{"messhttps://docs.github.com/en/early-access/issues/about-tasklistsage":"listing environments: listing entries: open /Users/redacted:username/Desktop/msdocs-flask-postgresql-sample-app/.azure: no such file or directory\n"}}
Version: 0.4.2
OS: darwin
OS Release: 22.1.0
Product: Visual Studio Code
Product Version: 1.76.0
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: