Skip to content

Migrating from 1.x

m0rkeulv edited this page Oct 3, 2026 · 1 revision

Version 2.0 changes how Haxe projects are configured. In 1.x, each module had its own Haxe settings in Project Structure. In 2.0, the configuration comes from your build files and is managed in the Haxe tool window. Modules set up with 1.x keep working only after they are converted.

Warning

The conversion is one-way. Commit your project to version control or make a backup before you start.

How to start the conversion

When you open a project that still has 1.x modules, a notification appears: Legacy Haxe modules are no longer supported. It lists the modules to convert.

Start the conversion in one of these ways:

  • Click Convert to V2... in the notification.
  • If you closed the notification, open the Notifications tool window and click Convert to V2... there.
  • In the Project view, right-click the module's folder and choose Convert Legacy Haxe Modules to V2....

Confirm the dialog, and every 1.x module in the project is converted in one go.

What is carried over

1.x setting After the conversion
Module SDK The module keeps its Haxe SDK.
hxml, OpenFL or NME build file Becomes the module's build command, including your extra arguments, and the project's active build file.
OpenFL or NME target Becomes the selected target of that build file.
Flash run configurations Become Haxe Flash Application configurations with the SWF path and Flex SDK filled in.
C++ run configurations Stay HXCPP Application (legacy) configurations, with the executable path filled in.
Haxelib libraries The libraries 1.x added to the module are removed; 2.0 adds its own from the build file.

What is not carried over

  • Builds configured by hand: 1.x could build from compiler settings entered in the module instead of from a build file. There is no build file to carry over in that case; add one in the Haxe tool window.
  • Other run configurations stay, but empty. Create new ones from the Haxe tool window: run the Build & run entry under the build file, and it creates a matching run configuration.

The old settings stay in the module file, unused. They are not restored if you undo; restore your backup instead.

After the conversion

  1. Reopen the project, so every part of the IDE picks up the new module type.
  2. Open the Haxe tool window and check each module: its build files, the active build file, the selected target and the SDK.
  3. Install libraries that show in red: right-click the build file's Libraries group and choose Install All Missing Libraries.
  4. Recreate the run configurations you need with the Build & run entries.

See Core Concepts for how modules, build files and targets fit together in 2.0.

Clone this wiki locally