fdorg / flashdevelop

FlashDevelop is a free and open source code editor.
MIT License
825 stars 220 forks source link

[Haxe][Java] Type not found for import #1784

Open Ujimych opened 6 years ago

Ujimych commented 6 years ago
  1. We take files for the project libgdx-haxe-example
  2. In FD we create a new project for previously downloaded and unpacked files (Project-> New Project-> Haxe-> Empty Project
  3. Go to the project settings and change the platform to "hxml"
  4. Restarts FD
  5. Open the file of the class "Main.hx" and on the "output" panel it is displayed:

    Main.hx:1: characters 7-55 : Type not found : com.badlogic.gdx.backends.lwjgl.LwjglApplication

  6. If this is ignored and attempted to compile, the compilation will succeed.

Next

  1. Ignore the error message about the import and continue working in the project.
  2. Create an arbitrary class
    class Temp {
    public var param : Bool;
    public function new() {
    }
    public function some_method() {
    }
    }
  3. Try to create an instance of it in "Main.hx" in the "create" method var data: Temp = new Temp();
  4. In the next line, writing "data." and in the "output" panel will display:

    Main.hx: 20: characters 4-5: Unexpected} Main.hx: 20: characters 4-5: Unexpected}

11.Expected list of available properties and methods of the Temp class will not appear video The video shows adding / removing a point. This is an attempt to force a list of available properties and methods for the instance of the class. You can see that the list appears for a moment and disappears immediately. And a new error message appears.

flashdevelop 5.3.0.3 master#132b80e87d hxjava 3.2.0 haxe compiler 3.4.2

Ujimych commented 6 years ago

Please add -cp in build.hxml. Check and close this issue. Thanks

This is not a solution

SlavaRa commented 6 years ago

Vanga mode = on Tools-> Program Settings... -> HaxeContext -> Completion Mode Compiler ?

Ujimych commented 6 years ago

Tools-> Program Settings... -> HaxeContext -> Completion Mode Compiler ?

Yes

SlavaRa commented 6 years ago

Vanga mode = off ;)

Ujimych commented 6 years ago

Well, I'll write differently.

Why does a message appear when open a class file "Main":

Main.hx:1: characters 7-55 : Type not found : com.badlogic.gdx.backends.lwjgl.LwjglApplication

If this project is opened in FD 5.2 this is not!

SlavaRa commented 6 years ago

@Ujimych please check the latest development build

Ujimych commented 6 years ago

The autocompletion of the code in FD_5_3_1_19 became more stable. Although there were a few moments when closed, when you enter the first character after the point, but the video could not record.

But still there is a message:

"Main.hx:1: characters 7-55 : Type not found : com.badlogic.gdx.backends.lwjgl.LwjglApplication

There were incorrect error messages when opening the project. (see video FD_5_3_1_19)

Error: Library gdx.jar is not installed : run 'haxelib install gdx.jar' Error: Library gdx-natives.jar is not installed : run 'haxelib install gdx-natives.jar' Error: Library gdx-backend-lwjgl.jar is not installed : run 'haxelib install gdx-backend-lwjgl.jar' Error: Library gdx-backend-lwjgl-natives.jar is not installed : run 'haxelib install gdx-backend-lwjgl-natives.jar'

Irritates an error message that does not disappear:

Unexpected }

Work of version 5.2: video

Work of version 5.3: video

Work of version 5.3.1.19: video

The project itself, if that: here