Jump to content

VS Code + AutoCAD Lisp Extension Issues (Need constant re-starts)


Recommended Posts

Posted

I have this Issue with in VSCode where I'm forced to constantly restart both applications in order to continue debugging.

 

My Setup: AutoCAD Map3d 2021

VS Code 1.27.0 + Autocad AutoLISP Extension 1.6.3

VSCode Extitions Setup: Process name = acad

AutoCAD com…start switchs: C:\Program Files\Autodesk\AutoCAD 2021\acad.exe

Absolute path: C:\Program Files\Autodesk\AutoCAD 2021\acad.exe

 

 

I start Autocad First, then run vlide from the command prompt to load the the VScode application.

 

Then typical open a lisp project containing multiple lisp files.

 

Then to start debugging by Pressing “F5”.

Some times this works fine but more often than not I need to restart both app multiple times..

This happens mostly after I run into a code error… like typo or syntax error or trying to load a file autocad cant find.  The only way to be able to continue debugging my project is to completely restart both vscode and autocad(once or a few times).  

I seen this with my previous setup as well (different hardware, os and applications versions).

 

Any idea or suggestion why this could be happening?

Posted

Did you read the instructions for the AutoCAD AutoLISP extension?

 

I run code with AutoCAD, which is the path you show using, that probably doesn't work with AutoCAD Map3D, so you might need to repath if that's the program you use or just use AutoCAD and see if that resolves the issue.

 

From AutoCAD AutoLISP Extension - Visual Studio Marketplace

 

Quote

For AutoCAD specialized toolsets or OEM-based products, the product name might not be the same as AutoCAD or acad.exe. To use this extension with those products, set the value of the "Launch Program" attribute in extension setting based on the product you want to debug with.

Posted

I think you can still use VLIDE. if If VLIDE Doesn't Open set LISPSYS to 0

Tho doesn't have autocomplete and color coding like vs code.

Posted

Thanks for the link,  just notice the documentation  it says I run vscode as admin ('ll try that and see and improvement). (my user has admin privileges but I never actually force VS Code to start with admin privileges ). I'll try that and see it improves.   

 

I believe the setup is fine as I can do both debug attach or debug launch... Also the executable for AutoCAD map is acad.exe just as AutoCAD.

 

The behavior I see is as if VSCode  loses contact with ACAD or as if it never releases the processes. At times it prompts me if I want to start a 2nd Debug Attach.

 

I may go a day where I only need to restart once or twice other times I'm forced  to restart 20 to 30 times. I wonder if could be interference with some other plug ins like ArcgIS.

 

 

 

Posted
4 minutes ago, mhupp said:

I think you can still use VLIDE. if If VLIDE Doesn't Open set LISPSYS to 0

Tho doesn't have autocomplete and color coding like vs code.

 

I never use it but perhaps I should give a try instead thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...