• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Extendscript Debugger - Cannot target current version of Illustrator

New Here ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

 
I recently moved to a new workstation and cannot Target an Adobe Application using VSCode and Extendscript Debugger. The workstaton previously had CS 6 installed on it, but now we use CC. I'm using Ilustrator 2019. I can target Illustrator 2019:

Screen Shot 2020-11-05 at 9.01.10 AM.png

Illustrator 2019 shows up in the bar along the bottom

Screen Shot 2020-11-05 at 9.01.20 AM.png

But, then when I run the DeBugger it says CS 6 isn't running and I can't run CC2019?

Screen Shot 2020-11-05 at 9.01.31 AM.png

Using MacOS 10.12.6 VSCode 1.50.1 ExtendscriptDebugger 1.1.2

Views

483

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

The ExtendScript debugger isn't intended to work with CS6. This is because Adobe has stopped supporting all but the most recent two major releases of any given Creative Cloud product. 

 

There's also a trick to how the debugger works - it opens up a certain kind of connection or session that winds up being difficult to close. It's probably failing to connect to CS6 then leaving that metaphorical phone off the hook. You'll have to force quit "Code" processes from the Activity Monitor, or just restart the machine to connect to CC2019 again.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Thanks for the reply.  I don't think I was clear though.  I do not currenlty have CS6  installed on my computer - I used to, but it has been uninstalled.  I use CC 2019.  I target CC2019 in VSCode, but when I actually run the debugger it gives me the warning "CS6 is not currenlty running" - For some reason VSCode thinks I want to target CS6(which isn't even installed!)

I tried removing all the VS code preference files and re-installing, but it still won't target CC2019.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Just to double-check... you restarted the machine, right? Just asking since that clears up many host targeting problems.

 

Have you read this helpful post by @sberic ? This other post may also be helpful.

 

Let me know!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

You mentioned that you removed all the VS Code Preference files. Does that include your project's launch.json file? It should reside in the .vscode directory.

 

If that still exists, do you perchance have the "targetSpecifier" field listed? If so, what is it set to?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

Yes, I have "targetSpecifier" listed in tghe launc.json file.  I have this set to "illustrator-23"

Tried restarting my machine.  I searched for any CS6 file on the machine and removed them.  I even uninstalled VSCode and re-installed it.  Somewhere Extendscript debugger is still getting a "reference" to the old install of CS6?

 

Screen Shot 2020-11-06 at 9.53.31 AM.png

 

 

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

🤔There's probably a refernce to it in an (invisible) database file. Although I don't know how the Debugger works with those files.

 

I'd try uninstalling and reinstalling the Creative Cloud Desktop App. I'd also try running the Creative Cloud Cleaner Tool. And then restarting... and see if you get the same results. Definitely tell us what happens!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

Do you happen to have the ExtendScript Toolkit installed as well? If not, you can download it here.

 

I suggest trying to make a debug connection to Illustrator CC2019 with ESTK and see if you are able to do so. If you are able to do so, then close ESTK and try again with VSCode. If you aren't able to do so, then mention it here along with whatever error you see. That might be indicative of a deeper issue.

 

NOTE: Please ensure that VSCode is closed when you open ESTK. If VSCode is open and the ExtendScript Debugger extension is enabled, then ESTK will probably fail to start (and definitely fail to connect to any host applications).

 

The ExtendScript Debugger is not as capable at handling the host application debugger connections as ESTK is. My suspicion is that something on your machine got into a bad state and the VSCode extension doesn't know how to handle it.

 

Let us know how it goes!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

Wow.  OK, so I tried targeting Illustrator 2019 with the ESTK and got the same error. 

When I try to target .ai2019, it appears on the list, but also CS6 (Which is not installed) appears on the list.

Screen Shot 2020-11-06 at 1.13.46 PM.png

Then when I actually try to run the script I get the same error (basically), as VSCode.

Screen Shot 2020-11-06 at 1.14.08 PM.png

 

I'm going ot try uninstalling all the CC apps, then re-installing,  but this takes awhile so I'll probably have to do it over the weekend.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 06, 2020 Nov 06, 2020

Copy link to clipboard

Copied

LATEST

Well, at least we know now that the issue isn't restricted to the VSCode ExtendScript Debugger extension! Great find!

 

With any luck your cleaning process will clear out whatever bad juju has infected your system. Let us know how it goes!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines