Skip to content

Troubleshooting and FAQ

m0rkeulv edited this page Oct 25, 2026 · 3 revisions

This page collects the problems users run into most often, with the usual cause and what to do. Each entry links to the page that explains the topic in full. Messages in bold are shown exactly as the IDE shows them; ... stands for a part that depends on your project.

Before you report a problem

  1. Check that you run version 2.0 or newer of the plugin (Settings | Plugins, Installed tab). This wiki does not cover 1.x.
  2. Click Reload Haxe Project in the toolbar of the Haxe tool window. Many problems with libraries and build files go away after a reload.
  3. Look at the IDE log: Help | Show Log in Explorer on Windows, Help | Show Log in Finder on macOS or Help | Show Log in File Manager on Linux. Help | Collect Logs and Diagnostic Data packs the logs into a zip file you can attach to a report.

To report a bug, open an issue on GitHub. Include the plugin version, the IDE version, your Haxe version and, if you can, a small project that shows the problem.

Setup and SDK

What you see Why What to do
The editor banner No Haxe SDK is configured for this module - pick one here or in the Haxe tool window under Environment The module has no Haxe SDK. Click Setup SDK in the banner and pick or add one. The Environment it mentions is the module's IDE environment node. See Your First Project.
Haxe SDK has no valid root. Set up or change SDK. The module's SDK has no Haxe standard library: it is not a Haxe SDK, or the std folder was not found. Check that the module uses a Haxe SDK. If it does, remove the SDK and add it again, or set the HAXE_STD_PATH environment variable. See Installation.
Haxe SDK has no valid root: no folder in HAXE_STD_PATH (...) contains the standard library HAXE_STD_PATH is set, but none of the folders it lists exists or holds the standard library. The plugin then uses no other folder, as the compiler does. Correct or unset HAXE_STD_PATH, restart the IDE, and add the SDK again. See Installation.
The SDK row in the Haxe tool window shows Project default (none) No project default SDK is set, for example in a project you opened from disk. Set Haxe SDK: under Settings | Build, Execution, Deployment | Build Tools | Haxe, or pick an SDK for the module. See Your First Project.
The SDK row is shown in red The project names an SDK that is not registered on this machine, for example in a shared .idea folder. Register an SDK with the same name, or pick another one. See Core Concepts.
haxelib does not start You installed Haxe from a .zip or .tar.gz archive, which does not include Neko. Install Neko. See Installation.

Projects and build files

What you see Why What to do
A build file is missing from the Haxe tool window The plugin looks for build files only in the top folder of each module and of the project. Add it with Add Build File… in the tool window, or right-click it in the Project view and choose Add as Haxe Build File. See Build Files.
A project.xml or .lime file is not recognized The plugin recognizes a Lime or OpenFL file by its <project> element with at least one <haxelib>, <source> or <classpath> element. Add one of these elements. See Build Files.
#if branches follow another build than the one you work on Several build files contain the file, and the plugin chose another one. The status bar's Context: widget names it. Click the widget and pick the build file. See Resolve Context.
Every #if branch looks inactive, and the status bar shows no Context: widget No build file contains the file, and its module has neither the active build file nor a Build command. Add the file's folder to a build file's class paths, or set an active build file. See Resolve Context.
#if mylib is inactive although the build file has -lib mylib Library defines appear once the libraries have been resolved. That happens each time a trusted project opens; an untrusted project waits until you trust it. Wait for Syncing Haxe libraries… to finish, or trust the project. If the define is still missing, click Reload Haxe Project. See Conditional Compilation.
#if nodejs is inactive although the build uses hxnodejs The IDE reads the -D lines of a library's extraParams.hxml, but a define set by a --macro there, as hxnodejs sets nodejs, is known only to the compiler. Test for the library's own define, such as #if hxnodejs, or add the define under the build file's IDE Overrides. See Conditional Compilation.
A Lime or OpenFL project shows every library, ignoring if and unless, or an HXP project shows no defines The build file has not been evaluated yet: the evaluation is still running, it failed, or the project is not trusted. A failed evaluation marks the build file row (build tool failed); its tooltip shows the tool's message. Fix what the message names, trust the project and click Reload Haxe Project. See Build Files.
Many features are off and the notification Haxe: Project Is Not Trusted appears You opened the project in safe mode. Click Trust Project… in the notification. See Your First Project.

Libraries

