Comments (4)
Did you git clone --recurse-submodules ...
?
from bleep.
Hey there, thanks for you interest in looking into it! :)
No there isn't I guess, except for this section in the readme. The way I see it, bleep is a normal JVM program. Of course it manages a bloop server which complicates things, and it's ultimately compiled to a graalvm image but you can typically ignore that.
So how to start then? mount the bleep codebase in your IDE like intellij, and start bleep.Main
. set current working directory (in intellij run config or by adding a parameter -d ../some/other/dir
). Then start it in debug mode and set breakpoints, and you should hopefully be able to navigate from there.
So in this case I think the problem looks somewhat obvious, the import code tries to read all generated source and resourcesfiles as UTF-8 encoded strings. if you have an sbt plugin which generates binary files, or at least non-UTF-8 encoded text files, this seems likely to blow up.
from bleep.
I'm not entirely sure what to do about it btw. we could add a simple try/catch and just complain with a warning for these files, as I think it's a rather niche case (though curious to know what causes it on your side, maybe I'm not right about that).
The user flow here is that the sbt import generates a script which can replicate the generated (re-)sources the sbt build produced - but in a frozen state. You're meant to reimplement that script to generate the files properly into the destinations you can see in the script. That's why it's probably not an emergency if that stopgap script is not 100% complete.
If we want to do better we'll probably need to split the GeneratedFile
structure into one for sources and one for resources. The reason why it's really beneficial to keep the generated sources in text form is that some string replacement of paths is done to them so that the snapshot tests bleep uses are portable between machines (see ).
The snap
from bleep.
Cool, I already saw readme and because I'm familiar with BSP and scala-cli setup-ide part was easy ;) Unfortunately, something is off, I cloned fresh instance of repo and this is what I got as a result of bleep compile bleep-core@jvm213
.
Details
➜ bleep2 git:(master) bleep compile bleep-core@jvm213
📙 Launching Bleep version 0.0.2 for ARM64 because you ran the AMD64 build. This is probably because you're running coursier compiled for AMD64. You can either try the coursier M1 runner at https://github.com/VirtusLab/coursier-m1 , or download and install bleep manually. Note that bleep will work this way, but startup will be slower.
📙 Refreshing /../bleep2/.bleep/builds/normal/.bloop...
📗 wrote bloop files [value => New: 39]
📗 bootstrapped in 223 ms
📗 Running source generator `bleep.scripts.GenerateResources` for project bleep-model@jvm213 because output didn't exist
📗 BSP / [script GenerateResources]: bootstrapped in 217 ms
📙 BSP / [script GenerateResources]: Writing /../bleep2/.bleep/generated-sources/bleep-model@jvm213/bleep.scripts.GenerateResources/bleep/model/BleepVersion.scala [target.project => bleep-model@jvm213]
📙 BSP / [script GenerateResources]: Writing /../bleep2/.bleep/generated-sources/bleep-model@jvm213/bleep.scripts.GenerateResources/bleep/model/Jvm.scala [target.project => bleep-model@jvm213]
📗 Run bleep.scripts.GenerateResources succeeded
📕 BSP: bleep-core@jvm213 object davidgregory084 is not a member of package io.github [value => file:///../bleep2/bleep-core/src/scala/bleep/GenBloopFiles.scala:8:7 until 8:32]
it's a rather niche case (though curious to know what causes it on your side, maybe I'm not right about that)
I'll try to examinate project and build on its own today or tomorrow.
from bleep.
Related Issues (20)
- Passing arguments to `test` command HOT 18
- incorrect zsh compleation for coursier installations HOT 1
- [BUG] Issue starting metals in neovim/vscode HOT 1
- [Feature request] Option to pass shell completions to stdout.
- [Feature] Support link debug/release for ScalaJS HOT 8
- Running `sourcegen -w` doesn't re-trigger on changes in additional source directories HOT 2
- Documentation for ScalaJS projects HOT 6
- Provide command to export dependency graph HOT 3
- Change default behaviour of build update-deps to ignore milestones. HOT 5
- Trouble cloning github project HOT 4
- Keep getting `libdaemonjvm.server.LockError$ZombieFound` in Earthly satellite HOT 1
- Parameterize source generators HOT 1
- [BUG] --strict does not work on Scala 3.5.0 -Ykind-projector is deprecated HOT 1
- scala-cli import HOT 1
- poor error reporting through cli HOT 2
- Standardize handling of environment variables, java properties and so on between `test`,`run`, `script` (maybe others?) - and then document it properly
- [BUG] Spam to .bleep/builds/bsp/last.log causing high cpu usage and massive filesize HOT 4
- Possible issue with native image and --only for tests HOT 1
- [idea] interactive build creation / template builds HOT 5
- Build error/warning line numbers are one-too-low HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleep.