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

When core is not installed in the default location, debug cannot launched properly #1911

Closed
3 tasks done
fpistm opened this issue Feb 22, 2023 · 3 comments · Fixed by #1975
Closed
3 tasks done

When core is not installed in the default location, debug cannot launched properly #1911

fpistm opened this issue Feb 22, 2023 · 3 comments · Fixed by #1975
Assignees
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: code Related to content of the project itself topic: debugger Related to the integrated debugger type: imperfection Perceived defect in any part of project

Comments

@fpistm
Copy link

fpistm commented Feb 22, 2023

Describe the problem

Hi,
When core is not installed in the default location:
c:\Users\<username>\AppData\Local\Arduino15
debug cannot launched properly with error:
Error getting Debug info: Unknown FQBN: platform arduino:samd is not installed while it is

Example with official SAMD core:
image

It seems the arduino-cli.yaml available in the default location is ignored by the debug feature. Anyway copying this file next to the Arduino IDE binary solve the issue.

Note:

  • Build and upload works properly.

To reproduce

Precondition:
Having no SAMD core installed in the default location else it works as it uses the one in the default location instead
of the one in the specified directory.

1 - Change the default install location in the c:\Users\<username>\.arduinoIDE\arduino-cli.yaml
ex:

-  data: c:\Users\<username>\AppData\Local\Arduino15
-  downloads: C:\Users\<username>\AppData\Local\Arduino15\staging
+  data: C:\IDE\portable4ide
+  downloads: C:\IDE\portable4ide\staging

2- Launch Arduino IDE
3- Install SAMD core
4- Build a sketch
5- Try to debug, then you got the issue. (See above screenshot)

Expected behavior

Be able to launch the debug with the core installed in the specified location even if the same core is installed in the default one

Arduino IDE version

2.0.3

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@fpistm fpistm added the type: imperfection Perceived defect in any part of project label Feb 22, 2023
@per1234 per1234 added the topic: debugger Related to the integrated debugger label Feb 22, 2023
@per1234 per1234 changed the title [debug]: when core is not installed in the default location, debug cannot launched properly When core is not installed in the default location, debug cannot launched properly Feb 22, 2023
@kittaakos kittaakos self-assigned this Feb 24, 2023
@fpistm
Copy link
Author

fpistm commented Feb 27, 2023

Maybe related to #122

@kittaakos
Copy link
Contributor

Maybe related to #122

Probably not. The VS Code extension must append the --config-file flag when generating the debug config. See here.

@fpistm
Copy link
Author

fpistm commented Feb 27, 2023

My point was it could be related to the portable mode when we want install to another directory like portable. If it was supported I would probably use it instead of modifying manually the arduino-cli.yaml. 😉

@per1234 per1234 added topic: CLI Related to Arduino CLI topic: code Related to content of the project itself labels Feb 28, 2023
kittaakos pushed a commit to arduino/vscode-arduino-tools that referenced this issue Mar 22, 2023
If the `directories.data` is not the default, debug metadata generation
can fail with false positive missing platform error.

Ref: arduino/arduino-ide#1911
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/vscode-arduino-tools that referenced this issue Mar 22, 2023
If the `directories.data` is not the default, debug metadata generation
can fail with false positive missing platform error.

Ref: arduino/arduino-ide#1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/vscode-arduino-tools that referenced this issue Mar 22, 2023
If the `directories.data` is not the default, debug metadata generation
can fail with false positive missing platform error.

Ref: arduino/arduino-ide#1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 22, 2023
so when starting the debugger the CLI config path is used by the CLI for
the `daemon -I` command.

Closes #1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/vscode-arduino-tools that referenced this issue Mar 27, 2023
If the `directories.data` is not the default, debug metadata generation
can fail with false positive missing platform error.

Ref: arduino/arduino-ide#1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit to arduino/vscode-arduino-tools that referenced this issue Mar 27, 2023
If the `directories.data` is not the default, debug metadata generation
can fail with false positive missing platform error.

Ref: arduino/arduino-ide#1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 27, 2023
so when starting the debugger the CLI config path is used by the CLI for
the `daemon -I` command.

Closes #1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 28, 2023
so when starting the debugger the CLI config path is used by the CLI for
the `daemon -I` command.

Closes #1911

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: code Related to content of the project itself topic: debugger Related to the integrated debugger type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants