!SoEcwMwiYQRtGcKNvD:matrix.org

scalameta/scalameta

421 Members
Discord bridge for scalameta/scalameta3 Servers

Load older messages


SenderMessageTime
3 Mar 2024
@_discord_691107588250665000:t2bot.iobillfrasure joined the room.17:44:23
4 Mar 2024
@_discord_873601734520471562:t2bot.iogspitwq joined the room.13:56:16
5 Mar 2024
@_discord_254357069769998338:t2bot.iokubukoz changed their profile picture.13:32:54
@_discord_77574388035100672:t2bot.iozetashift changed their profile picture.16:17:36
6 Mar 2024
@_discord_195758349856407552:t2bot.iodavidf joined the room.14:58:46
7 Mar 2024
@_discord_426148274521636865:t2bot.ioyummy_inhalant joined the room.19:17:25
10 Mar 2024
@_discord_632150227658473473:t2bot.ioolafurpg changed their profile picture.12:14:00
13 Mar 2024
@_discord_196988604478652416:t2bot.io.philluminati joined the room.09:12:06
14 Mar 2024
@_discord_883259506715402260:t2bot.iod.delphine joined the room.18:52:06
@_discord_593528659583828117:t2bot.iom.hughes changed their profile picture.23:35:17
17 Mar 2024
@_discord_1049009512905973911:t2bot.ioukrustacean joined the room.13:08:26
@_discord_632628921942147109:t2bot.io.pityka joined the room.18:19:02
18 Mar 2024
@_discord_847173898528227398:t2bot.iodavid_f_goodenough joined the room.22:24:56
19 Mar 2024
@_discord_585809252883496990:t2bot.iof40a3204 joined the room.09:49:47
@_discord_742412995379855378:t2bot.iokostask3734 joined the room.19:19:36
20 Mar 2024
@_discord_192823728944578560:t2bot.ioshrimphands joined the room.17:10:23
@_discord_438509186624520213:t2bot.iorpiaggio joined the room.19:40:46
@_discord_438509186624520213:t2bot.iorpiaggio changed their display name from raulsan.uy to rpiaggio.19:40:46
@_discord_438509186624520213:t2bot.iorpiaggio 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
@_discord_438509186624520213:t2bot.iorpiaggio 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
@_discord_438509186624520213:t2bot.iorpiaggio I'm with scalafmt 3.8.0, scalafix 0.12.0 19:43:48
@_discord_734849617820254331:t2bot.iovelvetbaldmime do you have the correct runner.dialect=scala3 set? 19:44:19
@_discord_734849617820254331:t2bot.iovelvetbaldmime 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
@_discord_438509186624520213:t2bot.iorpiaggio Yes 19:48:02
@_discord_438509186624520213:t2bot.iorpiaggio As I said, it works fine elsewhere and in that file up to a certain point 19:48:25
@_discord_734849617820254331:t2bot.iovelvetbaldmime 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
@_discord_734849617820254331:t2bot.iovelvetbaldmime though that is not very shareable 19:51:22
@_discord_438509186624520213:t2bot.iorpiaggio 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
@_discord_438509186624520213:t2bot.iorpiaggio 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
@_discord_438509186624520213:t2bot.iorpiaggio The error is reproduced there 19:55:49

Show newer messages


Back to Room ListRoom Version: 9