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
When a module references itself, nothing shows up until you get a notification in vscode that the server has crashed.
Looking at my terminal, I saw the error message FAILED: MyAwesomeModule has a self cycle
Example! Add a file A.res in your codebase, in it put:
leta=10Js.log(a)
Everything typechecks and builds, now change it to
leta=10Js.log(A.a)
The server crashes and you get a popup that says "Wanna start the server", you do it 5 times and then it says it crashed 5 times. It never reports that the error is that there's a cycle, but that error gets reported if you manually run bsb.
Just revisited this. For context: self-cycle error goes to compiler.log, but cycle of size 2 or more the log is empty. Cannot be solved in the editor without a compiler fix.
Activity
cristianoc commentedon Apr 30, 2021
That's intriguing. Example?
cristianoc commentedon May 4, 2021
To be re-opened with an example.
bsansouci commentedon May 5, 2021
Example! Add a file
A.resin your codebase, in it put:Everything typechecks and builds, now change it to
The server crashes and you get a popup that says "Wanna start the server", you do it 5 times and then it says it crashed 5 times. It never reports that the error is that there's a cycle, but that error gets reported if you manually run bsb.
cristianoc commentedon May 5, 2021
Same as this:
#220
Though there's the comment about crashing, too.
cristianoc commentedon May 5, 2021
I suspect it fails when parsing this:
cristianoc commentedon May 5, 2021
++ @chenglou
just getting started
cristianoc commentedon Jul 22, 2021
Can repro the crashing too.
cristianoc commentedon Jan 19, 2022
Just revisited this. For context: self-cycle error goes to
compiler.log, but cycle of size 2 or more the log is empty. Cannot be solved in the editor without a compiler fix.cristianoc commentedon Jan 20, 2022
#344