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

VS Code Debug can not be run in new version extension C# From v2.10.28 #6707

Closed
tokkn opened this issue Dec 4, 2023 · 5 comments
Closed

Comments

@tokkn
Copy link

tokkn commented Dec 4, 2023

In vs code, When I updated C# extension to v2.10.28, the debug can not be run.

Message: Couldn't find a debug adapter descriptor for debug type 'coreclr'(extension might have failed to activate)

But when I return to v2.9.20, it can ben run successful.
The last version v2.12.19 is also not work.
Is there any necessary setting changed?

Environment data

   "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",

@nanangp
Copy link

nanangp commented Dec 4, 2023

Try checking the different logs mentioned in #6030 to see if they have any hints on what may be causing the Extension to fail to activate.

@tokkn
Copy link
Author

tokkn commented Dec 4, 2023

On check, there are errors:
2023-12-04 09:53:45.395 [error] Activating extension ms-dotnettools.csharp failed due to an error: 2023-12-04 09:53:45.395 [error] Error: Extension 'ms-dotnettools.csharp' CANNOT use API proposal: telemetryLogger. Its package.json#enabledApiProposals-property declares: [] but NOT telemetryLogger. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-dotnettools.csharp

@tokkn
Copy link
Author

tokkn commented Dec 4, 2023

Thank you very much.
And now I update VS code to last version 1.84.2, then the issue is gone.
v2.12.19 is also working well.

@tokkn tokkn closed this as completed Dec 4, 2023
@JoeRobich
Copy link
Member

@dibarbet TelemetryLogger api was finalized in 1.75.0. Since Razor is using the vscode-extension-telementry packages, which in turn uses this API, should the minimum supported VS Code get bumped here?

@dibarbet
Copy link
Member

dibarbet commented Dec 4, 2023

@dibarbet TelemetryLogger api was finalized in 1.75.0. Since Razor is using the vscode-extension-telementry packages, which in turn uses this API, should the minimum supported VS Code get bumped here?

I thought we already bumped it to some 1.8x version, but I guess not. I'll take care of that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants