Page 1 of 1

Text Editors can't find LOVE

Posted: Sun Feb 16, 2020 1:16 pm
by Nerdzmasterz
Hi.

I'm new here. I have installed Atom and ZeroBrane and attempted to run a main.Lua file in each one. Both of them gave me a traceback, claiming that they couldn't find Love 2D, which I installed. That's all I did. As a noob, what am I possibly missing? :huh:

Re: Text Editors can't find LOVE

Posted: Sun Feb 16, 2020 4:58 pm
by paulclinger
@Nerdzmasterz, I posted instructions for Love debugging with ZeroBrane Studio here (http://notebook.kulchenko.com/zerobrane ... -debugging). You need to make sure you select Love2d as the interpreter ("Program | Lua Interpreters | Love2d") and that you have love executable in one of the folders that the IDE knows about (there are several folders it checks, but the exact list is system-dependent) or in PATH. You can also explicitly configure your love executable path using `path.love2d` configuration setting (https://studio.zerobrane.com/doc-genera ... reter-path). If you post the exact error you are getting, we can provide better advice on how to fix this.

Re: Text Editors can't find LOVE

Posted: Sun Feb 16, 2020 9:52 pm
by luarocks
To run love-project you need to open with love the directory (or archive) where main.lua located, but not main.lua itself. For example:

Code: Select all

cd ~/my_awesome_project
/usr/bin/love .

Re: Text Editors can't find LOVE

Posted: Sun Mar 22, 2020 11:26 pm
by Nerdzmasterz
Thank you! Sorry for the late reply. I managed to get Zerobranes to work, though I'm not entirely sure how.