lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
Janne Sauvala 2021-02-01T08:11:14.142400Z

Does clojure-lsp work with vscode without Calva? I was thinking does it work with other Clojure plugins, like Clover, out-of-the box πŸ™‚

pez 2021-02-01T08:18:20.144500Z

There is a proof-of-concept extension in the clojure-lsp repo. You might get away by having both Clover and Calva active, though. (Then again, maybe not, I have no idea. πŸ˜„ )

βœ”οΈ 1
ericdallo 2021-02-01T11:58:57.146Z

Exactly ☝️, but be aware that is just a POC, we actually don't maintain it with latest features updates, so I'd suggest using Calva for a complete VSCode Clojure IDE πŸ™‚

1
pez 2021-02-01T12:06:50.149200Z

If you give it a try to have both extensions active, @janne.sauvala, I am super curious about how that works. Without knowing very much about Clover, I think it is mainly a REPL tool, right? So then maybe it should be possible to use the rest of Calva and then Clover for the REPL.

ericdallo 2021-02-01T12:08:28.149900Z

Maybe it'd be a good idea to have this kind of option for Calva, where it could be used only with clojure-lsp/non REPL or with the REPL, then users that like other REPLs could use together with Calva

βž• 1
ericdallo 2021-02-01T12:08:36.150100Z

But I think Calva already supports it, right?

pez 2021-02-01T12:15:10.154900Z

Only because Calva doesn’t really care. πŸ˜ƒ If we had such an option we could hide the REPL buttons in the status bar. And maybe disable the default keyboard shortcuts that has to do with the REPL. Please file a feature request about it.

Janne Sauvala 2021-02-01T12:15:53.155500Z

I’m really happy Calva user and I really like how it also integrates lsp, clj-kondo, formatting and paredit with rest of the nREPL-tooling. πŸ™‚ Yes, Clover makes integration between vscode and plain socket-repl. Now since we start to have all of there tools (Calva, LSP, clj-kondo, Clover) added to vscode I was thinking can we start to mix and match what we want to use

ericdallo 2021-02-01T12:17:12.155600Z

Yeah πŸ™‚ It's a enhancement just for reach more users IMO, not a priority though I'll open an issue just to help you keep track

ericdallo 2021-02-01T12:20:56.155800Z

https://github.com/BetterThanTomorrow/calva/issues/1005

❀️ 1
pez 2021-02-01T12:21:02.156100Z

Thanks. I think it makes sense. I’ve been trying to pull Calva apart more to give Clover users access to our Paredit and such, but it is a lot of work, and a bit hard to explain to myself why I don’t spend that work on Calva users instead, so I’ve put that on hold. This one should be much easier.

2
dharrigan 2021-02-01T12:52:53.157500Z

I was looking over the project and I notice the examples, and this one catches my eye <https://github.com/clojure-emacs/clj-refactor.el/blob/master/examples/magic-requires.gif>. I don't think it's implemented yet in clojure-lsp? If one wanted to contribute, any guidelines?

ericdallo 2021-02-01T13:27:19.157600Z

I implemented support for that for a few namespaces late December πŸ˜„ here for alias: https://github.com/clojure-lsp/clojure-lsp/blob/master/src/clojure_lsp/refactor/transform.clj#L419-L424 and here for refers: https://github.com/clojure-lsp/clojure-lsp/blob/master/src/clojure_lsp/refactor/transform.clj#L436-L454

ericdallo 2021-02-01T13:27:35.158Z

feel free to add more that makes sense for all

ericdallo 2021-02-01T13:28:24.158200Z

I would nice to not add generic ones that may conflict with user alias from some project, but I'm aware it's missing common alias like io for <http://clojure.java.io|clojure.java.io> and etc

ericdallo 2021-02-01T13:28:50.158400Z

Also, It's in my backlog add a full docs page explaning each refactoring with gifs too

dharrigan 2021-02-01T13:58:05.158600Z

noice! will review

ericdallo 2021-02-01T13:59:44.158800Z

BTW the require wen completion probably is not working after the kondo integration πŸ˜• that's something we need to fix

dharrigan 2021-02-01T15:43:29.159400Z

good job on the new release of clojure-lsp, about to push up the arch graal build

