Closed mdrobulis closed 4 years ago
What distro are you using? If it's Arch, please try the solution in #5
$ uname -a
Linux yoga 5.0.0-23-generic #24-Ubuntu SMP Mon Jul 29 15:36:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
could be related Library error
If you want to test whether it is failing to load any LWJGL native library, you could clone play-cljc-examples and try running clj -A:dev native
in one of the subfolders. If it fails to run the game at all, then maybe the problem is with LWJGL's native library loader (which libvim-clj uses).
dungeon-crawler
2019-11-26 00:30:43.050:INFO::main: Logging initialized @7038ms to org.eclipse.jetty.util.log.StdErrLog
Execution error (LineUnavailableException) at com.sun.media.sound.DirectAudioDevice$DirectDL/implOpen (DirectAudioDevice.java:503).
line with format PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
Super-koalio
2019-11-26 00:31:39.350:INFO::main: Logging initialized @6567ms to org.eclipse.jetty.util.log.StdErrLog
java.lang.UnsatisfiedLinkError: Failed to dynamically load library: /tmp/lwjglmdrobulis/3.2.3-build-13/libvim.so(error = null)
at org.lwjgl.system.linux.LinuxLibrary.loadLibrary(LinuxLibrary.java:32)
Did a window not launch in either case? Paravim is built into the dev command but it's surrounded by a try/catch so it shouldn't prevent the game from launching...
The game launched but Paravim did not... source of the message in LWJGL
the path used to load the libvim.so
on my system is /tmp/lwjglmdrobulis/3.2.3-build-13/libvim.so
Just a shot in the dark, but in case it's the same problem as the Arch issue, can you check if you have libtinfo5 installed? sudo apt install libtinfo5
The unsatisfiedlinkerrors from java are difficult because they don't say what system library it couldn't find. AFAIK the only reliable way to get a more specific error is to try to build libvim.so yourself via this repo...
sudo apt install libtinfo5
and it works. I thoght it's due to 3.2.3 RELEASE
Core: The Library.loadSystem & Library.loadNative methods now require a module name parameter. (S)
Yeah the loadNative method had a breaking change which was annoying, but libvim-clj should be calling it correctly as of 3.2.3. So it works now? Maybe I should add a note to the website so more people see it.
Worked fine... till
(slurp "http://google.com")
thats one long line :rofl:
Oh yeah the REPL prints really slowly, I plan on working on that soon. It basically locks up the editor while it prints.
I added a note to the readme. I'll put it on the website as well when i get the chance.
Ran this
got an exception (stacktrace below )
looks like libvim-clj is using
/tmp/lwjgl
+ $username' +/3.2.3-build-13/libvim.so
path to load the binary and is failing.