Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 22 12:52
    tgodzik demilestoned #1509
  • Oct 22 12:52
    tgodzik milestoned #1509
  • Oct 22 12:52
    tgodzik commented #1509
  • Oct 22 10:29

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • Oct 22 10:05

    tgodzik on master

    Use current version for specify… Merge pull request #1591 from t… (compare)

  • Oct 22 10:05
    tgodzik closed #1591
  • Oct 22 08:59

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • Oct 22 08:58
    tgodzik review_requested #1591
  • Oct 22 08:58
    tgodzik review_requested #1591
  • Oct 22 08:56
    tgodzik edited #1591
  • Oct 22 08:56
    tgodzik opened #1591
  • Oct 22 08:34

    tgodzik on master

    Forker: fix env processing Fix… Merge pull request #1590 from d… (compare)

  • Oct 22 08:34
    tgodzik closed #1590
  • Oct 21 19:08
    dos65 opened #1590
  • Oct 21 16:19
    tgodzik demilestoned #1509
  • Oct 21 16:19
    tgodzik milestoned #1509
  • Oct 21 15:00

    bloopoid on gh-pages

    Deploy website Deploy website … (compare)

  • Oct 21 14:36

    tgodzik on master

    Update release notes' link to i… Merge pull request #1589 from t… (compare)

  • Oct 21 14:36
    tgodzik closed #1589
  • Oct 21 13:16
    tgodzik review_requested #1589
Tomasz Godzik
@tgodzik
ok, if everything fails maybe you can use the latest version cs install bloop-jvm:1.4.8-90-77e59d70
I am still looking into some issues before releasing a new full version
bloop-jvm will also be the executable name in this case
Steve Jones
@sjfloat
That one works! Thanks.
On both machines. Thanks again.
Hanns Holger Rutz
@Sciss

Hi there. I have a minimal sbt build like

lazy val root = project.in(file("."))
  .settings(
    scalaVersion := "2.13.6",
    libraryDependencies += "de.sciss" %% "mellite-app" % "3.6.1"
  )

and I want to avoid that metals needs to run bloopInstall, i.e. I want to skip sbt altogether. Can I generate the equivalent of bloopInstall easily using the bloop-config library?

Hanns Holger Rutz
@Sciss
the website docs say I can use bloop.config.Config.File.write() but that method does not exist (bloop 1.4.8). How do I write a bloop config ?
Hanns Holger Rutz
@Sciss
seems it's now bloop.config.write(f, tgt)
Hanns Holger Rutz
@Sciss

I get "No build tool" from metals if I run :MetalsImportBuild , and I only use bloop instead of sbt. Like workspace dir looks like this:

src/main/scala/snippet.scala
.bloop/snippet.json

where the contents of snippet.json is:

{
    "version": "1.4.0",
    "project": {
        "name": "snippet",
        "directory": "/data/temp/fsc_tmp/temp7123861175658042201.tmp",
        "workspaceDir": "/data/temp/fsc_tmp/temp7123861175658042201.tmp",
        "sources": [
            "/data/temp/fsc_tmp/temp7123861175658042201.tmp/src/main/scala"
        ],
        "dependencies": [

        ],
        "classpath": [

        ],
        "out": "/data/temp/fsc_tmp/temp7123861175658042201.tmp/.bloop/snippet",
        "classesDir": "/data/temp/fsc_tmp/temp7123861175658042201.tmp/.bloop/snippet/classes",
        "scala": {
            "organization": "org.scala-lang",
            "name": "scala-compiler",
            "version": "2.13.6",
            "options": [
                "-deprecation"
            ],
            "jars": [
                "~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar",
                "~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.6/scala-compiler-2.13.6.jar",
                "~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.6/scala-reflect-2.13.6.jar",
                "~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline/3.19.0/jline-3.19.0.jar",
                "~/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar"
            ],
            "analysis": "/data/temp/fsc_tmp/temp7123861175658042201.tmp/out/out-analysis.bin",
            "setup": {
                "order": "mixed",
                "addLibraryToBootClasspath": true,
                "addCompilerToClasspath": false,
                "addExtraJarsToClasspath": false,
                "manageBootClasspath": true,
                "filterLibraryFromClasspath": true
            }
        },
        "platform": {
            "name": "jvm",
            "config": {
                "home": "/usr/lib/jvm/java-11-openjdk-amd64",
                "options": [
                    "-Duser.dir=/data/temp/fsc_tmp/temp7123861175658042201.tmp"
                ]
            },
            "mainClass": [

            ]
        }
    }
}

what am I missing?

Tomasz Godzik
@tgodzik
@Sciss build import is not neccessary, you could be able to just connect to build server
Hanns Holger Rutz
@Sciss
@tgodzik thanks - with the help of Chris I got it working (there was an issue auto-detecting the "project root"). Very nice, and much faster than having to begin with an sbt build.
Rohith Madamshetty
@rohithbittu33

Hi All, I am learning zio and I am trying to do a very simple thing which i am not able to do it, kindly help me if someone can

import zio._
import zio.App
import zio.console._
import zio.clock._
import org.rogach.scallop._
import scala.concurrent.ExecutionContext.Implicits

object Main extends zio.App{

