bloop console <some-project
I get the above strange error when bloop or coursier tries to download some things (scala compiler and reflect !?). Has anyone else tried to run bloop console
with the latest release (1.4.1)?
error: Unexpected error forces client exit!
java.lang.NumberFormatException: For input string: "0
"
at java.lang.Integer.parseInt(Integer.java:652)
at java.lang.Integer.parseInt(Integer.java:770)
at snailgun.protocol.Protocol.$anonfun$processChunkFromServer$1(Protocol.scala:193)
at scala.util.Try$.apply(Try.scala:213)
at snailgun.protocol.Protocol.processChunkFromServer(Protocol.scala:180)
at snailgun.protocol.Protocol.sendCommand(Protocol.scala:108)
at snailgun.TcpClient.run(TcpClient.scala:34)
at bloop.bloopgun.BloopgunCli.executeCmd$1(Bloopgun.scala:268)
at bloop.bloopgun.BloopgunCli.fireCommand(Bloopgun.scala:274)
at bloop.bloopgun.BloopgunCli.run(Bloopgun.scala:230)
at bloop.bloopgun.Bloopgun$.main(Bloopgun.scala:638)
at bloop.bloopgun.Bloopgun.main(Bloopgun.scala)
trim
in https://github.com/jvican/snailgun/blob/master/core/src/main/scala/snailgun/protocol/Protocol.scala#L193 ?
"/Users/work/src/PROJECT_ROOT/.bloop/common/build/classes"
Unfortunately, that directory doesn't exist. I'm assuming it should so that coc-metals can get completion info. Any ideas?
2020.05.28 11:50:38 INFO compiling common (239 java sources) 2020.05.28 11:50:38 INFO time: compiled common in 78ms
bloop run <project>
and in my main I have val action = StdIn.readLine()
. I type things and press 'Enter' but it is not received by my app. It works okay with sbt run
but as I already have everything compiled and ready to run it would be awesome to be able to get this working
...../.bloop/PROJECT_NAME/build/classes
, in reality the class file location is slightly different - depending on the client you use (e.g. CLI, Metals). You should see class files under ...../bloop/PROJECT_NAME/build/bloop-XXXX-classes
or similar.bloop clean
then bloop compile PROJECT_NAME
to see it compile from scratch.(239 java sources)
so I'm assuming this is a Java project? While Bloop will compile and run java projects, Metals does not support Java files scalameta/metals-feature-requests#5 - you won't get any code completion on them. Vote on the issue if you need that.
@jvican I found that runing bloopInstall
in maven workspaces will always generate:
"platform" : {
"name" : "jvm",
"config" : {
"home" : "/usr/lib/jvm/java-11-openjdk",
"options" : [
]
},
"mainClass" : [
],
"classpath" : [
],
"resources" : [
]
},
which cause bloop run
to fail since it doesn't have scala library on the classpath
[]
Hello
I'm trying to setup bloop to work with a Play + Scala project on a MacOS computer. The command sbt bloopInstall gives me this output:
[error] Not a valid command: bloopInstall
[error] Not a valid project ID: bloopInstall
[error] Expected ':'
[error] Not a valid key: bloopInstall
[error] bloopInstall
Thanks so much in advance