What you see Why What to do
External Libraries is out of date The list is resolved again only on certain events. Running haxelib in a terminal does not refresh it. Click Reload Haxe Project. See Libraries and Haxelib.
Libraries are shown in red with (missing) or (version not installed) The library, or the version the build file pins, is not installed. Right-click the build file's Libraries group and choose Install All Missing Libraries. See Libraries and Haxelib.
A library you installed from the IDE is still missing or unresolved Haxelib executable: under Build Tools | Haxe points to a haxelib that uses another library repository. Clear that field, or make both use the same repository. See Libraries and Haxelib.

Code insight

What you see Why What to do
No compiler diagnostics Compiler diagnostics are off by default, need Haxe 4.3.5 or later or Haxe 3.4.7, and need the compilation server. While the file has a syntax error, the plugin sends no request. See Diagnostics and Inspections and Compilation Server.
The Compilation server row shows a red (compiler requests failing) The compiler cannot answer for this module, often because the build itself does not compile. Hover over the row or click the red text to read the error. See Compilation Server.
A Lime or OpenFL project still uses old settings after you edited a library's include.xml The plugin watches only the build files inside the project and keeps its last reading of the project. Click Reload Haxe Project, or Purge Caches in the tool window toolbar. See Build Files.
Macro-generated members are reported as unresolved, or completion offers none The compiler-backed IDE features are off by default. Select Use compiler for IDE features (beta) in Settings | Build, Execution, Deployment | Compiler | Haxe Compiler. See Compilation Server.
Macro-generated members are out of date after you edited a file a macro reads The plugin does not notice changes to files that macros read. Use Restart Compilation Server, or Restart Display Process while the editor uses a display process. See Compilation Server.
The type hints disappeared With Type inlays under Use compiler for IDE features (beta), only the compiler's types are shown: none until it answers, and none while the compilation server is off for the module. See Editor Extras.
A class declared inside an inactive #if branch is not found Declarations in inactive branches are not indexed. Make that branch active, for example by selecting another target. See Conditional Compilation.
Library classes are unresolved in a module made with Add Module from Folder, and the editor's top-right corner shows the name of another module Before the folder became a module, its build file was added to the surrounding module, which then marked the folder's src as one of its own source folders. The files now belong to both modules, and the editor analyzes them as part of the surrounding one, which does not have the folder's libraries. To switch right away, click the module name in the editor's top-right corner and pick the new module. To fix it for good, open File | Project Structure | Modules, select the surrounding module and remove the folder's source folders, and any of its excluded folders, on the Sources tab. Then remove the build file from that module's Build files in the Haxe tool window. See Core Concepts.
Reformatting ignores your code style settings An hxformat.json applies to the file and takes precedence; the status bar shows hxformat. Edit the hxformat.json, or turn the integration off. See Formatting and Code Style.

Building and running

What you see Why What to do
Build | Build Project does not run Haxe The module has no build command and no default build file (several build files, none active), or it is set to skip. Right-click an action such as Build under the build file and choose Set as Build Command, or make one of its build files the active one. See Building and Running.
A build file has no Build & run entry The plugin does not know how to launch the output of that target. Use the build file's own actions, or create a run configuration yourself. See Building and Running.
Compile skipped: the project is not trusted The project is open in safe mode. Trust the project. See Your First Project.
An action shows a Run before step as (missing) The action it ran first was removed, or its build file is no longer in the project. Edit the action and remove or replace the step. See Building and Running.
A custom action with |, > or && fails Custom actions run the command directly, not through a shell. Wrap the command, for example sh -c "..." or cmd /c .... See Building and Running.
A Flash or AIR app fails at start with VerifyError #1053 after a rebuild The Haxe compilation server produces a broken SWF when the same build is compiled again (a Haxe bug since 4.1). Use Restart Compilation Server and build again, or turn the compilation server off for the module. See Compilation Server.

Debugging