ericdallo 2021-02-01T15:43:55.160300Z

Actually the ci is not ready πŸ˜…

dharrigan 2021-02-01T15:43:57.160500Z

notice that this no longer works clojure-lsp --version, just thought you might like to know πŸ˜‰

dharrigan 2021-02-01T15:44:20.161400Z

Oh, i can hold off on the push if you're still ironing out the kinks

ericdallo 2021-02-01T15:45:23.163Z

Yes, please, I was aware that the CI wouldn't work perfect haha, I'm fixing it, soon It'll be fixed

ericdallo 2021-02-01T15:45:28.163300Z

I let you know

dharrigan 2021-02-01T15:45:30.163500Z

no problemo

dharrigan 2021-02-01T16:18:26.163900Z

btw, the startup time for the new and improved clojure-lsp is sooopar-dooopar fast πŸ™‚

ericdallo 2021-02-01T16:34:47.164Z

Nice πŸ˜„ Did you run the linux native image sucessfully?

dharrigan 2021-02-01T17:10:46.164200Z

yes

ericdallo 2021-02-01T17:13:03.164400Z

great, about the --version, that feature was a workaround done by me some time ago, I think it's time to fix it for real πŸ˜›

ericdallo 2021-02-01T17:13:17.164600Z

I'll try to fix that soon

dharrigan 2021-02-01T17:13:26.164800Z

just tried 2021.02.01-16.44.01 and works great, is that ready now for pushing to arch?

ericdallo 2021-02-01T17:14:25.165Z

I'm WIP on MacOS graalvm build then I'll announce it on the channel

dharrigan 2021-02-01T17:14:36.165200Z

Okay, I'll hold off

ericdallo 2021-02-01T17:14:58.165400Z

thanks, the only way to test the CI is releasing, sorry about that πŸ˜•

dharrigan 2021-02-01T17:15:04.165600Z

np

dharrigan 2021-02-01T17:15:20.165800Z

I was going to add in the io to the clojure-lsp thing

dharrigan 2021-02-01T17:15:22.166Z

somethig to do πŸ™‚

ericdallo 2021-02-01T17:15:35.166200Z

Noice :catjam:

2021-02-01T18:23:29.167500Z

I just downloaded clojure-lsp today (via spacemacs) and am getting this:

$ ./clojure-lsp
Error: Invalid or corrupt jarfile ./clojure-lsp
Is anyone else getting that also? I'm MacOS 10.13.6.

ericdallo 2021-02-01T18:23:54.167800Z

Hum, it was the latest deploy

ericdallo 2021-02-01T18:24:12.168100Z

did you just download the clojure-lsp file or the zipped one?

ericdallo 2021-02-01T18:24:48.168300Z

I'll rollback the last release until get fixed

2021-02-01T18:24:51.168500Z

Honestly, I'm not sure. spacemacs did it for me. It did take a really long time to download the 11mb file.

ericdallo 2021-02-01T18:25:59.168700Z

Thanks for the report, rolled back until I fix the CI

ericdallo 2021-02-01T18:26:25.168900Z

I'm having some issues with the CI

2021-02-01T18:27:41.169100Z

Ah, cool. I'll retry with the new "latest" and report back. Thanks for the help!

ericdallo 2021-02-01T18:28:12.169300Z

You're welcome, I hope I fix that today

2021-02-01T19:04:24.169700Z

Well, 2021.01.28-03.03.16 still didn't work for me when I had spacemacs download it. However, when I downloaded manually things started working just fine. Thanks again for the help!

ericdallo 2021-02-01T19:05:25.169900Z

probably some spacemacs cache

2021-02-01T19:05:52.170100Z

Also, this looks like it's going to be really cool once I figure out how to use it. Fancy and useful things are already popping up all over my editor! πŸ˜‚ Thanks for your work on it!

ericdallo 2021-02-01T19:06:29.170300Z

haha yes! check the docs for more info or this: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/

😍 1
ericdallo 2021-02-01T19:06:34.170600Z

thank you πŸ˜„

ericdallo 2021-02-01T21:30:07.171Z

