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

[ATL-1294] At first ide startup invoke installation of arduino:avr #497

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

AlbyIanna
Copy link
Contributor

HOW

Use LocalStorageService to know if it's the first IDE startup, and in that case launch arduino:avr installation.

protected invalidConfigPopup:
| Promise<void | 'No' | 'Yes' | undefined>
| undefined;
protected toDisposeOnStop = new DisposableCollection();

@postConstruct()
protected async init(): Promise<void> {
const notFirstStartup = await this.localStorageService.getData(
'notFirstStartup'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use a const rather than just a string.
I'm also wondering if a more expressive string that relates to it's purpose is better

something like

const INIT_AVR_PACKAGES = 'initializedAvrPackages';

@AlbyIanna AlbyIanna force-pushed the atl-1294--install-avr-first-startup branch from c080392 to 90046c9 Compare September 2, 2021 08:46
Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Win 🆗
Linux 🆗

@AlbyIanna AlbyIanna merged commit bfb90a8 into main Sep 2, 2021
@AlbyIanna AlbyIanna deleted the atl-1294--install-avr-first-startup branch September 2, 2021 10:50
@ShineUnM
Copy link

ShineUnM commented Sep 4, 2021

Maybe, Let user to choose installing the AVR core lib or not is better?
For example, I never use AVR, now I have to wait it installing and remove it, and install my target core lib

@fstasi
Copy link
Contributor

fstasi commented Sep 6, 2021

Maybe, Let user to choose installing the AVR core lib or not is better?
For example, I never use AVR, now I have to wait it installing and remove it, and install my target core lib

@ShineUnM this PR is meant to close the gap between the IDE2 beta and the current IDE. The latter ships with AVR core pre-installed in order to make the experience as forgiving as possible for newcomers.

I'll discuss your comment with the UX team and evaluate if we can find a suitable solution for more advanced users.

Feel free to open an issue so that we can track your request and collect other feedback.

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants