code executes twice

It seems my code executes twice when running in LuaGlider Windows. Even an empty project with just

print(“1”) will print 1, then a slight pause, then 1 again. When I run just the file in Corona Simulator directly, it only shows 1 once. [import]uid: 160288 topic_id: 32787 reply_id: 332787[/import]

I don’t know why this is happening, but it seems to only happen in main.lua and (as far as I can tell) doesn’t affect anything. Are you seeing any problems arising from this? [import]uid: 181948 topic_id: 32787 reply_id: 130409[/import]

Kind of just bothering me, no problems but I don’t understand why it is doing it. On the mac version or Corona Simulator, it only runs once.

What’s odd, it isn’t just at the beginning of code. Like if I put a print statement in another file, I see it print out twice too. It seems to execute the code twice too as far as I can tell.

For example if I do:

local min = math.min
for i=1,1000000 do
local x = math.min( 23, 43, 45, 20 )
end
print(system.getTimer())
Print will print initially the first value (after a few second delay (running the loop)) then a few seconds later it will display it again with a similar value (after running the loop a second time).

My code is not affected by this, but it is confusing as anything and if I was doing something with data I suspect it may break something. [import]uid: 160288 topic_id: 32787 reply_id: 130410[/import]

I don’t know why this is happening, but it seems to only happen in main.lua and (as far as I can tell) doesn’t affect anything. Are you seeing any problems arising from this? [import]uid: 181948 topic_id: 32787 reply_id: 130409[/import]

Kind of just bothering me, no problems but I don’t understand why it is doing it. On the mac version or Corona Simulator, it only runs once.

What’s odd, it isn’t just at the beginning of code. Like if I put a print statement in another file, I see it print out twice too. It seems to execute the code twice too as far as I can tell.

For example if I do:

local min = math.min
for i=1,1000000 do
local x = math.min( 23, 43, 45, 20 )
end
print(system.getTimer())
Print will print initially the first value (after a few second delay (running the loop)) then a few seconds later it will display it again with a similar value (after running the loop a second time).

My code is not affected by this, but it is confusing as anything and if I was doing something with data I suspect it may break something. [import]uid: 160288 topic_id: 32787 reply_id: 130410[/import]

For me it’s just doing it twice in main.lua, and I can’t think of any problems that it’s caused me. I never even noticed this until reading your post. I would try contacting the guys who made it and see what they have to say. [import]uid: 181948 topic_id: 32787 reply_id: 130419[/import]

For me it’s just doing it twice in main.lua, and I can’t think of any problems that it’s caused me. I never even noticed this until reading your post. I would try contacting the guys who made it and see what they have to say. [import]uid: 181948 topic_id: 32787 reply_id: 130419[/import]

It is not limited to main.lua for me, but does seem to be limited to windows. I contacted them as I am already working with them on some other issues. [import]uid: 160288 topic_id: 32787 reply_id: 130420[/import]

It is not limited to main.lua for me, but does seem to be limited to windows. I contacted them as I am already working with them on some other issues. [import]uid: 160288 topic_id: 32787 reply_id: 130420[/import]

Hello All,

Thank you for your reports. We can see this is a pretty widespread issue and we will work on a fix. At the current state the IDE is undergoing some pretty major changes so we cannot issue an incremental patch but rest assured this issue will be fixed by the time the next version (1.8) comes out. Some of the major fixes we are working on in this patch are:

-Fully rewritten and much smarter parser system
-Autocomplete optimization
-Library support
-File Locking issues
-Gatekeeper warnings
-Many more bug fixes

We will keep everyone updated on the status of this and other bugs.

Regards,
M.Y. Developers
[import]uid: 55057 topic_id: 32787 reply_id: 130520[/import]

Hello All,

Thank you for your reports. We can see this is a pretty widespread issue and we will work on a fix. At the current state the IDE is undergoing some pretty major changes so we cannot issue an incremental patch but rest assured this issue will be fixed by the time the next version (1.8) comes out. Some of the major fixes we are working on in this patch are:

-Fully rewritten and much smarter parser system
-Autocomplete optimization
-Library support
-File Locking issues
-Gatekeeper warnings
-Many more bug fixes

We will keep everyone updated on the status of this and other bugs.

Regards,
M.Y. Developers
[import]uid: 55057 topic_id: 32787 reply_id: 130520[/import]