Code Monkey home page Code Monkey logo

Comments (5)

PatOConnor43 avatar PatOConnor43 commented on May 28, 2024

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 or ps 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.

Abion47 avatar Abion47 commented on May 28, 2024

This didn't fix the issue. VS Code is still pausing on startup and freezing the terminal.

from asdf-dart.

PatOConnor43 avatar PatOConnor43 commented on May 28, 2024

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.

PatOConnor43 avatar PatOConnor43 commented on May 28, 2024

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.

Abion47 avatar Abion47 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.