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

Error "You don't have an extension of ..." with debugger extension #123881

Closed
Sen-real opened this issue May 14, 2021 · 13 comments
Closed

Error "You don't have an extension of ..." with debugger extension #123881

Sen-real opened this issue May 14, 2021 · 13 comments
Assignees

Comments

@Sen-real
Copy link

Sen-real commented May 14, 2021

Hi experts,

With VS Code 1.56, we get a new problem with our debugger extension:
Autodesk-AutoCAD/AutoLispExt#143

It seems common, as I found a similar problem here:
https://stackoverflow.com/questions/67430297/vscode-you-dont-have-an-extension-for-debugging-html-error

With our debugger extension activated, when starting to debug wth F5, an error dialog of "You don't have an extension of ..." shows up. It suggests to find our extension in the Marketplace.

But as suggested in the page above, the error is gone after we manually added a configuration file for our debugger extension.

Is this a new requirement that a user of a debugger extension must first author a configuration file before starting to debug? or is there some changes in VS Code debugger API that we should apply?

@vscodebot
Copy link

vscodebot bot commented May 14, 2021

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@egamma
Copy link
Member

egamma commented May 14, 2021

Duplicate of #123106 will be fixed in 1.56.2

@egamma egamma closed this as completed May 14, 2021
@nigma456
Copy link

Duplicate of #123106 will be fixed in 1.56.2

This issue is not fixed in latest 1.56.2 and even 1.57.

@Sen-real
Copy link
Author

Sen-real commented May 16, 2021

@egamma @isidorn
It's NOT fixed with 1.56.2. Here's a video made with 1.56.2:
https://user-images.githubusercontent.com/57521938/118391492-2430d980-b667-11eb-90d5-5ea7e599750e.mov
My VSCODE:
image

@isidorn
Copy link
Contributor

isidorn commented May 17, 2021

@Sen-real you are showing a different issue, that is for the .lsp file
In order to fix that your debugger extensino has to say it is interested in .lsp language files. You can do that by listing this in your package.json. Here's an example how mock debug does it https://github.com/microsoft/vscode-mock-debug/blob/main/package.json#L135

@Sen-real
Copy link
Author

Sen-real commented May 17, 2021

@Sen-real you are showing a different issue, that is for the .lsp file
In order to fix that your debugger extensino has to say it is interested in .lsp language files. You can do that by listing this in your package.json. Here's an example how mock debug does it https://github.com/microsoft/vscode-mock-debug/blob/main/package.json#L135

@isidorn:
Thanks for looking at this issue. We have two languages listed in package.json:
https://github.com/Autodesk-AutoCAD/AutoLispExt/blob/main/package.json#L373, and
https://github.com/Autodesk-AutoCAD/AutoLispExt/blob/main/package.json#L385
Should they be updated somehow?
image

@isidorn
Copy link
Contributor

isidorn commented May 17, 2021

@Sen-real I think you overdid it there a bit. The languages array inside the debuggers is an array of strings, not objects. So just try
"languages": ["autolist", "autolistdcl"]

And the full language details should be contributed I think in another package.json place, not inside debuggers

@Sen-real
Copy link
Author

Thanks! let me try.

@Sen-real
Copy link
Author

Sen-real commented May 17, 2021

@isidorn
I just tried the change you suggested. It works well with a ".lsp" file opened in VS Code.
But, if I open NO folder or file, when I click "Run -> Start Debugging", there's still one difference:
image

Is the new result with 1.56.2 by design?

@isidorn
Copy link
Contributor

isidorn commented May 17, 2021

Great thanks.
That one should be fixed in insiders and should be available in the next stable in 1 month

@Sen-real
Copy link
Author

Great thanks.
That one should be fixed in insiders and should be available in the next stable in 1 month

Cool, thanks!

@Sen-real
Copy link
Author

@isidorn
I can't reopen this issue. Should I report a new one?

@isidorn
Copy link
Contributor

isidorn commented May 17, 2021

Nope, already fixed.

LanDong-adsk pushed a commit to Autodesk-AutoCAD/AutoLispExt that referenced this issue May 18, 2021
Objective
Update the "debuggers->languages" part of package.json

Abstractions
During the discussion in microsoft/vscode#123881, @isidorn found that the "languages" in the "debuggers" part of package.json were over defined - we just need to list language id, instead of language object.

With this change applied, the bug #143 is partially solved - now if there's a .lsp file opened, when pressing F5 to debug with VS Code 1.56.2, it doesn't require the existence of configuration file anymore.

Tests performed
Tested on VS Code 1.56.2 and 1.54.3; it's able attach to autocad on both of them (with a .lsp file opened).
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants