language-javascript-jsx icon indicating copy to clipboard operation
language-javascript-jsx copied to clipboard

Atom locks up on certain key sequence

Open dijs opened this issue 10 years ago • 2 comments

When writing a new react component method in ES6 class syntax, I came across this nasty bug.

Here is some context:

export default class BlahBlah extends Component {
  method() {
    return ()
  }
}

With the above code, all is fine.

The bug fires when I type <, then a d inside the parenthesis after the return. (Creating a DIV tag)

The atom editor completely locks up and I am forced to close the application...

Any ideas?

dijs avatar Nov 05 '15 14:11 dijs

Dang. I'll check it out and see if I can fix that. Thanks for the report! You may want to try the Babel language package for Atom just to unblock you at least. I'm not sure when I'll be able to push a fix. On Thu, Nov 5, 2015 at 9:29 AM Richard van der Dys [email protected] wrote:

When writing a new react component method in ES6 class syntax, I came across this nasty bug.

Here is some context:

export default class BlahBlah extends Component { method() { return () } }

With the above code, all is fine.

The bug fires when I type <, then a d inside the parenthesis after the return. (Creating a DIV tag)

The atom editor completely locks up and I am forced to close the application...

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/subtleGradient/language-javascript-jsx/issues/18.

subtleGradient avatar Nov 06 '15 05:11 subtleGradient

Thanks, no rush.

dijs avatar Nov 06 '15 21:11 dijs