-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MadEdit not responding when open .java file #267
Comments
Yes. It has a bug but is hard to reproduce and fix. I made a patch in 0.4.12 that's why it can recover. The tricky stuff is that the issue would be gone when you load the same file for a second time. It's a bug of syntax highlighting module. I'm not sure when I can fix the issue instead of the patch. If you could reproduce it constantly, it will be helpful. |
Looks the patch worked. Did you want a try? |
Close it with 0.4.13 |
the patch is not valid, the bug can be reproduced with version 0.4.13 |
Is it possible to share the java file you used to reproduce the issue? I used to met the issue by opening HTML file and don not see it for a long time. |
any .java file can reproduce it.
After debugging, i think the problem should be syntax loading:
when loading a syntax file, the code sort the whole dictionary after adding each keyword. more efficient way could be:
|
Good catch! Will refactor the code for syntax highlighting. |
I used the code you suggested. Do you want my build or waiting for next release? I'm waiting for wxWigets 3.1.2 to release 0.4.14 which is mainly to fix the High DPI text blurry issue of Windows 10. |
I will wait for your new release. |
Verified the issue and verified the fix. There was misunderstanding in the communication. I thought the issue you reported is the one I fixed but it is not. Thanks for reporting the issue and the patch. |
Syntax highlight for Java is still a little bit slower than others because of too many keywords. Will try to optimize it to reduce the time you opened two more java files. |
Please provide the following information
Madedit-Mod version (or branch): 0.4.12
platform/architecture: windows7
compiler and compiler version:
please describe what symptom you see, what you would expect to see instead and how to reproduce it.
Open a java source file(from main menu, drag&drop or explorer context menu),
madedit ui hangs and not responsing
after about 15 seconds, app recovers.
The text was updated successfully, but these errors were encountered: