Skip to content

Infinite loop in reason-mode-indent-line #51

Description

@wyn

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions