Is it possible to run haxe with neko target directly in Intellij-idea?

373 views
Skip to first unread message

Freewind

unread,
Jan 13, 2013, 1:10:10 AM1/13/13
to haxe...@googlegroups.com
Hi, everyone:

I'm new to haxe, and using intellij-idea+haxe plugin to learn idea on windows.

When I write some code in idea, I have to open the command line and type:

    haxe -main MyMain -neko test.n
    neko test.n

It's not convenient. Is it possible to run it in idea?

I tried to create Run/Debug configuration for "haXe Application", but I'm not sure what to configure, and the "Run" icon is always disabled.

Chris D

unread,
Jan 13, 2013, 4:00:04 AM1/13/13
to haxe...@googlegroups.com
Until they improve the ui look at the "External Tools" in the settings window, you can have whatever custom commands you want and have access to the macros etc.

Freewind

unread,
Jan 13, 2013, 11:30:50 PM1/13/13
to haxe...@googlegroups.com
So there is no way to run it directly in idea for now, except to use "external tools"?

Eric Priou

unread,
Jan 14, 2013, 7:09:29 AM1/14/13
to haxe...@googlegroups.com
Why don't you use the hax project from the module settings.
There, you'll be able to set the haxe SDK and target.

What console are you talking about ?
Is there one in intellij ?

What version of intellij are you using ?
Tri 12 ultimate EAP, which is quite nice for haxe dev.



---
Eric Priou aka erixtekila

Freewind

unread,
Jan 15, 2013, 7:35:09 AM1/15/13
to haxe...@googlegroups.com
I used idea 12 with haxe project. Now I can run the haxe code by one-click, if I use hxml.

I created a hxml file with the content:

# Main
-main nekotest.Main
-neko test.n
-cmd neko test.n

Then click on "Build->Make module", it will compile and run. 

Thanks for everyone!

Jason O'Neil

unread,
Jan 15, 2013, 7:41:28 AM1/15/13
to haxe...@googlegroups.com
I've never used Idea, but if you're using this Hxml now:


-main nekotest.Main
-neko test.n
-cmd neko test.n

You can probably abbreviate it to this:

# Will compile Test in test.hx into test.hx.n and run it with neko
-x test.hx
Reply all
Reply to author
Forward
0 new messages