afrog icon indicating copy to clipboard operation
afrog copied to clipboard

Atom hangs when "}" is deleted when editing .thrift file

Open prashantv opened this issue 11 years ago • 7 comments

I have the language-thrift package (https://atom.io/packages/language-thrift) installed.

When editing a Thrift file, enter the following code:

exception SimpleErr {
  1: string message
}


service SimpleService {
  void Simple() throws (1: SimpleErr simpleErr)
}

If you delete the "}" at the end of the exception block, the whole editor freezes up.

This seems to be an issue with the grammar / syntax parsing.

prashantv avatar Jul 02 '15 05:07 prashantv

If you close all running instances of atom, run it in safe mode with atom --safe and it stops freezing, then it is not a problem of atom/atom you need to open an issue for language-thrift plug-in here.

Also providing information about atom version and operating system always helps :+1: .

kubetz avatar Jul 02 '15 07:07 kubetz

I was able to reproduce this, but not sure where the problem might be. @nathansobo can you take a quick look? Could a "bad" grammar cause such behavior and is there anything we can do about that?

izuzak avatar Jul 02 '15 08:07 izuzak

Taking a look.

nathansobo avatar Jul 02 '15 16:07 nathansobo

The fix for this is nontrivial, but I'm working on it. Could take some time.

nathansobo avatar Jul 02 '15 20:07 nathansobo

Thanks for the detailed report and sorry for the hassle. This will be fixed in 1.0.1, scheduled to go out this week.

nathansobo avatar Jul 07 '15 00:07 nathansobo

Thanks for fixing this so quickly Nathan! Looking forward to the next release

prashantv avatar Jul 07 '15 01:07 prashantv

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

lock[bot] avatar Jan 21 '19 17:01 lock[bot]