Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing type declaration #79

Open
jgedri opened this issue Sep 23, 2022 · 5 comments
Open

Missing type declaration #79

jgedri opened this issue Sep 23, 2022 · 5 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@jgedri
Copy link

jgedri commented Sep 23, 2022

src/game/assets/Lang.hx:18: characters 20-21 : Missing type declaration

Trying to run build.js.hxml

@deepnight deepnight self-assigned this Sep 25, 2022
@deepnight deepnight added the bug Something isn't working label Sep 25, 2022
@deepnight
Copy link
Owner

I couldn't reproduce 🤔

Please make sure you're using correct libs:

haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git
haxelib git heaps https://github.com/deepnight/heaps.git  

Note that I'm not on latest Heaps version, so you can use my version safely: I always make sure latest libs on my side are working together.

@deepnight deepnight added the question Further information is requested label Sep 28, 2022
@jgedri
Copy link
Author

jgedri commented Oct 3, 2022

I'll put the relevant code here.

            try hxd.Res.load("lang/"+CUR+".po")
            catch(_) {
                CUR = "en";
                hxd.Res.load("lang/"+CUR+".po");
            }

@deepnight
Copy link
Owner

What version of the Haxe compiler are you using?

(Type haxe --version from the command line to see it)

@jcward
Copy link

jcward commented Jan 7, 2023

I get this error with Haxe 4.1 and lower. At this time, it seems Haxe 4.2+ is required.

There is a screenshot in your Haxe installation guide that shows version 4.0.5... I know the text says to install the latest, but I was confused when I skimmed (assumed 4.0.5). Maybe edit to hide version 😄

haxe_ver_hack

@deepnight
Copy link
Owner

I see, thanks for sharing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants