Skip to content

Modification of installed core files breaks compilation #2547

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

Closed
3 tasks done
giacomocusinato opened this issue Oct 30, 2024 · 0 comments · Fixed by #2548
Closed
3 tasks done

Modification of installed core files breaks compilation #2547

giacomocusinato opened this issue Oct 30, 2024 · 0 comments · Fixed by #2548
Assignees
Labels
topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@giacomocusinato
Copy link
Collaborator

Describe the problem

When IDE is open, modifying installed core files (like boards.txt or programmers.txt) leads to compilation not working with the following error logged in the console: The instance is no longer valid and needs to be reinitialized

To reproduce

The error The instance is no longer valid and needs to be reinitialized should appear

Expected behavior

The compilation should proceed as expected as the IDE should handle the error silently.

Arduino IDE version

2.3.3

Operating system

macOS

Operating system version

15.0.1

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
@giacomocusinato giacomocusinato added the type: imperfection Perceived defect in any part of project label Oct 30, 2024
@giacomocusinato giacomocusinato self-assigned this Oct 30, 2024
@per1234 per1234 linked a pull request Oct 30, 2024 that will close this issue
4 tasks
@per1234 per1234 added topic: code Related to content of the project itself topic: CLI Related to Arduino CLI labels Oct 30, 2024
davegarthsimpson pushed a commit that referenced this issue Nov 21, 2024
* fix: use `Status` enum for status code in `ServiceError` type guards

This change resolves the issue where the intersection of `ServiceError` error codes of type `number` resulted in the `never` type due to conflict between number and `State` enum if `StatusObject`

* feat: add `isInvalidArgument` type guard to `ServiceError`

* fix: retry compilation if grpc client needs to be reinitialized

See #2547
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants