2021-04-07 08:19:56 UTC - Keith Null: A simple and stupid question: how should 
I apply scalafmt to OpenWhisk's codebase correctly in VSCode?  I've tried to 
search in Issues and Google, but just got no solution yet :(

I've installed metals extension for VSCode, which includes scalafmt. But it 
keeps complaining about OpenWhisk's missing of scalafmt version in 
`.scalafmt.conf` file: `missing setting 'version'. To fix this problem, add the 
following line to .scalafmt.conf: 'version=2.7.4'.`. However, if I add this 
line, it works but breaks the code format (that's to say, it formats code in a 
different style from the existing one).

Sorry again for such a trivial question again and thanks in advance~
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1617783596112200
----
2021-04-07 08:25:32 UTC - Keith Null: Aha, forgive me. I've tried out the 
correct (or just working?) version: it should be set to `2.0.0` to keep 
consistent with Jetbrains' bundled scalafmt. :sweat_smile:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1617783932113600
----

Reply via email to