Hey all, after a lot of work, we released https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.02.01-20.37.52 version of clojure-lsp:clojure-lsp: , this time adding experimental native image binaries compiled with GraalVM πŸŽ‰, for now only available for Linux and MacOS, I may add support for Windows soon, if you find any errors, please https://github.com/clojure-lsp/clojure-lsp/issues. More info https://github.com/clojure-lsp/clojure-lsp/pull/267 Thanks for everyone that helped me on this, @thiagokokada, @dharrigan, @kumarshantanu @snoe specially @borkdude who helped a lot

πŸŽ‰ 7
bringe 2021-02-02T20:43:42.232100Z

I'll try it out soon, but may be days before I get to that

bringe 2021-02-02T20:43:57.232300Z

Glad there is Windows support!

ericdallo 2021-02-02T20:44:06.232500Z

np, thanks for helping πŸ˜„

❀️ 1
borkdude 2021-02-02T20:45:17.232800Z

@ericdallo so what was needed for the static binary to work?

ericdallo 2021-02-02T20:47:49.233Z

I couldn't test it yet, not sure it will work for other linux (non NixOS), but probably won't work since the sqlite native lib is not a static lib

snoe 2021-02-01T21:37:20.172Z

this is huge, thanks @ericdallo . I started clojure-lsp when graal had just come out and had hoped to one day use it.

❀️ 1
dharrigan 2021-02-01T21:37:33.172200Z

works pretty darn well on Arch πŸ™‚

dharrigan 2021-02-01T21:37:41.172400Z

startup time is milliseconds

dharrigan 2021-02-01T21:38:17.173200Z

(a bit longer, if no clj-kondo analysis has been performed prior - but once it has, restarts are super dopar quick)

ericdallo 2021-02-01T21:40:35.175300Z

πŸ˜„ yes, IMO the trade-off worth thinking that memory and cpu resources are improved, alos this is experimental, I did a lot of tests and could not find any issues, but we will only know with users testing it πŸ˜…

borkdude 2021-02-01T21:41:56.175700Z

so how do I install this lsp thing in emacs? let me test it ;)

ericdallo 2021-02-01T21:42:56.175800Z

hahah cool! This should help you: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/

ericdallo 2021-02-01T21:43:29.176100Z

but it's basically download the binary, set the permission to executable (needs to fix that on the release, not sure how to do it yet though)

ericdallo 2021-02-01T21:44:11.176300Z

install lsp-mode and set lsp-clojure-custom-server-command

2021-02-01T21:47:05.177500Z

Seems to work great in MacOS 10.13.6. Also getting a really fast startup (unsurprisingly). πŸŽ‰ :thanks3:

πŸš€ 1
borkdude 2021-02-01T21:51:25.177800Z

I don't get this command in my emacs

borkdude 2021-02-01T21:52:22.178Z

oh it's a variable

1
borkdude 2021-02-01T21:56:47.178300Z

I only get messages about a started server which exited with status exit. Do you want to restart it?

ericdallo 2021-02-01T21:57:19.178500Z

Hum, did you chmod +x the file?

borkdude 2021-02-01T21:57:30.178700Z

yes. I have:

