clojure-lsp / clojure-lsp

Clojure & ClojureScript Language Server (LSP) implementation

Home Page:https://clojure-lsp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JetBrains Exception when attemping to refactor/rename a file

codewriter3000 opened this issue · comments

commented

Describe the bug
I get an exception leading me to this tool every time I attempt to rename a file.

To Reproduce
Steps to reproduce the behavior:

  1. Click on a file.
  2. Either hit Shift + F6 (the shortcut for refactoring), or right-click on it to bring up the tooltip to rename it.

Expected behavior
A dialog for the new file name.

Log - client <-> server
n/a
Log - clojure-lsp
java.lang.StackOverflowError
	at com.intellij.openapi.util.registry.Registry.getInstance(Registry.java:180)
	at com.intellij.openapi.util.registry.Registry.get(Registry.java:45)
	at com.intellij.openapi.util.registry.Registry.is(Registry.java:58)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.reportValueProvidedByRulesUsage(PreCachedDataContext.java:250)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getDataInner(PreCachedDataContext.java:221)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext$InjectedDataContext.lambda$getDataInner$0(PreCachedDataContext.java:387)
	at com.intellij.openapi.actionSystem.InjectedDataKeys.getInjectedData(InjectedDataKeys.java:57)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext$InjectedDataContext.getDataInner(PreCachedDataContext.java:387)
	at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getData(PreCachedDataContext.java:174)
	at com.intellij.openapi.actionSystem.DataContext.getData(DataContext.java:57)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invokeStatic(rename.clj:48)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invoke(rename.clj:45)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invokeStatic(rename.clj:48)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invoke(rename.clj:45)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invokeStatic(rename.clj:48)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invoke(rename.clj:45)
	at com.github.clojure_lsp.intellij.extension.rename$_invoke.invokeStatic(rename.clj:48)
...
(this goes on for a pretty long time)

User details (please complete the following information):

  • OS: Windows 11
  • Editor: PyCharm 2023.3
  • Version: 1.14.9

THanks for the report @codewriter3000, This should be a issue on https://github.com/clojure-lsp/clojure-lsp-intellij, would you mind opening it there?