clj-kondo

https://github.com/clj-kondo/clj-kondo
avocade 2020-10-14T10:48:23.168100Z

Btw, we're building something pretty cool on top of clojure/pathom/datomic called http://Fluent.to (https://fluent.to), would love to show it to you some time later next year and get your spontaneous input if you'd be interested. Seems pretty likely that we'll use sci heavily to run our internal "workflows" or "processes", whatever we end up calling them 🙂 PS. The website has been recently stripped down to not talk too much about what we're really building, so don't be fooled if it feels a bit uninspiring hehe

avocade 2020-10-14T10:49:29.168400Z

Also going on a European tour next year to meet up with interesting people (most clojure & rust devs and designers). so would love to pop by Amersfort on our way and say hi, and buy you a beer or two as thanks for your awesome work 😄 🍺

avocade 2020-10-14T10:49:49.168600Z

the plan was originally to do it 6 months ago, but alas #corona

borkdude 2020-10-14T15:33:38.168800Z

Thanks! Would be cool :)

Stefan T 2020-10-14T17:57:33.170800Z

Hey @borkdude I’ve got another repeatable issue I’ve noticed with the vscode extension, java.lang.IndexOutOfBoundsException is being thrown when you type something invalid, such as adding a comment in the middle of a list, example: step 1: add an empty list

()
step2: add a semicolon inside the list
(;)
results: an error is shown in the clj-kondo output
[Error - 10:56:50 AM] java.lang.IndexOutOfBoundsException
	at clojure.lang.PersistentVector.arrayFor(PersistentVector.java:158)
	at clojure.lang.PersistentVector.nth(PersistentVector.java:162)
	at clojure.lang.RT.nth(RT.java:896)
	at clj_kondo.lsp_server.impl.server$finding__GT_Diagnostic.invokeStatic(server.clj:75)
	at clj_kondo.lsp_server.impl.server$lint_BANG_$fn__11576.invoke(server.clj:132)
	at clojure.core$mapv$fn__8445.invoke(core.clj:6912)
	at clojure.lang.PersistentVector.reduce(PersistentVector.java:343)
	at clojure.core$reduce.invokeStatic(core.clj:6827)
	at clojure.core$mapv.invokeStatic(core.clj:6903)
	at clj_kondo.lsp_server.impl.server$lint_BANG_.invokeStatic(server.clj:124)
	at clj_kondo.lsp_server.impl.server.LSPTextDocumentService.didChange(server.clj:153)
	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
	at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:152)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:187)
	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:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

borkdude 2020-10-14T18:02:16.171700Z

@stefan.toubia Thanks. This issue has been reported in the clj-kondo.lsp repo. The fix is pretty easy, PR welcome if you're up for it