Fork me on GitHub
#lsp
<
2023-10-19
>
borkdude14:10:49

I keep getting Wrong type argument: sequencep, #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("uri" "file:///Users/borkdude/dev/clj-kondo/src/clj_kondo/impl/analyzer.clj" "range" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("start" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("line" 542 "character" 6)) "end" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("line" 542 "character" 18)))))) [3 times] lately when I try to navigate using lsp-find-definition, anyone else?

borkdude14:10:14

upgrading lsp-mode worked

👍 3
borkdude13:10:15

I'm still getting this error after a while

ericdallo13:10:15

that really looks like a bad compilation

borkdude14:10:32

what can I do about it except throwing away elpa

ericdallo14:10:32

I use straight.el which takes care of those issues, so I don't know much about how vanilla emacs handles that, but in the end is a (byte-compile-file) call I guess

jmayaalv13:11:30

@U04V15CAJ did you manage to solve this? i started to get this as well 😞 throwing elpa works but it comes back after a while

borkdude13:11:29

@U0J6U23FW unfortunately not

borkdude13:11:37

it indeed comes back after a while

😞 1
borkdude13:11:53

I'm on Emacs 28.2

borkdude13:11:40

I usually download emacs from here: https://emacsformacosx.com/ but it seems the site isn't responding (yes, I know there's other ways)

jmayaalv13:11:46

yeah me too. well, let’s see, ill keep digging. thanks!

borkdude13:11:32

ah you can download from github releases from that repo

jmayaalv13:11:51

thanks will give it a try too

borkdude13:11:40

well, navigation works with this one, we'll see how long it lasts

🤞 1
jmayaalv13:11:08

working for me as well

borkdude16:11:22

@U0J6U23FW It seems this railwaycat emacs uses a different font, which disturbs me. And describe-font (to see what it is using) doesn't work for me either, it says "cannot load find file mule-diag"

borkdude16:11:48

emacsforosx is back on, gonna try that one

borkdude17:11:50

hmm, with that newest version my cursor moves unbearably slow for some reason

jmayaalv17:11:49

hmm i am running 29.1 from emacsforosx and so far so good. haven’t notice anything wrong with the cursor

jmayaalv17:11:25

does it move slow only on clojure-mode or any mode?

borkdude17:11:14

clojure-mode it seems

borkdude17:11:51

I also disabled lsp, that doesn't seem to be it

jmayaalv17:11:09

i haven’t notice any particular slow down but i am just coming back after bunch of meetings so, i will confirm if i see anything after a while

👍 1
jmayaalv06:11:40

there is definitely a slow down 😞 it’s not terrible slow but definitely slower.

borkdude15:11:43

I upgraded to 29.1 with native-compilation from the railwaycat brew repo and everything is smooth again. lsp working great, so far

👍 1
borkdude15:11:01

brew install emacs-mac --with-native-compilation

jmayaalv15:11:52

nice, thanks a lot! i am also having some problems with sql-mode in the emacsformacosx distro 😞 but at least no problem with lsp. ill give i a try to the brew distro this weekend. Thanks a lot!

aisamu20:10:11

Is it possible to rename protocol parameters? When I try it, I get Internal Error, but I'm unsure if it's not supported or if there's something wonky with my setup I'm aware it's inconsequential, but it's sometimes useful to have all the implementation parameters matching the definition's!

aisamu20:10:24

2023-10-19T20:05:38.833Z  ERROR [clojure-lsp.server:55] - Error receiving message: Internal error (-32603)
{:id 988, :method "textDocument/prepareRename"}
com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine  PosixPlatformThreads.java:  203
            com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine       PlatformThreads.java:  775
                            java.util.concurrent.ForkJoinWorkerThread.run  ForkJoinWorkerThread.java:  183
                              java.util.concurrent.ForkJoinPool.runWorker          ForkJoinPool.java: 1594
                                   java.util.concurrent.ForkJoinPool.scan          ForkJoinPool.java: 1656
                 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec          ForkJoinPool.java: 1020
                                 java.util.concurrent.ForkJoinTask.doExec          ForkJoinTask.java:  290
                  java.util.concurrent.CompletableFuture$AsyncSupply.exec     CompletableFuture.java: 1692
                   java.util.concurrent.CompletableFuture$AsyncSupply.run     CompletableFuture.java: 1700
                                                promesa.util.Supplier/get                  util.cljc:   34
                                            promesa.exec/wrap-bindings/fn                  exec.cljc:  163
                                                 clojure-lsp.server/fn/fn                 server.clj:  256
                                      clojure-lsp.handlers/prepare-rename               handlers.clj:  252
                                clojure-lsp.feature.rename/prepare-rename                 rename.clj:  268
                                 clojure-lsp.feature.rename/rename-status                 rename.clj:  224
                                      clojure-lsp.shared/uri->source-path                 shared.clj:  259
                                     clojure-lsp.shared/uri->source-paths                 shared.clj:  256
                                         clojure-lsp.shared/uri->filename                 shared.clj:  207
                                              clojure.string/starts-with?                 string.clj:  365

ericdallo21:10:00

that's a error on clojure-lsp, it should show a pretties msg even if not supported, it's a bug, please open a issue with a good repro