!SoEcwMwiYQRtGcKNvD:matrix.org

scalameta/scalameta

430 Members
Discord bridge for scalameta/scalameta3 Servers

Load older messages


SenderMessageTime
21 May 2024
@_discord_740114047684313110:t2bot.iojypma changed their display name from netwa1ker to jypma.13:16:19
@_discord_1240667701685387370:t2bot.iorohith_02_image.png
Download image.png
17:18:47
@_discord_1240667701685387370:t2bot.iorohith_02_image.png
Download image.png
17:18:48
@_discord_1240667701685387370:t2bot.iorohith_02_ Hey guys.
Why do I see this error? The scala version in my project is 2.12.18. I see that 'do, while' is deprecated on Scala versions 3+.
Should I specify the scala version explicitly somewhere else?
17:18:48
@_discord_392428121342869534:t2bot.ioTomasz Godzik looks like the file is using the default Scala 3 version. Either it's not recognized as part of Scala 2 build or maybe it's a leftover diagnostic from before the project was imported? If you reopen the file does it stay? 17:38:05
22 May 2024
@_discord_1240667701685387370:t2bot.iorohith_02_ Yes, it does stay the same even I reopen the file. 04:31:12
@_discord_1240667701685387370:t2bot.iorohith_02_ Interestingly, I see this message:
INFO no build target found for /scala/com/ro/rkt/util/data/cos/COSWriter.scala. Using presentation compiler with project's scala-library version: 3.3.3

How come my project's scala-library version is 3.3.3? It's 2.12.18.
05:43:24
@_discord_1240667701685387370:t2bot.iorohith_02_image.png
Download image.png
05:52:24
@_discord_392428121342869534:t2bot.ioTomasz Godzik The message shows up when we don't detect any information about the file. You can change the default in the settings, but for sure it will not solve all the problems. Did you import the build? You might want to run it again and show if there are any errors 07:33:14
@_discord_392428121342869534:t2bot.ioTomasz Godzik You can do it via a command or in the metals view 07:33:45
@_discord_1240667701685387370:t2bot.iorohith_02_ That file is from a external JAR. Yes, I had imported the build, it was successful and the compilation was also done. I'm able to access that file, but my concern here is, how can I make the presentation compiler to use scala 2.12.18 instead of 3.3.3? Can you guide me on that? 07:39:07
@_discord_392428121342869534:t2bot.ioTomasz Godzik Interesting, we usually infer the Scala version from the jar path, so that should be fixable for now it VS Code setting you can use "metals.fallbackScalaVersion": "2.13.13", 07:43:54
@_discord_392428121342869534:t2bot.ioTomasz Godzik setting 07:43:57
@_discord_1240667701685387370:t2bot.iorohith_02_image.png
Download image.png
07:57:18
@_discord_1240667701685387370:t2bot.iorohith_02_Screenshot_2024-05-22_at_13.23.42.png
Download Screenshot_2024-05-22_at_13.23.42.png
07:57:19
@_discord_1240667701685387370:t2bot.iorohith_02_ Updated the version and also restarted Bloop. It's still showing that the project's scala-library is 3.3.3. 07:57:19
@_discord_392428121342869534:t2bot.ioTomasz Godzik Looks like the setting is not properly propagated 🤔 This is right next to each other 08:00:14
@_discord_392428121342869534:t2bot.ioTomasz Godzik also, is there any Scala 3 at all in your project? 08:00:40
@_discord_1240667701685387370:t2bot.iorohith_02_ I have searched for Scala 3 in the entire project and I don't see anything. 08:02:03
@_discord_1240667701685387370:t2bot.iorohith_02_ Is there any command to check from where it's fetching that 3.3.3 version ? 08:19:32
@_discord_392428121342869534:t2bot.ioTomasz Godzik Could you try and run the metals doctor? It should show all targets that metals sees 08:23:36
@_discord_1240667701685387370:t2bot.iorohith_02_Screenshot_2024-05-22_at_13.57.13.png
Download Screenshot_2024-05-22_at_13.57.13.png
08:29:09
@_discord_1240667701685387370:t2bot.iorohith_02_ Here you go. There are two buid targets here. One is for the main and one is for the test 08:29:09
@_discord_843896430917320714:t2bot.ioim_bharadwajj joined the room.08:54:35
@_discord_392428121342869534:t2bot.ioTomasz Godzik That looks correct 🤔 it should use scala 2.12.18 as a fallback 09:30:29
@_discord_1240667701685387370:t2bot.iorohith_02_ Pretty much confused on why this is happening. What could be the possible resolution?
I'm not using sbt build, i'm sticking with Maven itself. Does changing to sbt makes any impact?
10:35:36
@_discord_392428121342869534:t2bot.ioTomasz Godzik Everything seems correct aside from the version being picked for the library, which should be 2.12.18 10:50:21
@_discord_392428121342869534:t2bot.ioTomasz Godzik This happens only in dependencies though? 10:50:42
@_discord_1240667701685387370:t2bot.iorohith_02_ only with that specific dependency. 10:51:55
@_discord_392428121342869534:t2bot.ioTomasz Godzik is that a public dependency? 10:52:33

Show newer messages


Back to Room ListRoom Version: 9