3 Mar 2024 |
| billfrasure joined the room. | 17:44:23 |
4 Mar 2024 |
| gspitwq joined the room. | 13:56:16 |
5 Mar 2024 |
| kubukoz changed their profile picture. | 13:32:54 |
| zetashift changed their profile picture. | 16:17:36 |
6 Mar 2024 |
| davidf joined the room. | 14:58:46 |
7 Mar 2024 |
| yummy_inhalant joined the room. | 19:17:25 |
10 Mar 2024 |
| olafurpg changed their profile picture. | 12:14:00 |
13 Mar 2024 |
| .philluminati joined the room. | 09:12:06 |
14 Mar 2024 |
| d.delphine joined the room. | 18:52:06 |
| m.hughes changed their profile picture. | 23:35:17 |
17 Mar 2024 |
| ukrustacean joined the room. | 13:08:26 |
| .pityka joined the room. | 18:19:02 |
18 Mar 2024 |
| david_f_goodenough joined the room. | 22:24:56 |
19 Mar 2024 |
| f40a3204 joined the room. | 09:49:47 |
| kostask3734 joined the room. | 19:19:36 |
20 Mar 2024 |
| shrimphands joined the room. | 17:10:23 |
| rpiaggio joined the room. | 19:40:46 |
| rpiaggio changed their display name from raulsan.uy to rpiaggio. | 19:40:46 |
rpiaggio | Hi! I have a piece of code that's compiling in Scala 3.4.0 but fails parsing in both scalafmt and scalacheck, so I'm guessing this is the right channel. It's a call to a method using the new significant indentation syntax, i.e.:
obj.method: (par1, par2, ..., parN) =>
... | 19:40:46 |
rpiaggio | Is this a known issue? Should I open a GH issue? It's a bit strange since it works in other files and it works in that same file up to a certain point. The error is ; expected but => found | 19:41:53 |
rpiaggio | I'm with scalafmt 3.8.0, scalafix 0.12.0 | 19:43:48 |
velvetbaldmime | do you have the correct runner.dialect=scala3 set? | 19:44:19 |
velvetbaldmime | I.e. I can see
@main def hello =
List((1, 2, 3), (4, 5, 6)).map: (k, v, a) =>
println(v)
parsing fine with scalafmt 3.8.0 and this config:
version = "3.8.0"
runner.dialect = scala3 | 19:46:00 |
rpiaggio | Yes | 19:48:02 |
rpiaggio | As I said, it works fine elsewhere and in that file up to a certain point | 19:48:25 |
velvetbaldmime | you can also try pasting the file contents into https://astexplorer.net/ and selecting Scala 3 in the "scalameta" menu - and seeing if it parses | 19:51:15 |
velvetbaldmime | though that is not very shareable | 19:51:22 |
rpiaggio | The offending line is: https://github.com/gemini-hlsw/observe/blob/main/modules/web/client/src/main/scala/observe/ui/components/sequence/SequenceTable.scala#L177 | 19:52:00 |
rpiaggio | if I switch that line to braces style, then the error happens further down in the code. But never before, where indentation is also used | 19:52:30 |
rpiaggio | The error is reproduced there | 19:55:49 |