All Projects → HaxeFoundation → Intellij Haxe

HaxeFoundation / Intellij Haxe

Licence: apache-2.0
Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)

Programming Languages

java
68154 projects - #9 most used programming language
haxe
709 projects

Projects that are alternatives of or similar to Intellij Haxe

uuid-generator-plugin
An IntelliJ Idea plugin to generate UUID (Universally Unique Identifier), ULID (Universally Unique Lexicographically Sortable Identifier) and CUID (Collision Resistant Unique Identifier)
Stars: ✭ 30 (-84.04%)
Mutual labels:  intellij, idea, idea-plugin
Idea Conventional Commit
Context and template-based completion for conventional/semantic commits.
Stars: ✭ 115 (-38.83%)
Mutual labels:  intellij, idea, idea-plugin
Nord Jetbrains
An arctic, north-bluish clean and elegant JetBrains IDE UI and editor color theme.
Stars: ✭ 293 (+55.85%)
Mutual labels:  ide, intellij, idea
intelliroutes
Support for Play Routes in IntelliJ IDEA
Stars: ✭ 21 (-88.83%)
Mutual labels:  intellij, idea, idea-plugin
Devel-Camelcadedb
Perl module for debugging with Perl5 plugin for IntelliJ
Stars: ✭ 23 (-87.77%)
Mutual labels:  debugger, intellij, ide
intellij-ui-test-robot
The library allows you to write and execute UI tests among IntelliJ IDEA. You can test your Plugin.
Stars: ✭ 60 (-68.09%)
Mutual labels:  intellij, ide, idea-plugin
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-55.85%)
Mutual labels:  ide, intellij, idea
Kotlin Koans
kotlin koans examples
Stars: ✭ 116 (-38.3%)
Mutual labels:  intellij, idea
Merge Request Integration
An Intellij IDE plugin which helps you manage Merge Request and do Code Review right in your IDE.
Stars: ✭ 122 (-35.11%)
Mutual labels:  ide, idea-plugin
Awesome Idea
IntelliJ IDEA资源一网打尽
Stars: ✭ 124 (-34.04%)
Mutual labels:  idea, idea-plugin
Chromaterial
ChroMATERIAL is an IntelliJ Platform coloring scheme that expresses the chromatic nature of Material Design within IntelliJ and Android Studio. It is intended to highlight the most import aspects of your code.
Stars: ✭ 143 (-23.94%)
Mutual labels:  intellij, android-studio
Fastdex
🚀 加快 apk 的编译速度 🚀
Stars: ✭ 1,457 (+675%)
Mutual labels:  android-studio, idea-plugin
Seleniumwithcucucumber
In this project we will discuss working Selenium with cucumber
Stars: ✭ 104 (-44.68%)
Mutual labels:  intellij, idea
Restfultoolkit
A Toolkit for RESTful services development.
Stars: ✭ 101 (-46.28%)
Mutual labels:  intellij, idea
Materialtabstemplate
MaterialTabsTemplate is solely created to reduce the burden of writing same boiler plate codes for Tab creation in Android.
Stars: ✭ 92 (-51.06%)
Mutual labels:  android-studio, idea-plugin
Intellij Idea Tutorial
🌻 This is a tutorial of IntelliJ IDEA, you can know how to use IntelliJ IDEA better and better.
Stars: ✭ 1,947 (+935.64%)
Mutual labels:  intellij, idea
Zerobranestudio
Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
Stars: ✭ 2,255 (+1099.47%)
Mutual labels:  ide, debugger
Hybris Integration Intellij Idea Plugin
A plugin for integration of SAP Hybris platform with JetBrains Intellij IDEA
Stars: ✭ 142 (-24.47%)
Mutual labels:  intellij, idea
Komodoedit
Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
Stars: ✭ 1,972 (+948.94%)
Mutual labels:  ide, debugger
R4intellij
An integration of the R programming language into Intellij IDEA
Stars: ✭ 150 (-20.21%)
Mutual labels:  ide, intellij

Haxe plugin for Intellij IDEA and Android Studio

This plugin allows you to develop multi-platform programs using the Haxe language with Intellij IDEA, Android Studio and other IntelliJ IDEA-based IDEs by JetBrains. It requires Intellij IDEA Ultimate or Community Edition, versions 2016.1 through 2020.2, or Android Studio versions 2.2 through 4.0.

Technical Support

Support for this plugin is available through the project's home page: http://intellij-haxe.org, or the github issues list http://github.com/HaxeFoundation/intellij-haxe/issues.

