When writing bs-mocha tests, reason-mode enters an infinite loop trying to determine the indentation level of the first 'describe'. function you write. A work-around seems to be that this does not happen if you put a let binding prior to the first describe function.
open BsMocha;
open Mocha;
// work around - uncomment me
// let _ = ();
describe("stuff", () => { // emacs hangs here unless let binding above is uncommented
it("does things", () => {
Assert.equal(1, 2) // should fail
})
});
To unhang emacs after this happens I send SIGUSR2 to the emacs process.
When writing bs-mocha tests, reason-mode enters an infinite loop trying to determine the indentation level of the first 'describe'. function you write. A work-around seems to be that this does not happen if you put a let binding prior to the first describe function.
To unhang emacs after this happens I send SIGUSR2 to the emacs process.