What you see Why What to do
A breakpoint is shown as invalid The program was built from older sources, or the compiler optimized the line's code away, for example a switch on a known value. Rebuild if the code changed. Otherwise put the breakpoint inside the code that runs, or add @:analyzer(ignore) to the function while you debug. See Debugging Overview.
A breakpoint never stops, and the console's [debug] line says outside this build's classpaths, not armed The file is not part of the build the configuration launches. Use the configuration and build file that include the file. See Debugging Overview.
HashLink executable not found. ... The plugin finds hl through the HashLink executable: field under Build Tools | Haxe, the Haxe SDK's HashLink executable: field, the HASHLINK_BIN, HASHLINK or HASHLINKPATH environment variables, or the PATH. A path set under Build Tools | Haxe must exist, because nothing else is tried then. Set or correct one of these. See Debugging HashLink.
HashLink on Linux cannot attach to the program The distribution only lets a process debug processes it started itself. Run sudo sysctl kernel.yama.ptrace_scope=0. See Debugging HashLink.
A multi-threaded HashLink program is killed at a breakpoint on Linux HashLink on Linux attaches the debugger to the main thread only. Avoid breakpoints in code that runs on other threads. See Debugging HashLink.
Debugging HXCPP builds needs the ... haxelib, which is not installed The HXCPP debugger needs its debug server library in the build: intellij-hxcpp-debug-server for HXCPP Application (IntelliJ), hxcpp-debug-server for HXCPP Application (vshaxe). Click Install in the notification and start debugging again. See Debugging HXCPP.
A JavaScript configuration reports ... is not downloaded The debug adapter has not been downloaded yet. Only Debug needs it. Click Download in the configuration. See Debugging JavaScript.
... has no usable executable. Set its path under Settings | Tools | Web Browsers. The browser entry has no full path to the browser's executable. Set the path under Settings | Tools | Web Browsers and Preview. See Debugging JavaScript.
Node.js was not found on PATH. ... or Node.js ... is too old for the debug adapters ... The JavaScript debug adapters run on Node.js 18 or later. Install Node.js, or set its path. See Debugging JavaScript.
No Haxe compiler found: set a Haxe SDK for the module or under Build Tools | Haxe, or put ... on the PATH A Haxe Interpreter configuration runs the module's Haxe SDK, and neither the module nor the project has one. Set a Haxe SDK. See Debugging with the Interpreter.
Please install Flex plugin to debug Flash target! Flash and AIR debugging needs JetBrains' Flash/Flex plugin, which works only with an IntelliJ IDEA Ultimate subscription. Install the plugin. See Debugging Flash and AIR.
A previous instance of this AIR app is still running outside the IDE - stop it (or enable Allow multiple instances) and relaunch AIR runs one instance per application id. Stop the other instance, or turn on Allow multiple instances. See Debugging Flash and AIR.

Unit tests

What you see Why What to do
Mark as Tests Build File is missing from the menu The build file does not declare a test framework library itself. Add -lib utest (or munit, buddy or tink_unittest) to the build file. See Unit Tests.
No run markers in the gutter The file is outside the tests build file's class paths, or the framework is buddy, which has no markers. tink_unittest setup and teardown methods and methods tagged @:exclude never get one. Check the class paths, or run the whole tests build. See Unit Tests.
The results tree stays empty Your test main bypasses what the IDE reads, for example with its own reporter. See Unit Tests.
munit tests cannot run on the interpreter - give the tests build a real target (e.g. -neko) munit tests need a real target. Give the tests build file a target such as -neko. See Unit Tests.

Profiling

What you see Why What to do
No profiler entries The profilers need an IntelliJ IDEA Ultimate subscription. See Profiling Overview.
No profiler snapshot was written (exit code ...). for HashLink HashLink writes the profile only when the program exits normally. Stopping the run from the IDE discards it. Let the program exit by itself. See Profiling HashLink.
The profiling entry in the Haxe tool window opens the run configuration editor, titled for example Profiling Needs a Chromium Browser The configuration lacks something the profiler needs: a Chromium-family browser, the compiled executable, or the AIR application descriptor. Fill in the field and click the editor's start button, which names the profiler. See Profiling Overview.
A lane shows No data available The program did not send the data that lane needs. Each profiler page lists what feeds each lane. See Profiling Overview.

FAQ

Can I use a project from plugin version 1.x? Yes, after a one-way conversion. Back up the project first. See Migrating from 1.x.

Do I need IntelliJ IDEA Ultimate? Only for the profilers, the project diagram, and Flash and AIR debugging. Everything else works without an Ultimate subscription. See Supported Versions.

Which Haxe version do I need? Most features work with any Haxe 4 release. The debuggers need Haxe 4.1 or later, and compiler diagnostics need Haxe 4.3.5 or later, or Haxe 3.4.7. See Supported Versions.

Where does the plugin keep its settings, and can I share them? Most project settings are stored in the .idea folder and can be shared through version control. The selected target and section and the build files you pinned source files to are personal, and SDKs are registered per machine. See Core Concepts.

Why does a file shared by two builds show the wrong #if branches? The IDE analyzes each file under one build file, its resolve context, and shows it in the status bar. When several build files contain the file, click Context: in the status bar and pick the one you work on. See Resolve Context.

Clone this wiki locally