-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Windows] NPE when running clj -M:cljd init
in hello/
example project
#248
Comments
ok so this is my next bug fix, #114 |
It took me a long time but I finally got the "hello world" clojuredart program to work in wsl2. It's running on a tablet over usb using usbip to bridge between windows and wsl2. The source files are on windows and in wsl2 I just cd over to the sources launch flutter. It's been a headache so far but I'll give it a go. Lmk if you have questions about setting things up on windows. |
I couldn't figure out how to add a wiki page. Here's how I got it working: |
Ok, so, it doesn't detect changes in the source code. I can't save a file and have it update. That makes sense I guess. wsl2 can't use inotify or whatever on the windows filesystem. I have to have my project inside wsl2... |
hey @rgkirch , I've not forgotten. Thanks a lot for your feedbacks, it will be very useful |
I don't get why file watcher is not working on windows though since we use Java file watcher from nio. |
I don't know how nio does it but I would guess that it's still affected by this. |
Oh, I was just cargo culting but I can actually just run |
I'm just checking in.
clojure-11393559226605063005.edn and clojure-2082992039700957942.edn have identical contents
|
|
@rgkirch Can you share the deps.edn you use? |
🤦 I was juggling powershell and an msys2 shell. Please ignore my previous error message.
Thanks! |
after
|
I'm sorry; that's in the readme. I put in genuine effort to get things set up and working months ago. I opened a ticket and moved on because I could not get it to work on windows. Now, I'm checking in to see if the issue is fixed and I wasn't taking enough time to do a good job.
|
can you list all the files you have in your |
|
I am on windows and using powershell here are some changes to get passed the npe and generating the correct entry point. The environment variables are different depending on if you are using cmd or powershell. https://github.com/Tensegritics/ClojureDart/compare/main...Stephen-J:ClojureDart:windows-powershell |
Wow, thanks @Stephen-J! Those changes work for me and I can launch sample projects! 🎉 |
I'm embarrassed; I didn't even try to debug the issue. There's clearly a file and line number in the error message. |
Hey!
I'm on windows and my terminal is bash from msys2-mingw64. I installed clojure as a powershell module. I can run
clj
by callingpowershell -encodedcommand YwBsAGoA
see here.I was following the readme and copied and pasted the commands that setup
hello/deps.edn
andhello/src/acme/main.cljd
. In hello, when I runclj -M:cljd init
I get an NullPointerException.I'm calling
clj -M:cljd init
withpowershell -encodedcommand YwBsAGoAIAAtAE0AOgBjAGwAagBkACAAaQBuAGkAdAA=
see here.Does your problem persist after
clj -M:cljd clean && flutter clean
?clj -M:cljd clean
^did not help.
I don't have flutter installed.
Thanks!
The text was updated successfully, but these errors were encountered: