1.9 code completion issue?

Hi,

Loving 1.9, but I’m not getting any code completion any more (didn’t realise how much I relied on it!). Checked preferences and “auto popup completion window” it def checked - any ideas?

P.S. The code font looks a little different - slightly taller? I checked old and new and they were both the same font & size but it looks different in 1.9 - is that possible?

Thanks,

Nathan.

Hello Nathan,

Loving 1.9, but I’m not getting any code completion any more

perhaps is this the same issue (you just need to enable a setting)?

http://forums.coronalabs.com/topic/34907-19-auto-code-completion-not-working/

P.S. The code font looks a little different - slightly taller? I checked old and new and they were both the same font & size but it looks different in 1.9 - is that possible?

If you hold down alt-mouse scroll up/down it will change the zoom. This was recently changed from ctrl-zoom. The reasoning was that often ctrl-c and scroll and ctrl-v were used so often that it caused inadvertent zooming in/out. 

Regards,

M.Y. Developers

That seems to have fixed it - thanks.

Another one… I collapse all my functions and only open what I need to work on. Then I quit Glider and come back in - all my functions are expanded again - is there a simple way to prevent this?

Thanks,

Nathan.

Oh, and another (sorry to stack this post with different issues)… I turned on the LUA setting for idle cursor and dropped it to 200ms, but it still takes forever - comes up with a “please wait…” in the popup box for up to 2 seconds before it returns a result - can this be tuned?

Thanks,

Nathan.

Hello Nathan,

[font=‘Lucida Grande’, ‘Lucida Sans Unicode’, Helvetica, Arial, Verdana, sans-serif]Another one… I collapse all my functions and only open what I need to work on. Then I quit Glider and come back in - all my functions are expanded again - is there a simple way to prevent this?[/font]

Sorry but there is no way to persist code folds at this time.

How long is the result list? How long is the file that you are editing? We are going to implement an option soon that will allow you to keep the autocomplete database in memory. This was how the previous versions of Glider worked. This works fine if you have a few files “discovered” by the scanner but will eventually crash the IDE if you have too many open. The tradeoff is that it will be much faster than the current disk-based database version.

Regards,
M.Y. Developers

How long is the result list? It depends what I’m typing - if it’s only of my variable names it might only be 2-3 entries long. My file is 3,600 lines long.

I’ve had to switch back to 1.7 - it’s too painful to use as-is. It seems to progressively get worse - slowing down the whole UI more and more until the point where it’s taking 20 seconds just to pull down a menu.

Nathan.

Hello Nathan,

I think we tracked down the reason of this problem and will have a fix with the next update.

Regards,

M.Y. Developers

Awesome thanks - I’ll give 1.9 a try again when it ships. It would be great if you could post here or email when it ships.

Thanks,

Nathan.

Hello Nathan,

There is an update that should greatly improve performance.

Regards,

M.Y. Developers

Much better in terms of speed, but it’s not bringing through my object variable names.

E.g. myObject.test = 1

In another function type “myObject.” and it comes up with “test” in 1.7, but not 1.9.

Nathan.

Hello Nathan,

Can you please post a more complete example? Custom variables should show up.

Regards,

M.Y. Developers

OK I jumped back into 1.9 again today.

Here’s an example

myTable = {}

myTable.variable1 = “v1Content”

myFunc(myTable)

function myFunc(aTable)

    aTable.      — I would expect this to pop up with “variable1” as an option

end

Also… there’s definitely something different about the font for the code display in 1.9 - I’m having trouble getting used to it - can I switch back to the old font/style 1.9?

Speed is still a real problem. It gets behind with my typing, and scrolling pauses a lot too. Unusable at the moment…

Hello Nathan,

Thanks for the code sample. Do you get the desired behavior in 1.7? 

We will work on improving the speed, are you running a mac or a pc?

Regards,

M.Y. Developers

I’m on a Macbook PRO (2.4GHz i5, 4GB).

Tested it again today and I could get it to work on both 1.7 and 1.9 - weird. When I freshly launch 1.9 it’s really good, and progressively gets slower, to the point where the code completion box either takes forever, or comes back with no results when it should have some (perhaps some sort of timeout?).

Nathan.

Hello Nathan,

Thanks for the details. We are working on getting this issue sorted out, it seems like a memory leak. The typing lag will also be fixed in  version 1.9.1. 

Regards,

M.Y. Developers

Thanks guys - great that you are so responsive - it’s a great product.

Nathan.

Hello Nathan,

Loving 1.9, but I’m not getting any code completion any more

perhaps is this the same issue (you just need to enable a setting)?

http://forums.coronalabs.com/topic/34907-19-auto-code-completion-not-working/

P.S. The code font looks a little different - slightly taller? I checked old and new and they were both the same font & size but it looks different in 1.9 - is that possible?

If you hold down alt-mouse scroll up/down it will change the zoom. This was recently changed from ctrl-zoom. The reasoning was that often ctrl-c and scroll and ctrl-v were used so often that it caused inadvertent zooming in/out. 

Regards,

M.Y. Developers

That seems to have fixed it - thanks.

Another one… I collapse all my functions and only open what I need to work on. Then I quit Glider and come back in - all my functions are expanded again - is there a simple way to prevent this?

Thanks,

Nathan.

Oh, and another (sorry to stack this post with different issues)… I turned on the LUA setting for idle cursor and dropped it to 200ms, but it still takes forever - comes up with a “please wait…” in the popup box for up to 2 seconds before it returns a result - can this be tuned?

Thanks,

Nathan.