Skip to content

Add FLUTTER_ROOT environment variable - #157

Open
FMorschel wants to merge 1 commit into
pingbird:masterfrom
FMorschel:flutter_root
Open

Add FLUTTER_ROOT environment variable#157
FMorschel wants to merge 1 commit into
pingbird:masterfrom
FMorschel:flutter_root

Conversation

@FMorschel

Copy link
Copy Markdown

@pingbird I'm still not quite familiar with the project as a whole, but I think this would fix #147.

Could you please test this out, too? Thanks a lot!

@FMorschel

Copy link
Copy Markdown
Author

Friendly ping @pingbird. I'd love to have this published as an official new version.

@hectorAguero

Copy link
Copy Markdown

This MR should fix dart run build_runner build not working when using Puro.

For now, not having that command working is a real pain point that makes using Puro a poor experience, because it's difficult to find out why it is not working.

As a temporary solution on my computer, I added the FLUTTER_ROOT variable to my .zshenv, so I can use flutter pub run command instead

export FLUTTER_ROOT="$HOME/.puro/envs/default/flutter" # Added manually for Puro (temporary)

And this alias:

alias drb="flutter pub run build_runner build"

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

Successfully merging this pull request may close these issues.

Puro dart commands fail and dart unable to detect Flutter SDK

2 participants