(setq lsp-clojure-custom-server-command '("bash" "-c" "/Users/borkdude/Downloads/clojure-lsp"))

ericdallo 2021-02-01T21:57:38.178900Z

also check /tmp/clojure-lsp.out or clojure-lsp:stderr buffer

borkdude 2021-02-01T21:57:43.179100Z

(I don't know why you need the bash there)

borkdude 2021-02-01T21:58:02.179300Z

/bin/bash: clojure-lsp: command not found

ericdallo 2021-02-01T21:58:22.179500Z

Hum, usually this happen with wrong permission on file :thinking_face:

borkdude 2021-02-01T21:58:41.179700Z

it seems that it doesn't find the override. it doesn't mention the dir

ericdallo 2021-02-01T22:00:14.179900Z

Yeah, probably lsp-mode is not recognizing that variable

borkdude 2021-02-01T22:00:29.180100Z

ls -lat "/Users/borkdude/Downloads/clojure-lsp"
-rwx--x--x@ 1 borkdude  staff  110061504 Feb  1 20:52 /Users/borkdude/Downloads/clojure-lsp

ericdallo 2021-02-01T22:00:54.180300Z

I don't know which config you use, but this is my config for that with use-package: https://github.com/ericdallo/dotfiles/blob/master/.doom.d/config.el#L174

borkdude 2021-02-01T22:01:46.180600Z

I'll restart my emacs 😱

πŸͺŸ 1
borkdude 2021-02-01T22:01:56.180900Z

yes, now it works

1
borkdude 2021-02-01T22:02:30.181200Z

borkdude 2021-02-01T22:03:08.181600Z

also the progress bar keeps spinning, is this normal?

ericdallo 2021-02-01T22:03:31.181800Z

Yes if it's analyzing the code, otherwise a issue

ericdallo 2021-02-01T22:03:38.182Z

check /tmp/clojure-lsp.out

borkdude 2021-02-01T22:05:02.182200Z

other than that, it seems to work!

borkdude 2021-02-01T22:05:33.182400Z

hmm, I get different errors now

borkdude 2021-02-01T22:05:52.182600Z

borkdude 2021-02-01T22:06:02.183Z

when trying to do lsp-find-references in some test code

ericdallo 2021-02-01T22:06:26.183200Z

Hum.. that should work, could you confrm that there is no errors on /tmp/clojure-lsp.out ?

ericdallo 2021-02-01T22:06:36.183400Z

also on the stderr lsp buffer?

borkdude 2021-02-01T22:07:15.183600Z

Only this in the err buffer:

Feb 01, 2021 11:02:00 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 2

borkdude 2021-02-01T22:07:52.183800Z

In lsp.out:

2021-02-01T22:03:20.165Z MBP2019.local DEBUG [clojure-lsp.main:?] - :documentHighlight 1 clojure.lang.LazySeq@6a838899
2021-02-01T22:03:20.165Z MBP2019.local DEBUG [clojure-lsp.main:?] - :hover 0 clojure.lang.LazySeq@6aca4964
2021-02-01T22:06:43.132Z MBP2019.local DEBUG [clojure-lsp.main:?] - :resolveCodeLens 3 clojure.lang.LazySeq@28b3a0ca
2021-02-01T22:06:43.132Z MBP2019.local DEBUG [clojure-lsp.main:?] - :resolveCodeLens 4 clojure.lang.LazySeq@6e5f2eed
2021-02-01T22:06:44.882Z MBP2019.local DEBUG [clojure-lsp.main:?] - :hover 0 clojure.lang.LazySeq@52817bb8
2021-02-01T22:06:44.882Z MBP2019.local DEBUG [clojure-lsp.main:?] - :documentHighlight 1 clojure.lang.LazySeq@14b4a80e
2021-02-01T22:06:45.746Z MBP2019.local DEBUG [clojure-lsp.main:?] - :documentHighlight 1 clojure.lang.LazySeq@483b8156
2021-02-01T22:06:53.373Z MBP2019.local DEBUG [clojure-lsp.main:?] - :documentHighlight 0 clojure.lang.LazySeq@ecf74042
2021-02-01T22:06:53.374Z MBP2019.local DEBUG [clojure-lsp.main:?] - :hover 0 clojure.lang.LazySeq@eeb66f0
2021-02-01T22:07:00.690Z MBP2019.local DEBUG [clojure-lsp.main:?] - :documentHighlight 0 clojure.lang.LazySeq@c2fd3fc2

ericdallo 2021-02-01T22:08:01.184Z

Hum, it's expected on the err buffer that logs

ericdallo 2021-02-01T22:08:09.184200Z

Looks ok also the log file

ericdallo 2021-02-01T22:08:20.184400Z

Not sure it's a lsp-mode issue

ericdallo 2021-02-01T22:08:36.184600Z

is your lsp-mode updated?

borkdude 2021-02-01T22:08:53.184800Z

let me check

borkdude 2021-02-01T22:09:11.185Z

lsp-version also errors :/

borkdude 2021-02-01T22:09:18.185200Z

let me just erase it from the my elpa dir

ericdallo 2021-02-01T22:09:30.185400Z

yeah, unfortunately lsp-mode has a lot of breaking changes/bugs all the time πŸ˜•

ericdallo 2021-02-01T22:09:39.185600Z

we always have to recommend to remove and reinstall

borkdude 2021-02-01T22:10:45.185800Z

All seems good now!

borkdude 2021-02-01T22:11:43.186Z

Now I'm able to test what you guys are using all this analysis for ;)

ericdallo 2021-02-01T22:12:09.186200Z

hahahah yeah

ericdallo 2021-02-01T22:12:22.186400Z

I'm glad to see you using :clojure-lsp: πŸ˜„

borkdude 2021-02-01T22:13:48.186600Z

Hmm, this seems like a warning I don't get from the vanilla clj-kondo.

borkdude 2021-02-01T22:14:00.186800Z

borkdude 2021-02-01T22:14:35.187200Z

Oh I see, this is a .cljc issue probably. I have a workaround for this coming up

ericdallo 2021-02-01T22:14:37.187400Z

Hum :thinking_face:

borkdude 2021-02-01T22:14:55.187600Z

Is there a way to turn diagnostics off, so I get only the clj-kondo ones from my installed clj-kondo?

ericdallo 2021-02-01T22:15:04.187800Z

oh nice!, we now really rely on clj-kondo for every analysis πŸ˜†

ericdallo 2021-02-01T22:15:19.188Z

yep

ericdallo 2021-02-01T22:15:22.188200Z

:loading:

borkdude 2021-02-01T22:15:28.188400Z

this is easier for me for development

borkdude 2021-02-01T22:15:41.188600Z

since I'm always running the bleeding edge

πŸ‘ 1
ericdallo 2021-02-01T22:16:06.188800Z

(setq lsp-diagnostics-provider :none) should work

ericdallo 2021-02-01T22:16:39.189200Z

you may need to lsp-workspace-restart too

ericdallo 2021-02-01T22:17:04.189400Z

or just disable lsp-diagnostics-mode for a single buffer only

borkdude 2021-02-01T22:19:44.189700Z

ah I should remember the last one

borkdude 2021-02-01T22:19:46.189900Z

thanks

ericdallo 2021-02-01T22:20:04.190100Z

πŸš€

ericdallo 2021-02-01T22:34:54.190300Z

BTW @borkdude, I could not the --static binary work with sqlite πŸ˜•

clojure-lsp: symbol lookup error: /tmp/sqlite-unknown-96fda49f-b136-4037-98b2-cb9e9dadfb63-libsqlitejdbc.so: undefined symbol: pthread_mutexattr_init
this happens in runtime when querying

ericdallo 2021-02-01T22:35:21.190500Z

Probably, because JNI loads dynamically the sqlite ?

borkdude 2021-02-01T22:36:24.190700Z

yeah, I don't know. have you tried the native in a docker that absolutely has no libsqlite?

borkdude 2021-02-01T22:36:33.190900Z

I still wonder how it loads the library

ericdallo 2021-02-01T22:37:31.191100Z

Good question

borkdude 2021-02-01T22:37:43.191300Z

I also don't see the lib here:

clojure-lsp:
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1069.24.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1677.104.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

borkdude 2021-02-01T22:37:56.191500Z

This is otool -L clojure-lsp

ericdallo 2021-02-01T22:38:30.191700Z

> Our SQLiteJDBC library requires no configuration since native libraries for major OSs, including Windows, Mac OS X, Linux etc., are assembled into a single JAR (Java Archive) file. The binary for sqlite is not static, that's the reason

ericdallo 2021-02-01T22:38:37.191900Z

https://github.com/xerial/sqlite-jdbc

borkdude 2021-02-01T22:40:18.192200Z

I get that, but where does native-image leave this sqlite binary

borkdude 2021-02-01T22:40:31.192400Z

normally you can't just "include" it and hope that it works

borkdude 2021-02-01T22:40:44.192600Z

it might depend on your system installation of sqlite

ericdallo 2021-02-01T22:40:53.192800Z

it's a jar dependnecy from the sqlite-jdbc I think

ericdallo 2021-02-01T22:41:21.193200Z

it's in resources

borkdude 2021-02-01T22:45:13.193400Z

I get that it is a JAR dependency. I just don't get how the native lib gets distributed with your binary

borkdude 2021-02-01T22:45:43.193600Z

Maybe this happens through the JNI config? The only way to find out is to run the linux binary in a very minimal docker image

ericdallo 2021-02-01T22:45:55.193800Z

oh got it

ericdallo 2021-02-01T22:46:31.194Z

Yeah, it's a way to check that

ericdallo 2021-02-01T23:11:12.194200Z

I tested a static compiled via CI static image, with my https://github.com/ericdallo/sqlite-graalvm-sample and got a more detailed exception:

Inserting...
Failed to load native library:sqlite-unknown-e3826d75-d79b-49ef-b323-a6f5bc7a3b71-libsqlitejdbc.so. osinfo: Linux/x86_64
java.lang.UnsatisfiedLinkError: Can't load library: /tmp/sqlite-unknown-e3826d75-d79b-49ef-b323-a6f5bc7a3b71-libsqlitejdbc.so
Exception in thread "main" java.sql.SQLException: Error opening connection
        at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:239)
        at org.sqlite.SQLiteConnection.&lt;init&gt;(SQLiteConnection.java:61)
        at org.sqlite.jdbc3.JDBC3Connection.&lt;init&gt;(JDBC3Connection.java:28)
        at org.sqlite.jdbc4.JDBC4Connection.&lt;init&gt;(JDBC4Connection.java:21)
        at org.sqlite.JDBC.createConnection(JDBC.java:115)
        at org.sqlite.JDBC.connect(JDBC.java:90)
        at java.sql.DriverManager.getConnection(DriverManager.java:677)
        at java.sql.DriverManager.getConnection(DriverManager.java:189)
        at next.jdbc.connection$get_driver_connection.invokeStatic(connection.clj:141)
        at next.jdbc.connection$url_PLUS_etc$reify__747.getConnection(connection.clj:357)
        at next.jdbc.connection$make_connection.invokeStatic(connection.clj:385)
        at next.jdbc.connection$fn__760.invokeStatic(connection.clj:406)
        at next.jdbc.connection$fn__760.invoke(connection.clj:406)
        at next.jdbc.protocols$fn__563$G__558__570.invoke(protocols.clj:24)
        at next.jdbc.connection$fn__764.invokeStatic(connection.clj:415)
        at next.jdbc.connection$fn__764.invoke(connection.clj:406)
        at next.jdbc.protocols$fn__563$G__558__570.invoke(protocols.clj:24)
        at next.jdbc$get_connection.invokeStatic(jdbc.clj:155)
        at sqlite_graalvm_sample.core$insert.invokeStatic(core.clj:15)
        at sqlite_graalvm_sample.core$_main.invokeStatic(core.clj:36)
        at sqlite_graalvm_sample.core$_main.doInvoke(core.clj:36)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.AFn.applyToHelper(AFn.java:152)
        at clojure.lang.RestFn.applyTo(RestFn.java:132)
        at sqlite_graalvm_sample.core.main(Unknown Source)
Caused by: java.lang.Exception: No native library found for os.name=Linux, os.arch=x86_64, paths=[/org/sqlite/native/Linux/x86_64]
        at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:367)
        at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:67)
        at org.sqlite.core.NativeDB.load(NativeDB.java:63)
        at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235)
        ... 24 more

borkdude 2021-02-01T23:12:37.194500Z

But can you run the dynamic one in an environment that has no sqlite lib installed?

ericdallo 2021-02-01T23:16:02.194900Z

yeah, I can run in a alpine docker image

ericdallo 2021-02-01T23:18:50.195100Z

Got a pretty segfault πŸ˜”

ericdallo 2021-02-01T23:19:59.195500Z

And this on a ubuntu docker image:

ericdallo 2021-02-01T23:20:19.195900Z

The same error I get on NixOS ☝️ probably related with the non static sqlite lib

borkdude 2021-02-01T23:28:26.196100Z

@ericdallo the dynamic binaries generally do not work in alpine at all

πŸ‘ 1
borkdude 2021-02-01T23:28:51.196400Z

you should try it in an ubuntu one

ericdallo 2021-02-01T23:28:51.196600Z

Yeah, I Imagined that, that's why I tested on ubuntu

borkdude 2021-02-01T23:29:01.196800Z

but make sure there is no libsqlite

borkdude 2021-02-01T23:29:47.197400Z

So probably you have a dependency then?

1
borkdude 2021-02-01T23:30:03.197600Z

Off to bed.

πŸ‘‹ 1