Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Run love scripts from IntelliJ #4

Closed
rickmeister opened this issue Jan 16, 2017 · 2 comments
Closed

Run love scripts from IntelliJ #4

rickmeister opened this issue Jan 16, 2017 · 2 comments

Comments

@rickmeister
Copy link

Not really an issue, but maybe you should point this out to new Idea users.

To be able to run love applications from the IDE you can select "Edit Configurations..." from the "Run"-menu. Click the '+' sign and select "Lua Script"

Edit script name to "main.lua", and uncheck "Use Module SDK". In the text field next to the checkbox enter the path to your love executable (/usr/bin/love on linux, don't know where it's located on lesser OS;es). In the "Interpreter Options" field just enter a single '.'

Now you can run Löve scripts from inside the IDE, and it just makes life so much easier :)

@D0NM
Copy link

D0NM commented Jul 23, 2018

another option:

Program: C:\path_to_your_love_folder\love.exe
Working directory: .
Parameters: type_your_project_working_dir here

@igorr0driguez
Copy link

For anyone wondering how to do it with Intellij in 2022 (on Windows), it's a bit different but it works too.

Make sure you have EmmyLua installed.
After clicking the "+" button, choose Lua Application.
For "Program" you choose your love.exe (you can find it usually in "C:/Program Files/LOVE").
Working directory is your src folder.
For "Entry File" you write "main.lua" (without the quotation marks).
And for "Parameters", as @rickmeister said, you need to put a single dot "." (without the quotation marks).

You should now be able to run love2d programs from your Intellij 2022.

Thanks @rickmeister for your tips.

@rm-code rm-code closed this as completed Feb 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants