This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-27
Channels
- # announcements (1)
- # beginners (54)
- # biff (7)
- # calva (6)
- # cider (7)
- # clojure (9)
- # clojure-art (3)
- # clojure-europe (27)
- # clojure-gamedev (16)
- # clojurescript (15)
- # editors (2)
- # emacs (1)
- # events (1)
- # fulcro (24)
- # gratitude (23)
- # humbleui (6)
- # lsp (9)
- # malli (3)
- # off-topic (52)
- # pathom (5)
- # portal (1)
- # rdf (9)
- # reveal (3)
- # shadow-cljs (52)
- # specter (2)
- # tools-build (9)
- # tools-deps (11)
- # tree-sitter (1)
- # xtdb (21)
Hey.
Do you think that 9: Create test for 'hi'
should also create the test file itself if it doesn't exist? It doesn't create the file if it doesn't exist but yes, it adds the test itself to the file :thinking_face:
I get this message when I choose that option: https://github.com/clojure-lsp/clojure-lsp/blob/7a23bac09cafad80c7e82fcdac7cb7558a15fe79/lib/src/clojure_lsp/refactor/transform.clj#L917
Actually it should create the test file as the logic is there but for some reason it doesn't do that for me 😕 https://github.com/clojure-lsp/clojure-lsp/blob/7a23bac09cafad80c7e82fcdac7cb7558a15fe79/lib/src/clojure_lsp/refactor/transform.clj#L880
I think that the nature of the code in that link means that it's my nvim
that doesn't display that unsaved file that LSP server marks as edited :thinking_face:
So there is an imaginary file but it's not saved into hard drive and therefore it's not registered that it exists :thinking_face:
Makes sense, sounds like a bug on nvim, clojure-lsp already returns an edit saying that there is a new document, the editor should create a buffer with that( not necessarily save the buffer file on disk) but create and display to user
It could also be an error in my FZF config as it lists files in git repo only (this is what I configured). And NvimTree lists only files on disk (I think). Probably these could be the problems :thinking_face:
I created this one:
https://github.com/neovim/nvim-lspconfig/issues/2261
The buffer doesn't show up in :ls
menu either.