20 Mar 2024 |
rpiaggio | Redacted or Malformed Event | 19:56:30 |
rpiaggio | Download image.png | 19:57:09 |
velvetbaldmime#0 | Ok, so I've minimised it somewhat:
val component =
List(1,2,3)
.map: (props) =>
TableOptions(
getRowId = (row, _, _) =>
row.value match
case Left(HeaderRow(rowId, _)) => rowId
case Right(stepRow) => stepRow.step.rowId,
onColumnSizingChange = dynTable.onColumnSizingChangeHandler
) | 19:58:13 |
velvetbaldmime#0 | it's indeed fascinating - disappears if I remove onColumnSizingChange | 19:58:41 |
rpiaggio | awesome that you could minimize it | 19:59:18 |
velvetbaldmime#0 | You can go ahead and create an issue on scalameta repo | 19:59:35 |
velvetbaldmime#0 | with the minimiser | 19:59:38 |
rpiaggio | 👍 thank you | 19:59:50 |
rpiaggio | the match clause with indentation as a parameter seems to be culprit | 20:01:11 |
rpiaggio | if I put braces there, it works | 20:01:27 |
rpiaggio | https://github.com/scalameta/scalameta/issues/3664 | 20:10:13 |
22 Mar 2024 |
| mkharytonau joined the room. | 12:28:22 |
23 Mar 2024 |
| Artur Opala changed their display name from Artur Opala to arturopala. | 17:17:29 |
26 Mar 2024 |
| z1kkurat changed their profile picture. | 08:04:43 |
| powerful_monkey_59758_71986 joined the room. | 15:25:19 |
| pixelateddog joined the room. | 15:32:51 |
29 Mar 2024 |
| eje4073 joined the room. | 23:49:59 |
30 Mar 2024 |
| kurro#9452 changed their display name from kurro9452 to water_underscore. | 18:03:18 |
1 Apr 2024 |
| carlosedp joined the room. | 20:06:09 |
4 Apr 2024 |
| Ondřej Španěl joined the room. | 07:34:49 |
Ondřej Španěl | Are there some configuration settings which would prevent scalafmt from breaking my lists into single line per item? The list is like:
val all = Set(
pelvis,
upperLeg0, lowerLeg0, feet0,
upperLeg1, lowerLeg1, feet1,
torso,
upperHand0, lowerHand0, palm0,
upperHand1, lowerHand1, palm1,
head
)
I have tried various binPack and unsafeXxxxSite options, but the result was always one entry per line. I would like my groups to stay grouped. See also https://github.com/scalameta/scalafmt/issues/3894
| 07:43:08 |
Tomasz Godzik | I wonder if scalafmt is actually what you want, since it has a lot of complexity and is not really good at cases where you want to have certain code formatted the way you have now. | 13:14:09 |
Tomasz Godzik | probably it's possible to fix that case though 🤔 | 13:15:11 |
quafadas | Coudl this work:
https://scalameta.org/scalafmt/docs/configuration.html#-format-off | 13:55:19 |
quafadas | Then it simply won't tamper with the way you set it out? | 13:55:34 |
5 Apr 2024 |
Ondřej Španěl | Sorry, wrong room. Forwarded to scalafmt. | 05:56:05 |
| oclok_ joined the room. | 09:46:23 |
7 Apr 2024 |
| shaked changed their display name from shaked to shaked9252. | 08:27:51 |
8 Apr 2024 |
| _jasperm changed their profile picture. | 07:33:25 |
10 Apr 2024 |
| thanh.le joined the room. | 01:15:50 |