Fork me on GitHub
#lsp
<
2022-03-20
>
snoe03:03:40

Does anyone else see this behaviour with cursor on | and calling code-actions>move to let? The bug might be in coc.nvim sending the wrong column (sending 0 always) to code-actions but wanted to check if maybe people using other clients see it.

(let [] 
  (inc |(dec 1)))

=>actual

(let [new-binding (inc (dec 1))] 
  new-binding)

=>expected

(let [new-binding (dec 1)] 
  (inc new-binding))

🎉 1
dharrigan10:03:00

I don't observe this, let me do a recording...a moment

ericdallo12:03:46

@U11EL3P9U shouldn't the cursor be on ( and not in a empty space before applying the action?

dharrigan12:03:29

Even on that it works

👍 1
dharrigan12:03:33

I'll do another recording

snoe18:03:14

Thanks @U11EL3P9U. That definitely helps narrow it down.

snoe19:03:15

The fix was switching to use <Plug>(coc-codeaction-cursor)

dharrigan21:03:00

Ah yes, that's what I have too in my vim config nmap <silent> <Leader>c <Plug>(coc-codeaction-cursor)

dharrigan10:03:15

I'm on master, just pulled, unable to make

dharrigan10:03:30

❯ make      
cd cli && clojure -T:build debug-cli
Compiling java classes...
Building uberjar...
WARNING: abs already refers to: #'clojure.core/abs in namespace: medley.core, being replaced by: #'medley.core/abs
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: io.aviso.exception, being replaced by: #'io.aviso.exception/update-keys
WARNING: abs already refers to: #'clojure.core/abs in namespace: taoensso.encore, being replaced by: #'taoensso.encore/abs
Syntax error (ClassNotFoundException) compiling at (cljfmt/main.clj:1:1).
cljfmt.main

Full report at:
/tmp/clojure-13052201187971273264.edn
Execution error (ExceptionInfo) at clojure.tools.build.tasks.compile-clj/compile-clj (compile_clj.clj:112).
Clojure compilation failed, working dir preserved: /tmp/compile-clj10627165110782229294

Full report at:
/tmp/clojure-7682186895579434763.edn
make: *** [Makefile:46: debug-cli] Error 1

ericdallo13:03:39

can´t repro

dharrigan16:03:01

strange. I just wiped my directory, did a fresh clone and same issue

dharrigan16:03:15

I'll have to investigate further

dharrigan13:03:43

Am able to compile again. Looks like my rc1 clojure.jar got corrupted.

dharrigan13:03:57

Blatting the directory and causing the download to occur again seems to have done the trick

dharrigan13:03:00

I blame the sun

😂 1