    def run(args: List[String]) = {

        def get_downloads(a: String, b: String) = {

            val prog = for{
                _       <- ZIO(println(a))

            } yield ()

            prog.exitCode
        }

        val product_idL = List("1", "2", "3")
        val feedL =  List("a", "b", "c")

        case  class ProductFeed(id: String, feed: String)

        val cross = product_idL.flatMap(x => feedL.map(y => (x, y))).map(x => ProductFeed(x._1, x._2))

        val runtime = Runtime.default

        val program: Task[Unit] = 
            for {

                _       <- ZIO(println("------line 1---------"))
                a       <- ZIO.foreach(cross)(x => Task.succeed(get_downloads(x.id, x.feed)))
                _       <- ZIO(println("------line 2---------"))                
            } yield ()

        program.exitCode
    }
}

I see the following output without error, I need to know why am not able to print my ProductFeed?

------line 1---------
------line 2---------
[success] Total time: 1 s, completed Aug 17, 2021, 7:52:27 PM
Eric K Richardson
@ekrich
You might want to try the ZIO space - https://discord.gg/WCWYMKnU
DavidFi1
@DavidFi1
Debugging is not supported because bloop server is running on a JRE
I Installed VS Code with Metals - when I try to debug I get the above massage.
Where is the configuration to tell bloop where the JDK is?
msinton
@msinton
Hi there, I've just installed bloop using coursier and I can't seem to get zsh completions to work
I found evidence to suggest that completions might be installed by using coursier. I also attempted to follow the instructions to add to my zshrc but I can't find my ~/.bloop folder
I'm on ubuntu
Any help greatly appreciated, thanks!
bloop v1.4.8, Using Scala v2.12.8 and Zinc v1.3.0-M4+46-edbe573e
Alexander770
@Alexander770
Hi
I am just started to use Scala Metals with VScode currently on Windows 10. The simple hello-world example is not working. I got following exception:
BSP connection failed in the attempt to get: DebugSessionAddress. Debugging is not supported because bloop server is running on a JRE C:\Program Files\Java\jre1.8.0_281 with no support for Java Debug Interface: 'JDI implementation is not provided by the vendor'. To enable debugging, install a JDK and restart the bloop server.
Can anyone tell me what to do with it?
BSP connection failed in the attempt to get: DebugSessionAddress. Debugging is not supported because bloop server is running on a JRE C:\Program Files\Java\jre1.8.0_281 with no support for Java Debug Interface: 'JDI implementation is not provided by the vendor'. To enable debugging, install a JDK and restart the bloop server.
ckipp
@ckipp:matrix.org
[m]
Hey @Alexander770 you'll need to have a full JDK installed. Currently Bloop started with a JRE, which doesn't support debugging
I'd installed JDK 8 or 11, and then use the command in VS Code, "Metals Restart Build Server", which should restart Bloop and should then start with the JDK
Alexander770
@Alexander770
During the process I allowed VScode to install .jabba\jdk\adopt@1.11.0-11. It is not enough?
Chris Kipp
@ckipp:matrix.org
[m]
🤔 if Metals installed it, it should have been enough. You can also try to set your JAVA_HOME via the Metals Java Home setting
and then do the restart
Alexander770
@Alexander770
I restarted and it works. thank you very much.
I was using intellij for scala now I try VScode. It looks a bit weird to me.
Alexander770
@Alexander770
image.png
In VScode why pushing the button above doesn't run the code?
Alexander770
@Alexander770
image.png
The challenge. In the VScode I have a dev container based on datamechnics spark&scala image.
How I specify in Dockerfile my working directory so that Bloop will see is. Here is the error I receive:
Alexander770
@Alexander770
image.png
I am trying to build scala spark project on devcontainer based on datamechanics spark&scala image.
It reports an error:
need help
Tomasz Godzik
@tgodzik
@Alexander770 there are some issues if a wroskapce is copied to a docker container since files in .bloop have local paths
I would delete it manually or reimport the build in that case
Tomasz Godzik
@tgodzik
Hi all, we created a separate channel on the Scala discord server, please go there to ask questions or discuss issues, thanks!
Siddhant Sanyam
@siddhant3s
How does Bloop discover the main class? Can I query Bloop to give me all the Main classes (class which are child of App)
Ólafur Páll Geirsson
@olafurpg
@siddhant3s here's a command to query for a main class
❯ bloop autocomplete --mode=mainsfqcn --project=cli --format=bash
com.sourcegraph.lsif_java.LsifJava
replace cli with the name of your project
Siddhant Sanyam
@siddhant3s
Woah!
Thank @olafurpg
BTW, I know you hear this a lot, but Sourcegraph is sick!
Ólafur Páll Geirsson
@olafurpg
@siddhant3s haha :smile:
xraybat
@xraybat

latest version of bloop is 1.4.9, any reason (on the bloop-side) that coursier still installs bloop v1.4.8-114-e47368ed? vscode metals extension 1.10.11 requires bloop 1.4.9 too.

from the coursier channel, it should be pulling latest artefacts.

(i can let metals start its own bloop server, just curious re. the discrepancy)
xraybat
@xraybat

ok, appears to be my mistake -- after bloop exit and restarting bloop it attached to a 1.4.9 server -- so bloop about now reports 1.4.9.

i assume it just kept restarting an older server previously.