pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.61k stars 519 forks source link

Crash on ZB startup #161

Closed irulua closed 11 years ago

irulua commented 11 years ago

Paul,

Having a look al lua and ZB.

I linux Mint-14 Mate in a 32bit VirtualBox VM.

In a terminal prompt I get the following when I attempt to start ZB:

iru@VB-M14M ~/SW $ zbstudio iru@VB-M14M ~/SW $ bin/linux/x64/lua: src/editor/commands.lua:614: attempt to index field 'modTime' (a nil value) stack traceback: src/editor/commands.lua:614: in function <src/editor/commands.lua:600> (tail call): ? src/editor/settings.lua:143: in function 'SettingsRestoreFileSession' src/main.lua:412: in main chunk

Uninstalled, reinstalled, same issue. Though I am sure ZB started once before.

Any directions, help, whatever appreciated, Ian.

pkulchenko commented 11 years ago

Ian, thank you for reporting. What version of ZBS are you running? If you can't start it to check the version, can you check src/version.lua?

irulua commented 11 years ago

Paul,

You must be up early in WA. I am in Melbourne.

Lua 5.15 ZBS file is ZeroBraneStudioEduPack-0.37-linux.sh, /src/version.lua = ide.VERSION = = [[0.37]]

After the initial install ZBS came up, I had a look at the user/system config file/s, changed nothing. Created no files, nothing changed.

This morning, no ZBS.

Thanks for the response, Ian. On 31/05/13 10:21, Paul Kulchenko wrote:

Ian, thank you for reporting. What version of ZBS are you running? I you can start it to check the version, can you check |src/version.lua|?

— Reply to this email directly or view it on GitHub https://github.com/pkulchenko/ZeroBraneStudio/issues/161#issuecomment-18716792.

pkulchenko commented 11 years ago

Hi Ian, It's actually evening in WA ;). I think you hit on a condition I haven't accounted for. Basically, you aborted/killed ZBS, which kept a recovery record, but one of the files in the record doesn't exist on disk anymore, so the timestamp comparison fails. I'll be checking in a fix shortly, but meantime you can remove the recovery record to avoid the error and start ZBS. Just remove the init file as described here; if you want to keep your project/folder history, open it and find the line that looks like recovery=... and remove it. Please let me know if this doesn't resolve the issue.

irulua commented 11 years ago

Paul,

It is 8.30PM on Saturday night and perhaps I should get a life........

It looks like my long Telstra line is degrading and the attenuation is getting marginal. Remove the adsl filter (a couple of db?) and things on the Internet work OK. Unfortunately I then have no landline phone.

ZBS looks good, things now work OK.

Onwards into Lua. In a programming sense I come from a background of Algol, Pascal, Erlang, etc. These languages generally do not fit well in the WEB type environment. So I looked around for something which did and which I could get my head around. Java and its kin were just to big and ugly for me. I came across Lua which is different enough to bend my brain(brane) and small enough to yet still fit my brain and still get me into the wonderful world of the "web".

Here I go again.

Regards, Ian. On 31/05/13 12:56, Paul Kulchenko wrote:

Hi Ian, It's actually evening in WA ;). I think you hit on a condition I haven't accounted for. Basically, you aborted/killed ZBS, which kept a recovery record, but one of the files in the record doesn't exist on disk anymore, so the timestamp comparison fails. I'll be checking in a fix shortly, but meantime you can remove the recovery record to avoid the error and start ZBS. Just remove the init file as described here http://studio.zerobrane.com/doc-faq.html#how_do_i_restore_default_configuration_for_recent_files_projects_and_editor_tabs; if you want to keep your project/folder history, open it and find the line that looks like |recovery=...| and remove it. Please let me know if this doesn't resolve the issue.

— Reply to this email directly or view it on GitHub https://github.com/pkulchenko/ZeroBraneStudio/issues/161#issuecomment-18720862.

pkulchenko commented 11 years ago

Hi Ian, thanks for confirming that the fix works. Pascal was one of the first languages I learned (years ago back to TurboPascal days) and I do find Lua in many ways similar to Pascal (in good easy-to-work-with comforting ways), although the availability of coroutines and metamethods make it a more powerful language.