This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-12
Channels
- # announcements (10)
- # babashka (26)
- # beginners (113)
- # calva (75)
- # cider (7)
- # clj-http (1)
- # cljdoc (2)
- # cljfx (3)
- # cljs-dev (13)
- # clojure (79)
- # clojure-europe (21)
- # clojure-losangeles (2)
- # clojure-nl (4)
- # clojure-sweden (1)
- # clojure-uk (23)
- # clojureladies (4)
- # clojurescript (26)
- # clojureverse-ops (2)
- # conjure (2)
- # cursive (2)
- # data-science (1)
- # datalog (6)
- # datomic (1)
- # degree9 (2)
- # depstar (4)
- # esprit (3)
- # fulcro (25)
- # introduce-yourself (2)
- # jobs (3)
- # lsp (30)
- # meander (38)
- # missionary (9)
- # nbb (7)
- # news-and-articles (2)
- # off-topic (28)
- # pathom (46)
- # polylith (19)
- # re-frame (4)
- # reitit (2)
- # sci (8)
- # shadow-cljs (23)
- # specter (17)
- # spire (1)
- # tools-deps (16)
- # unrepl (1)
- # xtdb (30)
feature request: rename symbols in let blocks
lemme see
seems like it doesn’t work in test files
hmm, no, that’s not right. i don’t know what’s going on
Hello beloved clojure-lsp magicians! I’m experiencing an oddity with clojure-lsp (using latest
under Calva).
I’ve selected verbose
for Clojure: Trace:Server for some hints.
When I launch vscode and navigate to Output->Clojure Language Client I see the initial message:
[Trace - 2:06:48 PM] Sending request 'initialize - (0)'.
Params: {
"processId": 90837,
"clientInfo": {
"name": "vscode",
"version": "1.59.0"
},
<... deleted by me for brevity... >
"workspaceFolders": [
{
"uri": "file:///Users/lee/proj/oss/lread/test-doc-blocks",
"name": "test-doc-blocks"
}
]
}
Followed by:
Aug 12, 2021 2:06:49 PM org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError
SEVERE: An error occurred while processing an incoming message.
java.lang.NullPointerException
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:279)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:829)
at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:553)
at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
After a little of this and that, I found that things start work fine after I delete my bb.edn
file (on fresh start of vscode).
I expect there is something ickity in my bb.edn
file (or maybe something it references?), but not sure what yet.
Note that clojure-lsp is working fine with rewrite-clj and its bb.edn
file.
Can try to provide more info/repro if this symptom is new to you.hey! Could you check if that bug is related with this issue? https://github.com/clojure-lsp/clojure-lsp/issues/507
Thanks so much @UKFSJSM38! That was it! For some reason I had :paths [script]
in my bb.edn
, changing to :paths ["script"]
fixes!
Hmm, :paths [script]
probably isn't valid in the deps.edn world either, you should always be using strings here
I thought the same, but from clojure-lsp side, it's better to avoid crashes like that I think
perhaps clj-kondo can warn about this, feel free to post an issue, we have a linter for deps.edn which we could probably re-use for large parts of bb.edn as well
It turns out I made this mistake in cljdoc's bb.edn as well... so a linter would help protect the world from me anyways!
btw, I still owe you a PR for rewrite-clj, I have it in my queue and will get to it, don't worry :)
In Emacs, my lsp-ui
sideline is slow to update (takes around 2 seconds) after executing a command using M-x ...
, but almost instant when I execute the same command using the keyboard.
For example, M-x next-line
is slow, but down-arrow is fast.
The video at https://user-images.githubusercontent.com/823295/129270365-7a455f7d-e18c-489a-b816-547aa3a0612c.mp4 shows this.
Do other people have the same behaviour?
I'd suggest you open an issue with that gif in lsp-ui, but before that, I'd try via lsp-start-plain.el
FWIW, I looked into this and it turns out to be a general issue with post-command hooks in Emacs. Not a problem in lsp-ui
itself.
Reported at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50042