Fork me on GitHub

@fabrao I think I may have a lead on what's happening with goto var definition. Just a question, are you using Atom on Windows, with WSL or without? And Clojure on Windows also with or without WSL?


@mauricio.szabo I´m using Atom on Windows and I have WSL installed but not active


Okay... I think I may have a lead on your problem. Will try to reproduce here 🙂


What do you think WSL is "infecting" Atom Windows?


I´m using WSL 2.0


Not really, it can be a problem with backslashes / forward slashes on Node + Clojure + Atom. There's a lot of things that can go wrong when you add interops between Java URIs, absolute paths, windows, and Node.JS 😞


There is some custom logic in Chlorine (at least, I assume it's still present?) that tries to detect whether you are on the same O/S as your REPL, deliberately to support Atom on Windows talking to a REPL on WSL, and it maps Windows drives to WSL mount points. It should not come into play for Windows talking to Windows tho'...


Yes, it is still there on load-file command. I'll try to check if I can reproduce the error on Windows, and if so, if that logic solves the problem


Ok, I'm able to reproduce. Will work on a fix


@fabrao just one last question: what's the version of Java you're using? Even better: what java -version prints to you?


I am amazed: Java returns /C:/.... as the file path... :(


I'm surprised about the leading / but otherwise not surprised that it returns / since forward slashes work on both Windows and macOS/Linux in Java.


(I suspect that breaks the load-file logic for cross-platform stuff too?)


@mauricio.szabo Sorry about late response

openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
Eclipse OpenJ9 VM (build openj9-0.18.1, JRE 1.8.0 Windows 10 amd64-64-Bit Compressed References 20200122_564 (JIT enabled, AOT enabled)
OpenJ9   - 51a5857d2
OMR      - 7a1b0239a
JCL      - 8cf8a30581 based on jdk8u242-b08)


I observe too that clicking into error line when Exception happens the same problem runs out


Yes, it's the same code. Considering that you're the only person who have this problem, I'm thinking it may be a problem with OpenJ9 (by luck, I also installed OpenJ9). I'll change java version and see if changes anything


I had to switch to OpenJ9 because I use Webstart for using with Cisco stuffs


let me change to the other java


Don't worry, I also use OpenJ9. I'll issue a fix, but probably will open a bug report for OpenJ9 too


Ok, its not an issue of OpenJ9 - hotspot does the same thing. I'll fix it...


@mauricio.szabo I tried with other version of Java and the same problem happen