Skip to content

Commit 2084121

Browse files
committed
Spec of .compiler.log
1 parent 2a9c1dd commit 2084121

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ The build output is streamed into `lib/bs/.compiler.log`. Here are its various s
6565

6666
Barring FS errors, there should be no other state to `.compiler.log`. Among others, this means the file is never present but empty.
6767

68+
The compiler log contains exactly the same things you'd see in a regular terminal `bsb` guild, except:
69+
70+
- The errors are indented 2 spaces
71+
- The extra `#Start` and `#Done` (which aren't indented).
72+
6873
### State 1
6974

7075
Artifacts cleaning through `bsb -clean` removes `.compiler.log` and turns into state 1. If that's the case, remove the diagnostics in the editor too. One could argue that they should be kept, but that's misleading UX-wise, and harder to implement correctly.
@@ -84,6 +89,8 @@ Keep in mind that you might be tracking multiple `.compiler.log`s. You should do
8489

8590
To check whether the artifacts are stale, do **not** check `.bsb.lock` at the project root. This is unreliable, since it's possible that `bsb` wasn't running in watcher mode. We also don't want to encourage overuse of the watcher mode, though it seems increasingly common.
8691

92+
We currently do that; we wish we aren't.
93+
8794
<!-- Instead, do `bsb.exe -- -n` -->
8895

8996
### Files from Other Projects

0 commit comments

Comments
 (0)