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

Can't init on Windows (probably because of "Path" env var naming) #19

Closed
vlaaad opened this issue Apr 16, 2022 · 3 comments
Closed

Can't init on Windows (probably because of "Path" env var naming) #19

vlaaad opened this issue Apr 16, 2022 · 3 comments

Comments

@vlaaad
Copy link

vlaaad commented Apr 16, 2022

I'm trying ClojureDart on windows, and it fails to do clj -M -m cljd.build init --dart cljdapp.calculator with NPE:

Execution error (NullPointerException) at cljd.build/exec (build.clj:129).
Cannot invoke "Object.getClass()" because "target" is null

Maybe path is nil on Windows because "path" variable is named "Path" and not "PATH"?

PS C:\Users\Vlaaad\Projects\cljd-test> clj                                                      
Clojure 1.10.3
user=> (-> (ProcessBuilder. []) .environment (get "PATH"))     
nil
user=> (-> (ProcessBuilder. []) .environment (get "Path")) 
"C:\\Progr..."
@bennyandresen
Copy link

see PR #17

@cgrand
Copy link
Contributor

cgrand commented Apr 20, 2022

Please test the above commit. Thanks!

@cgrand
Copy link
Contributor

cgrand commented Apr 20, 2022

Confirmed to work #17 (comment)

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

3 participants