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

Environment variables are wrong when running code on language server #482

Closed
tobil4sk opened this issue Mar 13, 2021 · 0 comments · Fixed by vshaxe/haxe-language-server#52

Comments

@tobil4sk
Copy link
Contributor

More details here: HaxeFoundation/haxe/issues/10151

When running code using the --interp flag using the vshaxe language server, the Sys.environment() function gives the names of the system environment variables in lowercase.

class Main {
    static function main() {
        var env = Sys.environment();
        for (i => j in env)
            Sys.println(i + ": "+ j);
    }
}

This is also true when a haxe call results in running a haxelib on the server (eg compiling hxcpp). Any call to Sys.environment() in the neko file returns them incorrectly.

They are in the correct case if you do not use the language server.

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

Successfully merging a pull request may close this issue.

1 participant