Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch.json executable path doesn't accept variables #53

Open
viktor-refeyn opened this issue Nov 18, 2024 · 1 comment
Open

launch.json executable path doesn't accept variables #53

viktor-refeyn opened this issue Nov 18, 2024 · 1 comment

Comments

@viktor-refeyn
Copy link

If I add the following config to launch.json

{
    "type": "mcuxpresso-debug",
    "name": "MCUXpresso Project",
    "request": "launch",
    "cwd": "${workspaceFolder}",
    "executable": "${workspaceFolder}/build/NXP.elf",
}

I get the following error : [error] Executable "${workspaceFolder}/build/NXP.elf" does not exist.

The variable I try to use is according to this: https://code.visualstudio.com/docs/editor/variables-reference

I tried the following combinations too, without much success:

  • "executable": "${workspaceFolder}/build/NXP.elf"
  • "executable": "${workspaceFolder}\\build\\NXP.elf"
  • "executable": "build/NXP.elf"
  • "executable": "build\\NXP.elf"
  • "executable": "./build/NXP.elf"
  • "executable": ".\\build\\NXP.elf"
@viktor-refeyn viktor-refeyn changed the title launch,json executable path doesn't accept variables launch.json executable path doesn't accept variables Nov 18, 2024
@DragosMiloiuNXP
Copy link
Contributor

Hi @viktor-refeyn,

Issue reproduced. It will be fixed by the next release.

Possible workarounds:

  • Try leaving "executable" empty. Extension will try to automatically compute its value using CMake.
  • Use absolute path.

Thanks,
Dragos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants