Comments (5)
Hi @Abion47 thanks for the report. Sorry for the delay, I was taking some time off.
Yeah I believe I've noticed some race conditions with the script as well where multiple watchers get started. I'm unsure if this is what is hanging up your terminal but I did put up this PR that I think should fix that issue #18 .
I have tried reproducing your issue specifically and I haven't had much luck 😞. Can you try checking out the branch for that PR and testing? You'll need to:
- navigate to
$HOME/.asdf/plugins/dart
git checkout fix-file-watcher
- kill any remaining filewatcher processes (either
killall fswatch
if nothing else is using it orps ax | grep fswatch
and find the pids that are watching$HOME/.tool-versions
and kill those.) - Then open up VS Code and see if your terminal works.
If you don't get back to me I'll probably just merge this because it works on my machine 😬
Hope that helps!
from asdf-dart.
This didn't fix the issue. VS Code is still pausing on startup and freezing the terminal.
from asdf-dart.
Interesting. The script shouldn't block because I believe it should start a separate child processes for fswatch
and the "event handler" for fswatch. You may want to try running this script in the background though. You can do that by adding an &
to the end of the line. That will print to the shell when the script exits though (which is expected if you already have the fswatch running).
If this works I'll try to find a way to mute that " exit 1" message.
The command in your rc file should look like: bash ${HOME}/.asdf/plugins/dart/tools/dart_version_watcher.sh &
from asdf-dart.
Okay I may have also found another issue.
Instead of using bash ${HOME}/.asdf/plugins/dart/tools/dart_version_watcher.sh
can you remove the bash
so it just looks like this? ${HOME}/.asdf/plugins/dart/tools/dart_version_watcher.sh
I don't think the pidof
command is able to correctly find script if you run it with bash explicitly.
from asdf-dart.
So a couple of issues.
First, the pidof
command is not installed on Mac by default it seems. I had to run brew install pidof
to get the new script to run.
Second, after installing pidof
, the script is complaining about illegal option -- o
.
from asdf-dart.
Related Issues (12)
- `asdf install dart latest` no longer downloads the latest version of Dart HOT 4
- asdf latest dart should return the latest stable version HOT 1
- Path to dart sdk in readme HOT 2
- Apple Silicon M1 should download corresponding Dart Sdk HOT 2
- Support M1 macs architecture HOT 2
- mktemp alpine fix HOT 4
- [Request]please add arm64 support. HOT 4
- does not install properly HOT 3
- Protect against attempting to download invalid versions HOT 2
- Plans supporting beta/dev channnel HOT 1
- Not working for some reason HOT 6
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 asdf-dart.