16 Feb 2024 |
| sethtisue changed their profile picture. | 16:30:01 |
17 Feb 2024 |
| velvetbaldmime changed their profile picture. | 13:56:08 |
19 Feb 2024 |
| fel_her changed their profile picture. | 20:48:55 |
20 Feb 2024 |
| mtomko joined the room. | 16:35:16 |
| 98765abc joined the room. | 19:32:06 |
22 Feb 2024 |
| Keir joined the room. | 11:32:56 |
23 Feb 2024 |
| .spf3000 joined the room. | 04:44:21 |
| spamegg1 changed their profile picture. | 07:20:21 |
25 Feb 2024 |
| jd557 changed their profile picture. | 11:03:15 |
| Domas Poliakas changed their profile picture. | 11:08:56 |
| doofin000 changed their display name from doofin to doofin000. | 18:53:05 |
27 Feb 2024 |
| pritchett1234 joined the room. | 21:55:06 |
| hmemcpy changed their profile picture. | 22:03:39 |
28 Feb 2024 |
| VMetals changed their display name from kurro#9452 to kurro9452. | 08:47:23 |
| uff0 joined the room. | 12:50:39 |
| uff0 changed their profile picture. | 12:50:40 |
uff0 | Hello everyone! I'm look for recommendations of a library/tool/project which could produce a call graph from scala source code. Does anyone have any suggestions? | 12:50:41 |
Tomasz Godzik | There is a functionality in LSP that you should be able to use. Call hierarchy I think it's called | 12:52:13 |
Tomasz Godzik | Probably needs some love, since I don't think a lot of users know about it | 12:52:39 |
sethtisue | this might interest you: https://github.com/lightbend-labs/scala-sculpt | 14:16:31 |
sethtisue | (for Scala 2 only, though) | 14:16:54 |
| mpilquist changed their profile picture. | 16:35:20 |
| ekrich changed their profile picture. | 18:03:04 |
29 Feb 2024 |
| jimka2001 joined the room. | 10:40:45 |
fel_her | Hey all. Sorry for posting here, I have a more involved question, somewhere at the intersection of metals, sbt as a build server, and scalajs. Feel free to redirect me where ever you see fit.
In a lot of projects that have both a web-interface as well as a backend, I use scalajs and laminar for the frontend and normal scala/jvm for the backend. I often start 2 sbts in parallel. In the first, I'm doing:
project projectJVM
~reStart
using sbt revolver to restart my process when a file used by the JVM project changes
In the second I'm doing
sbt
project projectJS
~fastLinkJS
regenerating my website when the UI files change.
I don't want to do something like ~fastLinkJS;reStart in the root project because that would restart my server even though only JS files changed.
Now when switching from bloop to sbt as the buildserver for metals, things seem to go awry. Sometimes one or both of the sbts stop compiling. Sometimes spurious errors pop up. Sometimes I get errors like this:
[error] ## Exception when compiling 165 sources to ...../inheritance/jvm/target/scala-3.3.1/classes
[error] java.nio.file.NoSuchFileException: ....../inheritance/jvm/target/scala-3.3.1/classes.bak/sbt10842950307439078630.class
Is it just a bad idea to use sbt as a build server when you have started two sbt in parallel? Should I change the way I do it because there is a better way to only restart the server on JVM changes? | 11:10:38 |
fel_her | (sorry for the novel) | 11:10:46 |
Tomasz Godzik | In reality there is only one SBT server running and it seems that it's not copying well with having metals connect to it and also SBT revolver running | 11:43:30 |
Tomasz Godzik | We actually almost have hot code reload ready via both bloop and SBT, which might work better. Not 100% sure but that's just a guess | 11:44:44 |
Tomasz Godzik | For bloop we need to release it, but SBT should actually work when running via metals | 11:45:14 |
Tomasz Godzik | It's all new and untested so keep on mind it might not solve your problems | 11:45:41 |