| Number of watchers on Github | 116 |
| Number of open issues | 0 |
| Main language | Java |
| Average time to merge a PR | about 2 months |
| Open pull requests | 0+ |
| Closed pull requests | 16+ |
| Last commit | over 3 years ago |
| Repo Created | about 6 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 28.5 MB |
| Organization / Author | jetbrains |
| Contributors | 28 |
| Page Updated | 2018-03-20 |
| Do you use intellij-haxe? Leave a review! | |
| View intellij-haxe activity | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
This plugin allows you to develop Haxe programs with Intellij IDEA. It requires Intellij IDEA Ultimate or Community Edition, versions 14 or 15.
JetBrains' official plugin installation documentation is at https://www.jetbrains.com/idea/plugins/. The Haxe plugin page is https://plugins.jetbrains.com/plugin/6873?pr=idea.
Install and start IDEA. It is found at https://www.jetbrains.com/idea
If you do not have a project open in IDEA (and after first-time setup):
Configure(dropdown)->Plugins
Browse Repositories...button.
If you already have a project open in IDEA:
Pluginsin the leftmost column
Browse Repositories...button.
Download the intellij-haxe.jar file from the release you want from Github releases.
More recent releases have begun to be named intellij-haxe-<release>.jar, where <release> is the version of Idea for which the Jar is built. (e.g. intellij-haxe-14.1.1.jar)
Make sure that you pick the proper one for your release. A message should pop up and warn you if a release is incompatible.
If you do not yet have a project open in IDEA (and after first-time setup):
Configure(dropdown)->Plugins
If you already have a project open IDEA:
Pluginsin the leftmost column
This describes the command line build on a Linux platform. To build from Intellij IDEA itself, see the contributing document to setup your development environment. Much more detail is provided there for command line build options as well.
make
This will generate a intelllij-haxe-<release>.jar file at the root of the project that you can then install from disk
(see Install the latest or a previous Github release). Note that the default make will build the plugin for
Idea 13.1.6. To override the default, set the IDEA_VERSION environment variable prior to executing make.
IDEA_VERSION=14.1.1 make
Note that building via make will download the requested version of IntelliJ Ultimate (to a temporary directory) every time a build is started. This can be quite slow at times. For repeated building and testing, we recommended that you set up your machine as described in the contributing document.
Same as for build.
make test
This will build and run the tests and display the JUnit report. Again, you can override the Idea version being tested against by overriding IDEA_VERSION.
IDEA_VERSION=14.1.1 make test
The hxcpp debugger functionality has been rewritten to conform to the Haxe v3.0 debugger. In order to use this, you must:
haxelib git <your_local_clone>. Then, you'll have the version
that matches the plugin. Whenever you need to update the debugger to
the latest sources, do a 'git pull' and then rebuild your app. -start_debugger
If you expect to do remote debugging, you'll also have to support:
-debugger_host=[host]:[port]
Most likely you'll just want to add the following in your main() when
-start_debugger is set:
new debugger.HaxeRemote(true, host, port);
Generally speaking, the build/debug configuration (Run->Edit Configurations) is set up to use port 6972, so you can probably cheat and use:
new debugger.HaxeRemote(true, "localhost", 6972);
However, the line has to match your debug settings. Fortunately, they are
passed to your program on the command line. Notice the
-start_debugger -debugger_host=localhost:6972
passed to haxelib:
C:/HaxeToolkit/haxe/haxelib.exe run lime run C:/temp/issue349/openfl_cpp_debug/openfl_cpp_debug/project.xml
windows -verbose -Ddebug -debug -args -start_debugger -debugger_host=localhost:6972
Your program should now:
1) Look for the '-start_debugger' parameter before doing anything. It won't
be there if the program is being started via the Run
command from IDEA.
2) Parse the '-debugger_host=' parameter. If it exists,
then a remote controller (e.g. IDEA) will be trying to connect on that port.
If it doesn't exist, then the user (you) probably want to start the command
line debugger:
new debugger.Local(true);
Here's a snippet you can use: (Thanks to @isBatak)
#if (debug && cpp)
var startDebugger:Bool = false;
var debuggerHost:String = "";
var argStartDebugger:String = "-start_debugger";
var pDebuggerHost:EReg = ~/-debugger_host=(.+)/;
for (arg in Sys.args()) {
if(arg == argStartDebugger){
startDebugger = true;
}
else if(pDebuggerHost.match(arg)){
debuggerHost = pDebuggerHost.matched(1);
}
}
if(startDebugger){
if(debuggerHost != "") {
var args:Array<String> = debuggerHost.split(":");
new debugger.HaxeRemote(true, args[0], Std.parseInt(args[1]));
}
else {
new debugger.Local(true);
}
}
#end
See the contributing document.