-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
#854 fix platform installation only offered if port is selected #1130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ubidefeo. In this case I think you're not seeing the prompt because of another issue this one, which I have also resolved but in another PR. Bear in mind the issues overlap, so testing for resolution of 979 requires a port is selected due to the PR that this issue is related to. p.s. no worries for testing this one if you're unable to have "no port selected" on this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From time to time, it does not work. I uploaded a screencast here.
I have the avr
platform installed, and when I select ATmega*
board, the installer does not propose anything.
arduino-ide-extension/src/browser/boards/boards-auto-installer.ts
Outdated
Show resolved
Hide resolved
arduino-ide-extension/src/browser/boards/boards-service-provider.ts
Outdated
Show resolved
Hide resolved
arduino-ide-extension/src/browser/boards/boards-auto-installer.ts
Outdated
Show resolved
Hide resolved
arduino-ide-extension/src/browser/boards/boards-auto-installer.ts
Outdated
Show resolved
Hide resolved
Hey @kittaakos this might be for the same issue that I responded to with @ubidefeo above. I'll merge main into this to verify. |
I thought the missing ports were due to this:
My issue seemed to be unrelated. |
I was referring to this:
|
It looks OK now. Thank you! |
@@ -209,7 +220,7 @@ export class BoardsServiceProvider implements FrontendApplicationContribution { | |||
} | |||
} | |||
|
|||
protected async tryReconnect(): Promise<boolean> { | |||
protected tryReconnect(): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't see a reason for this to be async, it's not called across the wire either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it, and it worked. Thank you!
Motivation
Users reported that when selecting a board without a port, the auto-install prompt was erroneously not being shown.
Change description
Ensures we are showing the prompt when desired, whilst satisfying the aim of #485 which sought to prevent an "already closed" auto-install prompt being shown when a board is unplugged. Also includes refactoring to improve readability and logic modularity.
Reviewer checklist