Giter VIP home page Giter VIP logo

Comments (9)

olafurpg avatar olafurpg commented on July 29, 2024 1

I just tested bloop.plist by restarting my computer and running bloop worked immediately after login :)

from bloop.

olafurpg avatar olafurpg commented on July 29, 2024

It seems the error messages are reported by the server process but not the client. I setup a launch agent to startup blop server on login and now I no longer see nailgun errors 😄

This is OSX specific but seems to work OK

$ cat bloop.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>Bloop</string>
    <key>Program</key>
    <string>/Users/ollie/dev/bloop/bloop-server</string>
    <key>KeepAlive</key>
    <true/>
</dict>
</plist>
$ launchctl load bloop.plist
$ alias bloop="ng bloop.Cli"
$ bloop help
<...> 

from bloop.

olafurpg avatar olafurpg commented on July 29, 2024

By moving bloop.plist to ~/Library/LaunchAgents then bloop will be started by the OS on user login. The KeepAlive option makes sure that bloop-server is restarted whenever it's killed. So to restart you only need to run launchtl stop Bloop, and wait a few seconds.

from bloop.

strobe avatar strobe commented on July 29, 2024

I got same error (osx)

% bloop projects
Loading 4 projects from '/Users/evgeniy/<project_path>/.bloop-config'...
Projects loaded from '/Users/evgeniy/<project_path>/.bloop-config':
 * macros
 * macros-test
 * root
 * root-test
Dec 01, 2017 2:08:36 PM com.martiansoftware.nailgun.NGInputStream$1 run
WARNING: Nailgun client read future was interrupted
java.lang.InterruptedException
	at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404)
	at java.util.concurrent.FutureTask.get(FutureTask.java:204)
	at com.martiansoftware.nailgun.NGInputStream$1.run(NGInputStream.java:91)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Dec 01, 2017 2:08:36 PM com.martiansoftware.nailgun.NGSession run
INFO: NGSession shutting down

from bloop.

olafurpg avatar olafurpg commented on July 29, 2024

bloop.plist has been working great for me so far, to update bloop I re-bootstrap bloop-server with coursier and then launchctl stop Bloop. I'm happy to try and bundle this in a homebrew install script if there is interest.

from bloop.

jvican avatar jvican commented on July 29, 2024

I'm not a OSX user, it would be great if you could add a section in the README on how to set up automatic bloop server initialization via plist.

I'm looking into this issue now, let's see if I can reproduce.

from bloop.

olafurpg avatar olafurpg commented on July 29, 2024

I haven't seen any cryptic nailgun errors since I setup bloop.plist, feel free to close if you can't reproduce.

from bloop.

jvican avatar jvican commented on July 29, 2024

I'm closing. If someone reproduces it, please do ask to open this ticket. Thanks 👍

from bloop.

jvican avatar jvican commented on July 29, 2024

I've filed a ticket upstream: facebookarchive/nailgun#112, I was able to reproduce. Updates will happen there.

from bloop.

Related Issues (20)

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.