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

Errors after Break set in VS Code #182

Open
MarkMitchellADP-Resources opened this issue May 6, 2022 · 9 comments
Open

Errors after Break set in VS Code #182

MarkMitchellADP-Resources opened this issue May 6, 2022 · 9 comments

Comments

@MarkMitchellADP-Resources

Describe the bug
Issue Type: Bug

AutoCAD AutoLISP Extension running in Visual Studio Code
Every time I set a break point:
On running the code I get, "error: malformed list on input"
This has nothing to do with the soundness of the code.
It is a perfectly formed list.

A/B Experiments

To Reproduce
Steps to reproduce the behavior:

  1. ACAD 2023 -
  2. Lispsys 1
  3. _vlide
  4. open a lisp file (one that is a good example of code.)
  5. set a break point
  6. F5 to start debug and download the lsp to your dwg
  7. run the lsp command.
  8. Produces error: "error: malformed list on input"

Expected behavior
When execution reaches the break point the lsp halts so the variables can be examined.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
VS Code version: Code 1.67.0 (microsoft/vscode@57fd6d0, 2022-05-04T12:06:02.889Z)
OS version: Windows_NT x64 10.0.18363
Restricted Mode: No

System Info
Extensions (21)
Additional context
Add any other context about the problem here.

@nigma456
Copy link
Contributor

nigma456 commented May 7, 2022

We don't his this problem for a good lisp file.
Do you have tried to set Lispsys= 0 and the legacy IDE?

@MarkMitchellADP-Resources
Copy link
Author

@JDSComm
Copy link

JDSComm commented Jun 9, 2022

I had a similar, but a bit different issue occur.

5-6-2022
Using VSCode, this suddenly started happening in the middle of debugging code.
VSCode was working fine with breakpoints in the code.
Then, all of a sudden, when the code was stopped on a breakpoint my variables were all nil.
Looking at the Debug Console I noticed this error "warning: unwind skipped on exception".
After digging into this I have discovered that this is only occurring if I have breakpoints in the code.
If I remove ALL the breakpoints the code will run fine in the VSCode debugger.
I shut down my PC and then tried again but the same thing still happens.
I tried debugging the same file, with the same breakpoint, in the VLisp editor and it worked fine, no error, variables had values.

I thought I found a solution:
I uninstalled the AutoCAD AutoLISP Extension and then re-installed it.
I can now debug with breakpoints in VSCode again.

But the problem occurred 2 more times within a week of each other.
The first of those 2 times I was able to fix it with the extension uninstall and reinstall method but the last time it happened this no longer works.

So in order to get anything done i have gone back to VLIDE which is too bad because I like VSCODE better in many respects but it does not seem to be a stable extension yet.

Autodesk, Please fix the extension!

Based on the fact that your issues started the same day as mine I tried uninstalling ver. 1.5.0 of the extension and installing 1.4.0. It still does not work, kind of expected it since 1.5.0 has been out for more than a year.

Autodesk, Please fix the extension!

@MarkMitchellADP-Resources
Copy link
Author

@JDSComm
Copy link

JDSComm commented Jun 9, 2022

I have it working again, I think, for now....
I ended up reverting back to a previous version of VSCode ver. 1.66.2 (User setup).
Make sure to turn off automatic updates in VSCode.
Back to using ver. 1.5.0 of the Autodesk AutoLISP Extension.

We will see....

@MarkMitchellADP-Resources
Copy link
Author

@JDSComm
Copy link

JDSComm commented Jun 20, 2022

So, reinstalling an old version of VS Code only fixed the problem for 8 days.
So, now I have done a partial clean uninstall of VS Code by just deleting 2 folders as described here https://code.visualstudio.com/docs/setup/uninstall under "Clean uninstall".

After restarting VS Code and reloading the extension and making my customizations this seems to have worked.
At least now I'm fairly certain that file or files in one or both of those folders is causing this issue.

If this works for you, make and keep a copy of those two folders somewhere to make reconfiguring easier next time if needed.

Currently running VS Code version 1.68.1 (user setup) with ver. 1.5.0 of the Autodesk AutoLISP Extension.

@MarkMitchellADP-Resources
Copy link
Author

@JDSComm
Copy link

JDSComm commented Nov 16, 2022

See the attached file.
First to get VSCode working again perform the steps in "SOLUTION 2".
Then, If this ever happens again, all you have to do is "SOLUTION 3" or "SOLUTION 3 Update".

I was about to give up on VSCode because of this but now I'm not having any issues with it.

VSCode - Unwind skipped on exception error if breakpoint in code.txt

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

No branches or pull requests

3 participants