-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
setModuleCheckPolicy() breaks haxe server cache when targeting C# or Java #7652
Comments
@jeremyfa are some other targets concerned or is it C#-specific? |
@ncannasse After trying every other target I thought about, it works as expected on cpp, hl, js, lua, php and python targets, but breaks when targeting c# or java |
Forgot to mention that the error is the same (Type name String is redefined from module String) on both C# and Java target |
I cannot reproduce this with Haxe 4.0.0-rc.2 or latest development. |
That's sounds like good news, I guess? Did this get fixed somehow? |
I just tried to reproduce the issue again on Haxe 4.0.0-rc.2, and indeed I don't have the error anymore. It doesn't seem to happen on rc.1 as well. It seems something has changed since when I posted this issue. |
Looks like this is resolved. |
On large codebases, I take advantage of
--macro server.setModuleCheckPolicy()
to improve code completion speed. It works fine with JS or C++ target, but breaks on C# target.I reproduced the issue on a minimal project:
Main.hx
somepack/SomeClass.hx
build.hxml
Equivalent with js or cpp target works as expected, but completion server fails with C# target with errors:
Completion stops working at that stage.
Currently, I have no way to make code completion reasonably fast on large projects when targeting C# because of this issue.
The text was updated successfully, but these errors were encountered: