by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 02 16:25
    jvican labeled #1292
  • Aug 02 16:25
    jvican labeled #1292
  • Aug 01 05:53
    Alexey-NM edited #1351
  • Jul 31 23:02
    Alexey-NM opened #1351
  • Jul 28 14:07
    dkovalenko commented #558
  • Jul 25 14:03
    jvican labeled #1350
  • Jul 25 14:03
    jvican closed #1350
  • Jul 25 14:03
    jvican commented #1350
  • Jul 25 13:36
    user753 opened #1350
  • Jul 23 14:26
    odisseus commented #1347
  • Jul 23 13:18

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • Jul 23 12:57
    jvican closed #1218
  • Jul 23 12:57

    jvican on master

    Fix #1218: workspace build targ… Merge pull request #1219 from d… (compare)

  • Jul 23 12:57
    jvican closed #1219
  • Jul 23 12:57
    jvican commented #1219
  • Jul 23 12:50
    jvican closed #1297
  • Jul 23 12:50
    jvican commented #1297
  • Jul 23 11:15

    Duhemm on no-color-strip-ansi

    (compare)

  • Jul 23 11:12

    jvican on master

    Strip ANSI color escapes when c… Merge pull request #1349 from s… (compare)

  • Jul 23 11:12
    jvican closed #1349
Matt Hicks
@darkfrog26
Are there any instructions on building fastOptJS with Bloop yet?
Matt Hughes
@matthughes
If you ctrl-c out of bloop compile foo -w, it seems to tear down the bloop server. Is that expected?
Matt Hughes
@matthughes
This only happens if the server hasn’t started yet. Bloop creates a server and then cli communicates with it. But then if you CTRL-C out of this scenario, it inadvertantly takes down the newly created server.
Jorge
@jvican
@darkfrog26 You can use bloop link for that, bloop link --help should be of help

If you ctrl-c out of bloop compile foo -w, it seems to tear down the bloop server. Is that expected?

@matthughes That is not expected, it's a bug I've just reproduced. Thankfully it's not a serious bug because it's rare that people run a command with -wand that the server is not started at the same time. Can you create a ticket for it?

I have no evidence yet (anything I can try and look into next time?) of what's going on but I'm finding 1.4.1 less stable than 1.4.0-RC1 (the latter running with brew services). I'm having to manually restart the server daily, bloop exit doesn't work (never completes) so I have to kill the process then bloop about.

I'm a macOS user and I don't have that problem. The bloop server seems to be quite stable for me. You might want to double check that the compilation is not stack by increasing the stack size of the bloop server (check the server reference guide in the docs for instructions)

Matt Hicks
@darkfrog26
I'm getting Could not resolve platform artifacts: coursier.error.ResolutionError$CantDownloadModule: Error downloading org.scala-js:scalajs-tools_2.12:1.0.1 when I try to just do bloop projects
Matt Hicks
@darkfrog26
Well, that was just on the first run, but now it compiles, but when I attempt to run bloop link appJS it says: [E] No main classes defined in project 'appJS'
@jvican is there anything special I need to configure in order to make bloop generate my fastOptJS?
Jorge
@jvican
Do you have a main class in your app?
Matt Hicks
@darkfrog26
I have a main():
@JSExportTopLevel("application")
  def main(): Unit = { ... }
Jorge
@jvican
Is that a main though? I think your main needs to have args: Array[String] to be autodetected as a main class.
If you don't want to change the signature, you can pass in -m to bloop link
Matt Hicks
@darkfrog26
@jvican after changing the signature I now get: [E] bloop.scalajs.JsBridge
Jorge
@jvican
What does --verbose say?
Our integration is for Scala.js 1.0.0, I doubt something has changed in 1.0.1 but worth keeping in mind
@tindzk Any idea what could be going on here?
Matt Hicks
@darkfrog26
[E] bloop.scalajs.JsBridge
[T] java.lang.ClassNotFoundException: bloop.scalajs.JsBridge
[T]     java.net.URLClassLoader.findClass(URLClassLoader.java:382)
Krzysiek Bochenek
@kpbochenek
Hi, I have a problem with compiling @main <-> dotty
Compiling dotty-complex (1 Scala source)
[E] [E1] src/main/scala/dotty/features/Macros.scala:19:1
[E]      Found:    dotty.features.main
[E]      Required: scala.annotation.Annotation
[E]      L19: @main
[E]           ^
[E] src/main/scala/dotty/features/Macros.scala: L19 [E1]
Compiled dotty-complex (339ms)
[E] Failed to compile 'dotty-complex'
package dotty.features

...

@main
def main(): Unit = {
  new Macros().main(Array())
}
works okay from sbt
Jorge
@jvican
@darkfrog26 Can you share the config file of that project? Are you using sbt? Also, doesn't --verbose output more info?
@kpbochenek I'm not sure what's going on there, can you try to share a reproduction?
Krzysiek Bochenek
@kpbochenek
@jvican it is simple dotty project: https://github.com/kpbochenek/dotty-complex
in Macros.scala you have @main as top level. It works as it it.
Now move @main to object Logger, it will throw mentioned error
now bonus points!
move method back to top level(where it compiled previously) and it won't compile Oo
(sbt always compiles ok, bloop structure is generated via opening a project in VSCode and testing with bloop compile dotty-complex)
Jorge
@jvican
will have a closer look at this, thanks
Issue might be related to scalacenter/bloop#1289
Tomasz Godzik
@tgodzik
@jvican that issues doesn't happen with sbt and sbt generated Bloop config, only with Mill. I think it's more important to stop publishing that jar (scala-libary:0.23), it just hides some possible issues
raised an issue in Dotty: lampepfl/dotty#9024
if we can fix it easily in Bloop it would probably it would also be useful, but I think it is most likely not only Bloop that will have this issue
Krzysiek Bochenek
@kpbochenek
@jvican it is not related, as @tgodzik mentioned it is not the case with sbt, also I checked and I have no scala-library:0.X in bloop config
Matt Hicks
@darkfrog26
@jvican it may have to do with the fact that I'm using Scala 2.13?
Alan Devlin
@spf3000
How does bloop decide which jdk to run? My bloop is pointing to an old graalvm that I've removed, and seems to not be fixed just by updating $JAVA_HOME
Alan Devlin
@spf3000
^^ It was just specific to a particular project. I removed .bloop/ and re-Installed. Ignore me! :)
Max
@maxstreese
image.png
Hi everyone I am wondering if anyone else is running into this issue but when I do 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)?
Jorge
@jvican
@darkfrog26 I don't know but it's strange indeed, would help if you could file a ticket
@maxstreese Hmmm, can you make sure you have the latest version of coursier installed?
8 replies
Jakub Kozłowski
@kubukoz
Can someone give me a hand with the zsh completions? I tried to get them to work as an oh-my-zsh plugin, but so far with no effect...
Jorge
@jvican
How are you installing bloop?
slice
@slice
is anyone else experiencing this strange error on java 14?
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)
Jorge
@jvican
@slice Wow, that's really unexpected
It's weird the Nailgun server is returning that status code. How are you using bloop?
Tomasz Godzik
@tgodzik
Has anyone used Bloop run something with DCEVM with hotswapping option? Seems problematic when running main, but haven't tried it yet.