{"action":"created","issue":{"url":"https://api.github.com/repos/rvirding/lfe/issues/195","repository_url":"https://api.github.com/repos/rvirding/lfe","labels_url":"https://api.github.com/repos/rvirding/lfe/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/rvirding/lfe/issues/195/comments","events_url":"https://api.github.com/repos/rvirding/lfe/issues/195/events","html_url":"https://github.com/rvirding/lfe/issues/195","id":140004406,"number":195,"title":"Bug in version-getting function","user":{"login":"oubiwann","id":894251,"avatar_url":"https://avatars.githubusercontent.com/u/894251?v=3","gravatar_id":"","url":"https://api.github.com/users/oubiwann","html_url":"https://github.com/oubiwann","followers_url":"https://api.github.com/users/oubiwann/followers","following_url":"https://api.github.com/users/oubiwann/following{/other_user}","gists_url":"https://api.github.com/users/oubiwann/gists{/gist_id}","starred_url":"https://api.github.com/users/oubiwann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oubiwann/subscriptions","organizations_url":"https://api.github.com/users/oubiwann/orgs","repos_url":"https://api.github.com/users/oubiwann/repos","events_url":"https://api.github.com/users/oubiwann/events{/privacy}","received_events_url":"https://api.github.com/users/oubiwann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-10T20:48:52Z","updated_at":"2016-03-17T01:49:54Z","closed_at":"2016-03-17T01:49:54Z","body":"The new version-getting function currently only works when LFE is run from the same directory where it is built. If LFE gets installed on the system, the following error occurs:\r\n\r\n```\r\n$ lfe\r\nErlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:2:2] ...\r\n```\r\n```erlang\r\n*** ERROR: Shell process terminated! (^G to start new job) ***\r\n{error_logger,{{2016,3,10},{14,35,39}},\r\n \"Error in process ~p with exit value:~n~p~n\",\r\n [<0.28.0>,\r\n  {{badmatch,{error,enoent}},\r\n  [{lfe_shell,get_lfe_version,0,[{file,\"src/lfe_shell.erl\"},{line,215}]},\r\n   {lfe_shell,get_banner,0,[{file,\"src/lfe_shell.erl\"},{line,206}]},\r\n   {lfe_shell,server,1,[{file,\"src/lfe_shell.erl\"},{line,98}]}]}]}\r\n\r\n=ERROR REPORT==== 10-Mar-2016::08:35:39 ===\r\nError in process <0.28.0> with exit value:\r\n{{badmatch,{error,enoent}},\r\n [{lfe_shell,get_lfe_version,0,[{file,\"src/lfe_shell.erl\"},{line,215}]},\r\n  {lfe_shell,get_banner,0,[{file,\"src/lfe_shell.erl\"},{line,206}]},\r\n  {lfe_shell,server,1,[{file,\"src/lfe_shell.erl\"},{line,98}]}]}\r\n\r\n```\r\n\r\nI've just run into this on a brand-new build on CentOS and I think it is the source of the error I was seeing on Docker builds that I mentioned in  issue #192.\r\n\r\nWhen commenting out the code in ``lfe_shell:get_lfe_version`` and instead returning a simple atom, a rebuild, re-install, and start-up of LFE succeeds. Then, running the function in question from LFE shows the problem (or symptom):\r\n\r\n```lisp\r\n> (code:where_is_file \"lfe.app\")\r\nnon_existing\r\n```\r\n\r\nI was under the mistaken assumption that, since the libs are available to the LFE executable, the ``app(.src)`` file would be too. Currently looking into this."},"comment":{"url":"https://api.github.com/repos/rvirding/lfe/issues/comments/197645784","html_url":"https://github.com/rvirding/lfe/issues/195#issuecomment-197645784","issue_url":"https://api.github.com/repos/rvirding/lfe/issues/195","id":197645784,"user":{"login":"oubiwann","id":894251,"avatar_url":"https://avatars.githubusercontent.com/u/894251?v=3","gravatar_id":"","url":"https://api.github.com/users/oubiwann","html_url":"https://github.com/oubiwann","followers_url":"https://api.github.com/users/oubiwann/followers","following_url":"https://api.github.com/users/oubiwann/following{/other_user}","gists_url":"https://api.github.com/users/oubiwann/gists{/gist_id}","starred_url":"https://api.github.com/users/oubiwann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oubiwann/subscriptions","organizations_url":"https://api.github.com/users/oubiwann/orgs","repos_url":"https://api.github.com/users/oubiwann/repos","events_url":"https://api.github.com/users/oubiwann/events{/privacy}","received_events_url":"https://api.github.com/users/oubiwann/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T01:49:54Z","updated_at":"2016-03-17T01:49:54Z","body":"Done and DONE! LFE v1.0 is out! :heart:  :fireworks: \r\n\r\nPonies and rainbows for everyone!!!\r\n\r\n :horse: :horse: :horse: :rainbow:  :rainbow:  :rainbow: "}}