Skip to content

Reduce the amount of Snap-specific code requires to set up Flutter#3292

Merged
DanTup merged 2 commits intomasterfrom
remove-snap-specific-code
Apr 26, 2021
Merged

Reduce the amount of Snap-specific code requires to set up Flutter#3292
DanTup merged 2 commits intomasterfrom
remove-snap-specific-code

Conversation

@DanTup
Copy link
Member

@DanTup DanTup commented Apr 21, 2021

Fixes #2853.

@MarcusTomlinson FYI - this is to remove a lot of the snap-specific code that should no longer be required (canonical/flutter-snap#8).

There is still a little code to detect where a user has never invoked flutter so it hasn't been initialised, which is in the block here:

https://github.com/Dart-Code/Dart-Code/pull/3292/files?diff=split&w=1#diff-a4ef2b6ac3b51b2727e1fdae4a827f588e33df8c71bbad63fde3b96a92b5bfd1R265

It detects when no Flutter SDK is found, but there is a flutter binary that is a symlink to the Snap binary (it seems like this is created by Snap initially, so that the first run of flutter will trigger the initialisation), forces initialisation, and then re-searches for the SDK (since after initialisation, there is a new flutter binary on PATH that is a real SDK - the original Snap-symlink seems to remain, further down the PATH).

Unless you have any objections, I'll merge this early next week. The tests that confirm it's located and initialised are still green when they ran on this branch.

@DanTup DanTup added this to the v3.22.0 milestone Apr 21, 2021
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. on linux labels Apr 21, 2021
@DanTup DanTup merged commit 195b1c6 into master Apr 26, 2021
@DanTup DanTup deleted the remove-snap-specific-code branch April 26, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. on linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify Snap support once environment changes land in beta/stable

1 participant