Debugger freezes when you type 'G' with completion on
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- devtools
Research direction
Reproduce the freeze with flixel tpl -n test, lime test neko -debug, and typing g in the debugger. Start at line 147 of flixel/system/debug/completion/CompletionHandler.hx, where ConsoleUtil.runCommand(command) is called, and trace the eager FlxG completion. Done means suggestions appear promptly and the program no longer freezes.
Written by the indexing model from the issue text.
Description
- Haxe version: 3.4.7
- Flixel version: 4.6.1
- OpenFL version: 8.9.0
- Lime version: 7.3.0
- Affected targets:
all? (tested on neko + html5)
Code snippet reproducing the issue:
flixel tpl -n test
cd test
lime test neko -debug
Then open the debugger and type 'g'.
Observed behavior:
Entire program freezes
Expected behavior:
Debugger should display a list of suggestions in a timely manner and also program should not freeze
I believe the cause of the bug is the following line (L147) in flixel/system/debug/completion/CompletionHandler.hx:
var output = ConsoleUtil.runCommand(command);
When typing 'G', the first autocompletion suggestion is FlxG, which is executed eagerly and takes a ridiculous amount of time to complete.
I think the most obvious way to fix this is to disable the eager command previews (though those are cool). It seems like it would be good to limit the execution time within hscript, if that's at all possible.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HaxeFlixel/flixel
-
Camera Improvement Performance/Memory
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
HaxeFlixel/flixel#3599 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HaxeFlixel/flixel#3584 ·
-
Replace Code Climate OpenCI Github
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
HaxeFlixel/flixel#3456 · 1 comment ·
-
Structure
Difficulty 3/5 1-2 days Newbie friendliness 68/100
HaxeFlixel/flixel#3658 · 2 comments ·
-
Breaking Change Structure
Difficulty 4/5 3-5 days Newbie friendliness 48/100
HaxeFlixel/flixel#3651 · 2 comments ·
All issues in HaxeFlixel/flixel
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bancolombia/sentinel#20 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
alunduil/woodland-generators#669 ·
-
area: tooling
Difficulty 2/5 1-3 hours Newbie friendliness 86/100