This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-06
Channels
- # babashka (101)
- # beginners (47)
- # biff (7)
- # calva (36)
- # clj-kondo (19)
- # clojure (11)
- # clojure-europe (1)
- # clojurescript (4)
- # conjure (4)
- # core-typed (3)
- # cursive (24)
- # emacs (22)
- # events (4)
- # gratitude (1)
- # introduce-yourself (1)
- # malli (27)
- # meander (5)
- # off-topic (101)
- # portal (5)
- # shadow-cljs (26)
- # tools-build (4)
- # tools-deps (3)
- # vim (8)
- # xtdb (13)
Is everyone getting tab completion on all there projects big and small? I assumed my suffering was cljs based, but i'm on a large clojure project now and i can't get edn/* to tab complete anything. files saved, ns loaded. this same thing works fine on a smaller toy project.
intelliji does give tab completion in the same exact setting.
edn/* TAB -> edn/read-string edn/read
I have it installed yes.
I'll pay money if someone can help me fix this. I'm beyond frustrated by it.
Might be that clojure-lsp takes a long time to analyze your project
could be, how would i test that idea? I mean, it never offers the functions no matter how long i wait. This works in emacs on smaller projects though. And it works in calva which i believe uses lsp to get the completion. That's why i'm asking if people are constantly getting this behavior, because i just might want to follow suit rather then try and fix this. Because i'm using stable widely adopted tools and if it's not working i assume it's a very hard problem to solve.
Not gonna lie, I also have problems with lsp in a large project
One thing to try would be to just run the clojure-lsp binary in a terminal in the project root
If lsp was the bottle neck wouldn't it also not work in vs code then? isn't that what powering the completion there?
yeah, i'm getting code completion options in vs code without a repl.
ok, so i get completion (so far) when i narrow the lsp workspace more. Before /.lsp /backend/ /frontend/ Now its /backend/.lsp i really want lsp to span the whole directory. I feel like i have gone through this pain before and the lsp docs will probably have the answer here...
probably relevant https://clojure-lsp.io/troubleshooting/#folders-not-being-analyzedlinted
Additionaly, i might be wrong in my thinking here. I think i was hoping LSP would help me rename keywords across platforms (e.g fe and be) but 1. i can do that with text search replace just as easily. 2. For all other cases it's actually the wrong thing. e.g if i rename the fn foo on the fe i clearly don't necessarily want it renamed on the be. That being said, i'm sure there is a way to share lsp configuration.
I guess the issue is that text search replace won't help with aliased keywords, but that's a fairly small subset of things...
You can also try eglot
, for confirming if the issue is in the client or in the server (or neither of them)
My problems are related to a monorepo as well
Hello, for clean es6 development, which mode is the best, javascript-mode, js2-mode, js3-mode, ... ?
I'd like to know as well
Not sure if it is the best, but I use a combination of js2-mode, web-mode, json-mode and tide. https://github.com/DavidVujic/my-emacs-config