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.

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...