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

Use fvm dart version to run builds #1581

Open
ztefanie opened this issue Aug 21, 2024 · 1 comment
Open

Use fvm dart version to run builds #1581

ztefanie opened this issue Aug 21, 2024 · 1 comment

Comments

@ztefanie
Copy link
Member

Currently the build runner and build tasks in the Intellij configs (and even when running the commands in the command line) are using the globally installed dart version. This is not very robust and leads to errors.

We should change the project run config stuff to use the fvm dart version not the globally installed one.

Maxs comment on this: "I think there was a reason to do it the other way around, but maybe only for CI. Not so sure sadly but worth trying! It makes way more sense!"

@ztefanie
Copy link
Member Author

linux workaround script to downgrade dart:`

sudo apt remove dart -y && sudo rm -rf /usr/lib/dart && sudo rm -rf /usr/local/share/dart
sudo apt install dart=3.3.1-1 -y
dart pub global deactivate fvm && dart pub global deactivate protoc_plugin
dart pub global activate fvm && dart pub global activate protoc_plugin
dart --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant