Copy link to clipboard
Copied
I've been unable to use VSCode recently to target installed apps. My Illustrator target is 25.064, and with recent updates it can't find this to load. I tried to locate $HOME/.vscode/extensions to see if I could change via text file but to no avail. Is there a way to update the target or simply call an open app?
Copy link to clipboard
Copied
You might be way beyond this, but just checking... Can you edit your launch.json file? Does it look right?
Click on the Debug icon down left side of project window, and then on gear icon shown with arrow above. Does your launch.json file appear for editing?
For what its worth, here's my launch.json configuration that works for me with the latest Illustrator update.
{
"type": "extendscript-debug",
"request": "launch",
"name": "Debug current file",
"program": "${file}",
"targetSpecifier": "illustrator-25.064"
}
Copy link to clipboard
Copied
Thanks! I'm not way past this. I haven't been using with an open folder, but tried what you suggested and found the .vscode launch.json file, which seems to be called for all subfolders. It still won't work with 25.064, and trying to update that line to 25.3.1 it says:
Target '' is not running. Select 'yes' to launch
Selecting yes yields the below message:
TypeError: Cannot read property 'label' of undefined
I also tried removing previous versions of Illustrator, but to no avail. No updates are available for my version of VSCode either.
Copy link to clipboard
Copied
Here's a basic set up in VSCode (very different to the old ESTK).
{
// 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": "Debug current file",
"program": "${file}",
"targetSpecifier": "illustrator-25.064"
}
]
}
Note the targetSpecifier is: major app version number = 25, and architecture = 064 (64 bits). Can be confusing because it isn't a normal major.minor version number.
8. Click the tab for the document from (4) test.js and click "Debug current file" at the top of the sidebar under Run and Debug. This should launch Illustrator (or activate it) and show a dialog showing the version number (which isn't the 'targetSpecifier"!).
Please see if that all works. If it does, you could decide to store all your "general" or work-in-progress scripts inside the folder from (1) and just use that same launch.json debug configuration every time you are debugging. You can repeat the process to make folders for specific projects, but they will each need their own launch.json debugging configuration.
Let me know how you go. 🙂