Closed apullin closed 6 years ago
I use the same setup as yours, where ".ewp" is inside a subdir, this is mine for reference:
{
"version": 1,
"path": "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 7.4\\",
"project": "${workspaceRoot}\\project\\EBMC.ewp",
"config": "Debug"
}
Could you try to use "workspaceRoot" instead of the absolute path?
Also, I'm assuming "config" is right, in your case it should be "Debug" too.
I am hitting an error when trying to run a build:
The workspace settings.json is:
and then my iar.json is:
One note is that my workspace root is
C:\\path\\to\\my\\project\\
, where I have an EWT file with several subdirs, each with their own EWP and code, and one for common code between the IAR projects. I am sure that the "project" option is correct, since I can copy and paste it into a command line, unescape it, and prepend it withdir
, and the file exists.If I open a new VSCode window and open it to the root of the directory the project is in, and use the same iar.json and settings.json, then it will successfully build. Due to the use of the common code dir, I would really prefer to get this working using VSCode open in the EWT root.
I am sure it is something obvious and simple, but I can't figure it out, and I am eager to move away from the IAR editor entirely.