GithubHelp home page GithubHelp logo

scala-cli / bloop-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scalacenter/bloop

1.0 1.0 8.0 83.98 MB

The core modules of Bloop, without any build tool integration or benchmark infrastructure - intended to be used by Scala CLI

License: Apache License 2.0

Scala 98.17% Java 1.09% Python 0.08% Shell 0.36% Batchfile 0.30%

bloop-core's People

Contributors

adpi2 avatar alexarchambault avatar arthurm1 avatar bloopoid avatar ckipp01 avatar dependabot[bot] avatar dos65 avatar dotta avatar dsilvasc avatar duhemm avatar gersonsosa avatar jsoref avatar jvican avatar kpodsiad avatar lolgab avatar lukaszwawrzyk avatar maximekjaer avatar mzarnowski avatar olafurpg avatar oyvindberg avatar pkolaczk avatar propensive avatar rberenguel avatar scala-center-steward[bot] avatar tgodzik avatar theelectronwill avatar tindzk avatar tkroman avatar tpasternak avatar tues avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

bloop-core's Issues

bloop-rifle hangs after unidentified bloop server crash

when I run

$ scala-cli run scripts  --suppress-experimental-feature-warning --suppress-directives-in-multiple-files-warning scripts -- packages local docker

I get this in console:

Bloop 'bsp' command exited with code 1. Something may be wrong with the current configuration.
Running the clean sub-command to clear the working directory and remove caches might help.
If the error persists, please report the issue as a bug and attach a log with increased verbosity by passing -v -v -v.

and scala-cli hangs. This occurs very often on our CI but this particular log was taken from my macbook (first time I've seen this happen locally). We assumed it was a problem with CI but it seems not to be the case.

Default java opts assumes a minimum Java version

I'm referring to

"-XX:+UseZGC", // ZGC returns unused memory back to the OS, so Bloop does not occupy so much memory if unused

For instance, on Java 11 it will fail with:

Error: VM option 'UseZGC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: The unlock option must precede 'UseZGC'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I didn't try on earlier JDKs but it will probably fail altogether.

Ram size

java -Xss4m -Xms100m -Xmx1G -classpath /home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scalameta/metals_2.13/1.2.2/metals_2.13-1.2.2.jar:/home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar:.... its take near 1gb

java -cp /home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/virtuslab/scala-cli/cli_3/1.1.2/cli_3-1.1.2.jar:/home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/alexarchambault/case-app_3/2.1.0-M26/case-app_3-2.1.0-M26.jar:/... its take near 300mb

the above process take more ram in ide ,so ide get slow
scalacli takes average take 1gb ,max: 2gb

how to reduce thier ram size

Ram size

java -Xss4m -Xms100m -Xmx1G -classpath /home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scalameta/metals_2.13/1.2.2/metals_2.13-1.2.2.jar:/home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar:.... its take near 1gb

java -cp /home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/org/virtuslab/scala-cli/cli_3/1.1.2/cli_3-1.1.2.jar:/home/local/USERECE/.cache/coursier/v1/https/repo1.maven.org/maven2/com/github/alexarchambault/case-app_3/2.1.0-M26/case-app_3-2.1.0-M26.jar:/... its take near 300mb

the above process take more ram in ide ,so ide get slow
scalacli takes average take 1gb ,max: 2gb

how to reduce thier ram size

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.