|slow code parse and auto-completion for "self" [message #1741231]
||Wed, 24 August 2016 03:37
| bingcong ni
Registered: December 2014
First of all, I have to say LDT is my favorite editor, and the auto completion feature is the best among editors |
1. I find the code analyzer is a little slow, with "user assistance for global" enabled, whenever I open eclipse and hold "Ctrl" on some lua code, the whole Eclipse stuck for about a minute.
And this happens continiously when typing(especially when Ctrl+C), stuck for a minute. I guess the parser parse the whole project again and again...
I managed to solve this issue by maintaining a cache in memory in javamodelsbuilder.lua. Buy my solution takes almost 1.5GB extra memory..
2. To make "self." auto completion work, I have to add
-- @function [parent=#type] name
-- @param self
before every function.
This is not quite convenient, I modified some code in internalmodelbuilder.mlua about handling the "self" parameter, to use a internal type as the module name.
It works but it's an ugly solution....
[Updated on: Wed, 24 August 2016 03:54]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01878 seconds