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

Error: Typename X is redefined from module X (Windows) #11579

Open
AerinCox opened this issue Feb 14, 2024 · 0 comments
Open

Error: Typename X is redefined from module X (Windows) #11579

AerinCox opened this issue Feb 14, 2024 · 0 comments

Comments

@AerinCox
Copy link

AerinCox commented Feb 14, 2024

If a .hx file is located in a capitalized folder in Windows, I get the following error:
"Type name X is redefined from module X (cb5ac375c8b3161f1f85bbfe7b70069e)"
This does not seem to affect building, but completely breaks VSCode's intellisense.

To reproduce, create a project where,
1.) Create https://heaps.io/documentation/hello-world.html
2.) Create a .hx file in a capitalized folder
3.) That .hx file is imported into another .hx

Example Project (Note that the "Test" folder is capitalized):
image

Main:

import test.SomeClass;

class Main extends hxd.App {
    override function init() {}
    static function main() {
        new Main();
    }
}

SomeClass:

package test;

class SomeClass{
    var x:Int;

    public function new(){
        this.x = 1;
    }
}

If you click on the SomeClass.hx file in VSCode, you'll get this error:
image

@AerinCox AerinCox changed the title Error: Typename X is redefined from module X Error: Typename X is redefined from module X (Windows) Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant