22 May 2024 |
rohith_02_ | Download image.png | 05:52:24 |
Tomasz 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 |
Tomasz Godzik | You can do it via a command or in the metals view | 07:33:45 |
rohith_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 |
Tomasz 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 |
Tomasz Godzik | setting | 07:43:57 |
rohith_02_ | Download image.png | 07:57:18 |
rohith_02_ | Download Screenshot_2024-05-22_at_13.23.42.png | 07:57:19 |
rohith_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 |
Tomasz Godzik | Looks like the setting is not properly propagated 🤔 This is right next to each other | 08:00:14 |
Tomasz Godzik | also, is there any Scala 3 at all in your project? | 08:00:40 |
rohith_02_ | I have searched for Scala 3 in the entire project and I don't see anything. | 08:02:03 |
rohith_02_ | Is there any command to check from where it's fetching that 3.3.3 version ? | 08:19:32 |
Tomasz Godzik | Could you try and run the metals doctor? It should show all targets that metals sees | 08:23:36 |
rohith_02_ | Download Screenshot_2024-05-22_at_13.57.13.png | 08:29:09 |
rohith_02_ | Here you go. There are two buid targets here. One is for the main and one is for the test | 08:29:09 |
| im_bharadwajj joined the room. | 08:54:35 |
Tomasz Godzik | That looks correct 🤔 it should use scala 2.12.18 as a fallback | 09:30:29 |
rohith_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 |
Tomasz Godzik | Everything seems correct aside from the version being picked for the library, which should be 2.12.18 | 10:50:21 |
Tomasz Godzik | This happens only in dependencies though? | 10:50:42 |
rohith_02_ | only with that specific dependency. | 10:51:55 |
Tomasz Godzik | is that a public dependency? | 10:52:33 |
rohith_02_ | it's a private one | 10:58:01 |
rohith_02_ | not developed by me, but I do have access to that. | 10:58:25 |
| dos65 joined the room. | 11:42:29 |
Tomasz Godzik | looks like maybe I can reproduce the issue, will take a look | 13:21:08 |
rohith_02_ | Sure. Thank you! | 14:35:02 |
23 May 2024 |
| azaad1789 joined the room. | 06:53:13 |
rohith_02_ | Download image.png | 08:32:26 |