This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-29
Channels
- # asami (1)
- # babashka (20)
- # beginners (3)
- # biff (1)
- # calva (5)
- # clj-kondo (68)
- # clojure (6)
- # clojure-europe (70)
- # clojure-losangeles (4)
- # clojurescript (1)
- # cursive (6)
- # exercism (1)
- # fulcro (3)
- # hyperfiddle (23)
- # introduce-yourself (1)
- # kaocha (1)
- # lambdaisland (8)
- # lsp (6)
- # off-topic (24)
- # pathom (24)
- # specter (1)
- # tools-deps (4)
- # xtdb (4)
what command will associate a project with a workspace, given i think of the "workspace" as a directory where i want lsp to watch code and that directory is has been added via "lsp-workspace-folders-add"? I ran "lsp-workspace-open" and "lsp-workspace-restart" and i'm told the "buffer isn't associated with a workspace" but the buffer is showing me the directory that was added. Basically I feel like if i accidental don't add a workspace correctly i have to shut down emacs and restart it to get that initial prompt. I have a directory that has several projects (deps.edn at the roots of the subdirectories e.g root/backend/deps.edn root/frontend/deps.edn and i want to be separate lsp projects so lsp doesn't have more code to potential get tripped up by.
ok, the story improves if I make sure i'm in emacs clojure mode, and not just in a directory buffer. It's hard to tell where the boundaries are sometimes.
and i can get the information about the lsp workspace from lsp-clojure-server-info
.
so usually I just use lsp-workspace-folders-remove
to quickly check the workspaces that exist and/or remove a wrong project root, and lsp
to get the prompt if the buffer is not in a imported root
Thanks Eric, it's very useful to know i can get the prompt again using the lsp
command.