Zed-Haxe icon indicating copy to clipboard operation
Zed-Haxe copied to clipboard

The language server doesn't work for haxeflixel projects

Open gamemake-eng opened this issue 1 year ago • 3 comments

Whenever I open a haxeflixel project, I get errors saying "type not found, flixel.(insert class here)". I have haxeflixel installed and working. I dont know what is actually causing this.

gamemake-eng avatar Dec 13 '24 14:12 gamemake-eng

Turns out vshaxe doesn't recognize Project.xml files. You would need a separate extension for that. I think people should probably know this.

gamemake-eng avatar Dec 13 '24 14:12 gamemake-eng

Yeah, just like VSCode, for OpenFL/Lime project it requires the Lime extension.

Jamextreme140 avatar Oct 21 '25 19:10 Jamextreme140

For anyone who needs suggestions for lime project there is a workaround that uses the compilation .hxml files located in the export dirs (<output>/<target>/haxe/debug.hxml).

So you can do something like:

{
  "lsp": {
    "haxe-language-server": {
      "initialization_options": {
        "displayArguments": ["Export/html5/haxe/debug.hxml"]
      }
    }
  }
}

Source: https://github.com/vshaxe/vshaxe/issues/606#issuecomment-1733834758

But a dedicated Lime Extension would be the best solution to this. (Could also work as a Debug Adapter)

mobilex1122 avatar Nov 01 '25 09:11 mobilex1122