{"action":"created","issue":{"url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/539","labels_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/539/comments","events_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/539/events","html_url":"https://github.com/pkulchenko/ZeroBraneStudio/issues/539","id":110845630,"number":539,"title":"Code hangs in IDE but not in standalone Lua 5.3","user":{"login":"raingloom","id":8085052,"avatar_url":"https://avatars.githubusercontent.com/u/8085052?v=3","gravatar_id":"","url":"https://api.github.com/users/raingloom","html_url":"https://github.com/raingloom","followers_url":"https://api.github.com/users/raingloom/followers","following_url":"https://api.github.com/users/raingloom/following{/other_user}","gists_url":"https://api.github.com/users/raingloom/gists{/gist_id}","starred_url":"https://api.github.com/users/raingloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raingloom/subscriptions","organizations_url":"https://api.github.com/users/raingloom/orgs","repos_url":"https://api.github.com/users/raingloom/repos","events_url":"https://api.github.com/users/raingloom/events{/privacy}","received_events_url":"https://api.github.com/users/raingloom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pkulchenko","id":77071,"avatar_url":"https://avatars.githubusercontent.com/u/77071?v=3","gravatar_id":"","url":"https://api.github.com/users/pkulchenko","html_url":"https://github.com/pkulchenko","followers_url":"https://api.github.com/users/pkulchenko/followers","following_url":"https://api.github.com/users/pkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/pkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/pkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkulchenko/subscriptions","organizations_url":"https://api.github.com/users/pkulchenko/orgs","repos_url":"https://api.github.com/users/pkulchenko/repos","events_url":"https://api.github.com/users/pkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/pkulchenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-11T09:39:12Z","updated_at":"2015-10-12T03:29:45Z","closed_at":null,"body":"I'm testing a pre-processor I wrote with the following code:\r\n```lua\r\nlocal file = package.searchpath ( 'offline.test', package.path )\r\nprint ( file )\r\nfile = io.open ( file )\r\nprint ( file )\r\nfile = file:read '*a', file:close ()\r\nprint ( file )\r\nfile = require'raincoat.Code.PreProcessor'.preProcess ( file )\r\nprint ( file )\r\nprint ( load ( file ) )\r\n```\r\nThis is so far the only minimal test case I found, even directly loading the processed code works.\r\nIf the last line is commented out or changed to `load ( file )`, it works as expected, but if it is left as is, it hangs. Always reproducible with both F6 run and F5(debug) run.\r\n\r\nSetup: Lua 5.3 from Arch packages (64 bit)\r\nZBStudio's system config points lua53 to '/usr/bin/lua'\r\npreprocessor in question is: https://github.com/raingloom/Raincoat/blob/master/Code/PreProcessor.lua\r\n'test.lua' is under './offline/test.lua'"},"comment":{"url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/comments/147282250","html_url":"https://github.com/pkulchenko/ZeroBraneStudio/issues/539#issuecomment-147282250","issue_url":"https://api.github.com/repos/pkulchenko/ZeroBraneStudio/issues/539","id":147282250,"user":{"login":"pkulchenko","id":77071,"avatar_url":"https://avatars.githubusercontent.com/u/77071?v=3","gravatar_id":"","url":"https://api.github.com/users/pkulchenko","html_url":"https://github.com/pkulchenko","followers_url":"https://api.github.com/users/pkulchenko/followers","following_url":"https://api.github.com/users/pkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/pkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/pkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkulchenko/subscriptions","organizations_url":"https://api.github.com/users/pkulchenko/orgs","repos_url":"https://api.github.com/users/pkulchenko/repos","events_url":"https://api.github.com/users/pkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/pkulchenko/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T03:29:44Z","updated_at":"2015-10-12T03:29:44Z","body":"@raingloom, thank you for the report; I'll try to reproduce on my Arch install. Few questions:\r\n\r\n(1) does it also happen using Lua 5.3 shipped with ZBS?\r\n(2) what's the content of `test.lua` file?\r\n(3) what if you hardcode the content of the file in the third to last line (like `file = [[whatever content preProcess generated]]`) and keep only the last three lines? Do you still get the same issue?\r\n"}}