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

Fails to detect newer versions of Arduino IDE #2

Open
JamesCaska opened this issue Jan 1, 2020 · 0 comments
Open

Fails to detect newer versions of Arduino IDE #2

JamesCaska opened this issue Jan 1, 2020 · 0 comments

Comments

@JamesCaska
Copy link

Versions 1.8.10 and higher will not be detected due to the substring calculation being fixed to 1 decimal place. So 1.8.10 becomes 1.8.1

    public Optional<Version> findCurrentVersion() {
        return findHighestArduinoVersionLine().map( 
            line -> new Version( line.split("=")[0].substring(9, 14) ) 
        );
    }    

Also the minimum seems to be 1.8.5 not the 1.8.0 as per the tool tip.

Also Arduino IDE needs to be both installed and run at least once to create the AppData folders used to detect Arduino. Seems like it should never happen but it caught me out.

Hopefully when I rollback to pre 1.8.10 it will work and maybe I will have more comments.

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

1 participant