Past Versions Announcement

Very, very few users are continuing to use this plugin with older versions of IDEA. Plugin version 1.3 will be the last to officially support IDE versions prior to 2018.3.5. (If you and/or your business need these or previous versions supported, then contact the project maintainers at the project page (http://intellij-haxe.org) and continuing support can be arranged.)

Install

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.

To install using IDEA (from Intellij plugin repository):

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):

  • On the IDEA welcome screen, select "Configure(dropdown)->Plugins"
  • Click on the "Browse Repositories..." button.
  • Type 'haxe' to see the description for the plugin.
  • Select 'Install' to install it.
  • Allow IDEA to restart and initialize the plugin.

If you already have a project open in IDEA:

  • Open the Settings dialog (File->Settings...)
  • Highlight "Plugins" in the leftmost column
  • Click on the "Browse Repositories..." button.
  • Type 'haxe' to see the description for the plugin.
  • Select 'Install' to install it.
  • Allow IDEA to restart and initialize the plugin.

To manually install the latest or a previous Github release

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-2016.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):

  • On the IDEA welcome screen, select "Configure(dropdown)->Plugins"
  • Click “Install plugin from disk...”
  • Select the “intellij-haxe.jar” file you downloaded
  • Allow IDEA to restart and initialize the plugin.

If you already have a project open IDEA:

  • Open the Settings dialog (File->Settings...)
  • Highlight "Plugins" in the leftmost column
  • Click “Install plugin from disk...”. On 2019.x versions or later, click on the settings (gear) icon to see the "Install from disk..." menu item.
  • Select the intellij-haxe-<version>.jar file you downloaded
  • Allow IDEA to restart and initialize the plugin.

Build

Note that installation as described above installs a fully built version of the plugin (the .jar file). Most users do not have to build the product for themselves. This section is for those who like to dig a little deeper.

This describes the command line build. To build from within 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.

Dependencies

  • Oracle JDK 8 or OpenJDK 8
  • A windows command prompt or bash compatible shell

Build command

Use the command matching your system and replace <IDEA_VERSION> with desired version, ex. 2017.3.4

Windows

gradlew.bat clean build verifyPlugin -PtargetVersion=<IDEA_VERSION>

Mac/Linux

./gradlew clean build verifyPlugin -PtargetVersion=<IDEA_VERSION>

NOTE: You can run the build without tests by substituting build with buildPlugin on the lines above

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 gradle build configuration is set to use a default version when no version is provided(see gradle.properties) when developing in IDEA this version will be used. You may want to change defaultIdeaVersion to the version you are targeting.

ex.

defaultIdeaVersion=2017.3.4

Note that the first time you build the project Gradle will download the requested version of IntelliJ Ultimate and any other other dependencies. This can be quite slow at times and prone to failure. For repeated building and testing, we recommended that you set up your machine as described in the contributing document.

Test

Dependencies

Same as for build.

Test command

Windows

gradlew.bat test -PtargetVersion=<IDEA_VERSION>

Mac/Linux

./gradlew test -PtargetVersion=<IDEA_VERSION>

This will build and run the tests and display the JUnit report.

Use the hxcpp debugger

NOTE: IDEA Community Edition currently will not start an IDE-based debugging session. For that, IDEA Ultimate is required. Command-line debugging is available because that is a feature of the Haxe language itself. See the hxcpp-debugger project for more information.

The hxcpp debugger functionality conforms to the Haxe v3.0 debugger. In order to use this, you must:

  • Install the VERSION 1.1 debugger haxelib from https://github.com/HaxeFoundation/hxcpp-debugger/tree/protocol_v1.1. The hxcpp-debugger that is installed via 'haxelib install' is generally not the latest or best working version. (The Haxe Foundation maintainers do not release regular updates for it). Instead, get the current sources locally: Install git and clone the repository from http://github.com/HaxeFoundation/hxcpp-debugger and install via

    haxelib git hxcpp-debugger <your_local_clone> protocol_v1.1
    

    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.

  • Re-build your project using this newest debugger haxelib.

  • Configure your haxe program to start the debugger when the following command line option is provided:

    -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

Auto Complete For Haxelibs

  1. Navigate to File -> Project Structure -> Modules -> Dependencies
  2. Click the + to Add a new Library of type Haxe.
  3. Select the folder that contains haxelib.json

For example, to enable auto complete for OpenFl 9.0.2, the folder with haxelib.json is located at HaxeInstallPath/haxe/lib/openfl/9,0,2 .

Contribute

See the contributing document.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].