clojure-lsp / clojure-lsp-intellij

Intellij Plugin for Clojure & ClojureScript development via Language Server (LSP) made in Clojure
https://clojure-lsp.io
MIT License
83 stars 6 forks source link

"Create namespace and function" not working #51

Closed mefryar closed 3 months ago

mefryar commented 4 months ago

Describe the bug The "Code Action" option "Create namespace and function" does not create a new namespace.

To Reproduce Steps to reproduce the behavior:

  1. Clone project ericdallo/clojure-sample
  2. Open clojure-sample.lsp.code-actions.d
  3. Create code-actions.e/code-action-e-var
  4. Place cursor at beginning of line, use ⌥ + Enter to open Code Actions
  5. Click "Create namespace 'code-actions.e' and function 'code-action-e-var'"

Expected behavior New namespace clojure-sample.lsp.code-actions.e is created with (def code-action-e-var).

Screenshots

image

Desktop (please complete the following information): clojure-lsp-intellij: 2.4.5 clojure-repl-intellij: 1.3.1 IntelliJ IDEA: 2024.1 macOS: Sonoma 14.4.1

IntelliJ Log Nothing is logged to idea.log.

ericdallo commented 3 months ago

This should be fixed on next release