Comments (8)
Removing the symlink did the trick.
Not sure what to do with this issue then :-). Maybe the code should try to follow symlinks to resolve the path to flutter?
from nativeshell.
I think this should do the trick. I'll just need to test it on all platforms before publishing updated crate.
from nativeshell.
Hi,
this part seems suspicious:
Flutter artifact location path at "/bin/cache/artifacts/engine/linux-x64" does not exist! Try running 'flutter precache'
The path should not start with /bin. It should start with wherever "flutter" executable is. But if "flutter" is not in PATH, the error message you got should have been completely different (Please make sure that flutter is in PATH).
What does your PATH look like? I'm curous why flutter location in your case resolved in empty string.
from nativeshell.
flutter
is in PATH.
examples on main [?] is 📦 v0.1.0 via 🎯 v2.14.0-188.0.dev via 🦀 v1.50.0
🔋🔽29% ❯ which flutter [22:37:21]
/bin/flutter
examples on main [?] is 📦 v0.1.0 via 🎯 v2.14.0-188.0.dev via 🦀 v1.50.0
🔋🔽29% ❯ whereis flutter [22:38:00]
flutter: /usr/bin/flutter /opt/flutter/bin/flutter /opt/flutter/bin/flutter.bat
examples on main [?] is 📦 v0.1.0 via 🎯 v2.14.0-188.0.dev via 🦀 v1.50.0
🔋🔽29% ❯ ls /usr/bin/flutter -hl [22:38:04]
lrwxrwxrwx 1 root root 24 7 juin 22:00 /usr/bin/flutter -> /opt/flutter/bin/flutter
It looks like flutter lives in /opt/flutter
but has a symlink to /usr/bin/flutter
.
I installed flutter from the AUR, it probably created that symlink.
The symlink doesn't look necessary because /opt/flutter/bin
is in my PATH. I can try removing it, but I don't like removing files installed by packages.
Thanks for the quick answer.
from nativeshell.
I see where the problem is. I really didn't expect that there'd be symlink to wherever flutter is installed. Normally the way to install flutter is to add [flutter_root]/bin to PATH. Apparently that's not always the case.
I think the best way to fix this should be resolve flutter if it is symlink when searching for artifacts.
from nativeshell.
Aha, I was looking at the code and just arrived at the same conclusion: adding canonicalize should do the trick.
I will test your fix and test and report if it works for me.
from nativeshell.
After reinstating the symlink and checking that it still fails on the previous version, I can report that commit 10ea0de indeed fixes the problem :-).
Feel free to close this issue now or when the updated crate is published.
from nativeshell.
Thank you for confirming this. I published updated crate so I'm closing this issue.
from nativeshell.
Related Issues (20)
- Crashes on multiple monitors in Windows HOT 4
- Is there any way to lower the minimum supported version of macOS HOT 1
- way to run existing flutter code HOT 4
- How to specify libflutter location
- Frameless windows are not resizable on macOS
- Fails to build on apple silicon with Flutter 3.0.0 HOT 2
- The Flutter Attach to Process gets stuck on Waiting... HOT 3
- Invalid read causes segmentation fault HOT 3
- std::rc::Weak<ContextImpl>` cannot be sent between threads safely
- std::rc::Weak<ContextImpl>` cannot be sent between threads safely
- MenuItem clash with flutter widget of the same name HOT 1
- Getting an error when trying to run the examples HOT 2
- Build Error on MacOS 13.2.1 - cargo run or cargo run --release unable to build and run the flutter app for example provided
- Issues with native plugin `media_kit`
- Latest SharedPreferences not working HOT 1
- Jitter when resizing on Windows when frame is `WindowFrame.noTitle` HOT 1
- Unable to build sample project HOT 2
- [super_context_menu] Change/Remove Progress Indicator for DeferredMenuElement
- Calling dart from rust side?
- Support current stable version of Flutter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativeshell.