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

Start debugging in VSCode 1.56.0 #143

Closed
carlosmgilp opened this issue May 8, 2021 · 7 comments
Closed

Start debugging in VSCode 1.56.0 #143

carlosmgilp opened this issue May 8, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@carlosmgilp
Copy link

carlosmgilp commented May 8, 2021

Describe the bug
When trying to debug my code, it shows me a warning.

image

And I am clear that the extension is installed.

image

If I install an older version of VSCode, it works fine.

Desktop

  • Windows 10
  • VSCode 1.56.0
  • Autocad 2022
  • AutoCAD AutoLISP Extension 1.4.0
@nigma456
Copy link
Contributor

nigma456 commented May 9, 2021

Thanks for reporting this issue to us! We will look into it.

@enevre
Copy link

enevre commented May 9, 2021

I also have same problem.

@hualin-wu-2000 hualin-wu-2000 added the bug Something isn't working label May 12, 2021
@Sen-real
Copy link
Collaborator

Sen-real commented May 14, 2021

@carlosmgilp @enevre @krebskyl
It's a result of the recent VS Code upgrade.
Please check if it can be solved with following steps:

  1. Close current folder, and open a LSP file (so that we can generate a global configuration for LSP)
    image
  2. Click here to add configuration
    image
  3. In the coming editor of "settings.json", select the following item to add an configuration for Attach mode:
    image
  4. Save the automatically generated configuration file (settings.json):
    image
    It should be good enough for Attach mode.
    [To Be Continued]

@Sen-real
Copy link
Collaborator

Sen-real commented May 14, 2021

[Continued]
If we want to not only Attach but also Launch:
5. repeat step 3, select "AutoLISP Debug: Launch", and save the automatically updated settings.json
6. open VS Code setting page from here:
image
7. type "autolispext" in the filter box, and input the full path of acad.exe in the "Launch Program" field:
image
8. as now both Attach and Launch are configured, we need to select the active/current debug mode (this selector shows up when VS Code has opened a folder):
image

LanDong-adsk pushed a commit 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).
@LanDong-adsk
Copy link
Contributor

Meanwhile, we are preparing for an official release to address this issue.

@dmcdonoughwick
Copy link

I've gotten this to work by ensuring I have the process name filled out under "Workspace" as well as "User" under the extension settings.

@Sen-real
Copy link
Collaborator

Sen-real commented Jul 17, 2021

Solved, please:

  • update AutolispExt(AutoCAD AutoLISP extension) to 1.5.0, and
  • update VS Code to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

7 participants