Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:16
    marek1840 commented #1115
  • 12:51

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • 12:38

    jvican on master

    Fix docs-gen compilation error … (compare)

  • 12:36
    jvican labeled #1109
  • 12:36
    jvican labeled #1109
  • 12:36
    jvican labeled #1109
  • 12:35
    jvican edited #1109
  • 12:33
    jvican labeled #1098
  • 12:33
    jvican labeled #1098
  • 12:33
    jvican edited #1098
  • 11:27
    jvican commented #1115
  • 11:25

    jvican on master

    Resolve correct linker versions… Merge pull request #1097 from t… (compare)

  • 11:25
    jvican closed #1097
  • 11:25
    jvican closed #1062
  • 10:58
    jvican synchronize #1115
  • 10:54
    jvican synchronize #1097
  • 10:46

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • 10:42

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • 10:34

    jvican on master

    Add .sbtopts to .gitattributes (compare)

  • 10:30

    jvican on master

    Fix .jvmopts EOL issue (compare)

Nicolas Rinaudo
@nrinaudo
no, it doesn't. Just tried both
Myroslav
@odisseus
But you can always edit those configurations manually to set up the dependencies properly for each project
Nicolas Rinaudo
@nrinaudo
yeah but I'm not sure it's possible to set them up :)
let me explain in SBT terms, because that's the only way I know how
the dependencies work that way: core:test <- laws:main <- core:main
where <- means depends on
so there's a bit of a circular dependency thing going on, if you consider that 1 module in 2 different configurations is not 2 modules
Nicolas Rinaudo
@nrinaudo
mmm... now that is weird... I checked the JSON configuration files, and the classpaths appear properly configured
woah. Ok. I might have actually found a bug.
here's one of the errors I'm running into: I have a package called kantan.codecs.shapeless. In a test file, I need to import shapeless.HNil.
It appears that scalac and bloop interpret the following differently:
package kantan.codecs.shapeless

import shapeless.HNil
scalac things shapeless is _root_.shapeless, bloop that it's kantan.codecs.shapeless

if I rewrite that explicitly to:

package kantan.codecs.shapeless

import _root_.shapeless.HNil

Then bloop has no issue compiling it

Myroslav
@odisseus
You might want to file an issue on Github or at least write to the Discord chat. I'm not the real maintainer, and @jvican probably doesn't read this chat anymore.
Nicolas Rinaudo
@nrinaudo
ah, I didn't realise this has moved to discord. Thank you
Gregg Hernandez
@gregghz
how do i install the "launcher" referenced here: https://scalacenter.github.io/bloop/docs/launcher-reference
Myroslav
@odisseus
I guess you can just download the jar and launch it from command line
Gregg Hernandez
@gregghz

thanks, that should work. Another issue i'm having: when I run bloop server on my jenkins host, the output just hangs on this:

$ bloop server

Unable to load nailgun-version.properties.
NGServer [UNKNOWN] started on address localhost/127.0.0.1 port 8212.

no further output is produced and the script doesn't terminate.

Myroslav
@odisseus
My guess is that it tries to download the full distribution of Bloop
Which might fail due to network issues, or might just take a very long time
If you have full control over your environment, you'd be better off installing the Bloop server beforehand
IIRC, the launcher would look for a Bloop executable in your $PATH, and also in some default location
Gregg Hernandez
@gregghz
The above issue is not using the launcher
i manually installed bloop using the curl method
Myroslav
@odisseus
Ah, that's ok
The server is actually running and ready for requests
Gregg Hernandez
@gregghz
okay, so i'll just need to make sure the shell i'm using doesn't wait for it.
back to the launcher: it fails for me with Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/immutable/List
Myroslav
@odisseus
Run bloop about in another console to make sure the server is listening
Well, I guess you have to provide Scala JARs in the classpath
Gregg Hernandez
@gregghz
i'll see what I can do. FWIW, it's a managed host that I don't have full (ssh) access to. I only really can do things via a Jenkinsfile
that makes sense, kind of a bummer though
Myroslav
@odisseus
The launcher JAR contains most of the classes it needs, but not Scala itself — otherwise it wouldn't be so small
If you're going to compile Scala code, you must have Scala JARs somewhere in the system
Gregg Hernandez
@gregghz
sure, it's all inside a docker container, sbt (for example) isn't even installed on the host. I need to run the server from the host
anyway, I can manage the launcher thing, there are lots of ways to get the scala jar
Gregg Hernandez
@gregghz
running bloop test now fails because it looks for the scala lib in ~/.sbt. Is there any way to change this directory to point somewhere else?
Myroslav
@odisseus
This depends on the build configuration files. How do you generate them?
Gregg Hernandez
@gregghz
sbt bloopInstall
from inside the docker container though. The ~/.sbt folders maps to a different path on the host
Myroslav
@odisseus
Hm
Do I understand correctly that you generate the configs not on the same machine on which you're trying to run Bloop?
If so, I see two ways to solve that problem
Either edit these configs manually so that paths to JARs point to the correct locations
Or make sure that ~/.sbt exists on your host and contains all the artifacts that are referenced in the configs
Myroslav
@odisseus
I'm not familiar with the way SBT generates Bloop configurations, so you might also want to ask @jvican himself for advice, but you'd have to use the Discord chat.
Gregg Hernandez
@gregghz
is there a link to the discord channel?
Myroslav
@odisseus
Of course there is, in the topic of this chat
Gregg Hernandez
@gregghz
ah, of course :) thanks!
i'll move any further questions there, i didn't realize the gitter was deprecated. Thanks for sticking around and helping out