Comments (9)
I just tested bloop.plist by restarting my computer and running bloop
worked immediately after login :)
from bloop.
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.
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.
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.
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.
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.
I haven't seen any cryptic nailgun errors since I setup bloop.plist, feel free to close if you can't reproduce.
from bloop.
I'm closing. If someone reproduces it, please do ask to open this ticket. Thanks 👍
from bloop.
I've filed a ticket upstream: facebookarchive/nailgun#112, I was able to reproduce. Updates will happen there.
from bloop.
Related Issues (20)
- Scala/Java mixed projects fail to compile using processorpath bloop + metals HOT 7
- Migrate away from monix to cats-effect HOT 4
- `bloop exit` is undocumented in CLI help and completions HOT 1
- Java modules are not handled properly HOT 2
- I met these error message in 1.5.6 and 1.5.8 HOT 1
- Bloop server has different behavior with sbt in macro HOT 1
- Incremental compile is broken in 1.5.10 HOT 3
- Bloop home directory on Linux HOT 2
- Submit to winget HOT 1
- bug: deduplicate for cancelled compilations
- Support JDK 19 HOT 2
- sbt-bloop (0.5.12) suddenly started compiling when running sbt bloopInstall HOT 6
- Cannot discover test frameworks
- `java.lang.ArrayIndexOutOfBoundsException` while compilation HOT 4
- Include provided dependency in runtime classpath
- Issues with semanticdb if workspace contains whitespace
- Invalid "sources" list generated for project with '-test' suffix.
- installation on mac fails HOT 5
- Bloop can't compile Dotty HOT 4
- multiple errors like "bad path element "... ": no such file or directory when building Apache Kafka HOT 4
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 bloop.