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

Instabilities in VS Code ExtendScript Debugger

Explorer ,
Apr 08, 2019 Apr 08, 2019

I've been making the transition to VS Code from ESTK, and have got things running, but I am finding the extension breaks often and I have to restart the host frequently.  I'm wondering if other users are experiencing this.  I'm no expert on VS Code, that's for sure, so I'm not sure if certain setting affect the performance of the extension.  I'm getting "Extension host terminated unexpectedly" and "'${file}' can not be resolved."

 

Screen Shot 2019-04-08 at 13.51.05.png

Screen Shot 2019-04-08 at 14.30.27.png

 

The latter refers to the configuration file that specifies "program": "${file}" as the file to debug (it's supposed to debug the open file).  Note that the extension runs fine most of the time, but I have to keep restarting.  Also, ES Debugger is the only extension I've installed, so that rules out conflicts between extensions.

TOPICS
ExtendScript
2.2K
Translate
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
Participant ,
Apr 10, 2019 Apr 10, 2019

I also get the "'${file}' can not be resolved." error consistently. Here are the steps to reproduce.

1. Set up the following configuration:

{

   // Use IntelliSense to learn about possible attributes.

   // Hover to view descriptions of existing attributes.

   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

   "version": "0.2.0",

   "configurations": [

  {

   "type": "extendscript-debug",

   "request": "launch",

   "name": "Current file",

   "program": "${file}",

   "stopOnEntry": false

  },

  ]

}




2. Write the following script and save it:

alert("Hello world");

3. Select the application to run at the bottom of the screen (I'm using InDesign).

4. Run the. It works! Indesign comes up and shows the alert. Hooray. But we stay in inDesign after the script is done.

5. Go back to ExtendScript and run the script again.

Actual: It fails with the error "'${file}' can not be resolved."

Expected: It should work again.

You can restart VSCode to get it working, but you need to restart VSCode every time.

Translate
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
Explorer ,
Apr 10, 2019 Apr 10, 2019

Exactly what I'm getting.  Could really use a fix for both of these issues, Adobe!  Hard to make the switch until these are ironed out.

Translate
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 ,
Apr 10, 2019 Apr 10, 2019

So if you're using the VSCode plugin on Windows, it's not a stable release, even though you can install it. The stable Windows build ought to be out by the end of the week.

Also this week VSCode 1.33 broke the ExtendScript Debugger plugin entirely, the release at the end of the week ought to fix it.

In general the next release ought to be more stable.

Translate
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
Participant ,
Apr 10, 2019 Apr 10, 2019

I'm on a mac, but I am on 1.33. I'll try again with the new release.

Thanks for all your work on this Erin! Excited to see this coming together.

Lawrence

Translate
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
Explorer ,
Apr 11, 2019 Apr 11, 2019

Thanks for responding ErinF.  Please keep us updated.  I forgot to mention I'm on a Mac as well.

Translate
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 ,
Apr 12, 2019 Apr 12, 2019
LATEST

The new release just came out, so please give it a try and let us know if it's improved!

Translate
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