You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+5-7
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,10 @@ They should be synced in from the `bsb` build. Don't take them from other places
11
11
The build output is streamed into `lib/bs/.compiler.log`. Here are its various states, numbered here:
12
12
13
13
1. Doesn't exist: artifacts not built yet, or cleaned away.
14
-
2. Present but empty: currently building, no error yet.
15
-
3. Present, non-empty, without a final line `# Done`: still building.
16
-
4. Present, with the final line `# Done`: finished building.
14
+
2. Present, without a final line `#Done`: still building.
15
+
3. Present, with the final line `#Done`: finished building.
17
16
18
-
Barring FS errors, there should be no other state to `.compiler.log`.
17
+
Barring FS errors, there should be no other state to `.compiler.log`. Among others, this means the file is never present but empty.
19
18
20
19
### State 1
21
20
@@ -25,9 +24,8 @@ Artifacts cleaning through `bsb -clean` removes `.compiler.log` and turns into s
25
24
26
25
After saving a file and running the build, the results stream into the log file. Unfortunately, UX-wise, in the editor, this might look like the diagnostics are suddenly gone then coming back in file by file. This looks bad. To remediate:
27
26
28
-
- If the log file is in state 2 (see state numbers above), don't wipe the existing diagnostics yet.
29
-
- If it's in state 3, update those particular files' diagnostics.
30
-
- If in state 4, finish by clean up the rest of the old diagnostics. This means there's a bit of bookeeping needed here. Make sure you get it right. It's possible for a build to be interrupted (and therefore state 4 never reached) and restarted.
27
+
- If it's in state 2, update those particular files' diagnostics but don't wipe the files' diagnostics yet.
28
+
- If in state 3, finish by clean up the rest of the old diagnostics. This means there's a bit of bookeeping needed here. Make sure you get it right. It's possible for a build to be interrupted (and therefore state 4 never reached) and restarted.
31
29
32
30
Even this fix isn't great. Ideally, the editor's diagnostics can be greyed out while we're updating them...
0 commit comments