Fork me on GitHub
#cursive
<
2021-04-30
>
jacekschae17:04:26

What is the way to move a package and rename ns correctly? I felt like this was working yet now I can’t get it to work? Any ideas?

cfleming21:04:07

IntelliJ 2021.1.1 is out. As described in this blog post, it had a bunch of index corruption bugs which have possibly provoked the problems that some users have been having. @katox I’d be interested to know if this fixes the need to invalidate constantly that you were having. https://blog.jetbrains.com/idea/2021/04/intellij-idea-2021-1-1/

katox07:05:22

Oh, thanks for pointing that out. Hopefully it'll go away. I'll update and keep an eye on it for a while.

gklijs05:05:40

I think I had some. At least cursive was giving errors, even for non Clojure projects.

katox17:05:40

Something is still not quite right. For instance I deleted a file (+ committed the change into git) and after about an hour the indexer wanted to access it anyway:

java.lang.Throwable: Invalid file: file:///home/katox/...rules.clj (invalid)
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:161)
	at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:351)
	at cursive.psi.impl.synthetic.ClNamespace.lambda$getContainingFile$0(ClNamespace.java:95)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:830)
	at cursive.psi.impl.synthetic.ClNamespace.getContainingFile(ClNamespace.java:95)
	at org.jetbrains.idea.maven.dom.MavenDomUtil.isMavenFile(MavenDomUtil.java:110)
	at org.jetbrains.idea.maven.dom.MavenModelDocumentationProvider.getMavenElement(MavenModelDocumentationProvider.java:106)
	at org.jetbrains.idea.maven.dom.MavenModelDocumentationProvider.getMavenElementDescription(MavenModelDocumentationProvider.java:61)
	at org.jetbrains.idea.maven.dom.MavenModelDocumentationProvider.getElementDescription(MavenModelDocumentationProvider.java:55)
	at com.intellij.psi.ElementDescriptionUtil.getElementDescription(ElementDescriptionUtil.java:17)
	at com.intellij.usageView.UsageViewUtil.getType(UsageViewUtil.java:59)
	at com.intellij.find.findUsages.PsiElement2UsageTargetAdapter.getLongDescriptiveName(PsiElement2UsageTargetAdapter.java:244)
	at com.intellij.find.impl.ShowRecentFindUsagesGroup.getChildren(ShowRecentFindUsagesGroup.java:43)
	at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$collectActions$1(GotoActionModel.java:388)
	at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:64)
	at com.intellij.ide.util.gotoByName.GotoActionModel.collectActions(GotoActionModel.java:388)
	at com.intellij.ide.util.gotoByName.GotoActionModel.collectActions(GotoActionModel.java:400)
	at com.intellij.ide.util.gotoByName.GotoActionModel.collectActions(GotoActionModel.java:400)
	at com.intellij.ide.util.gotoByName.GotoActionModel.collectActions(GotoActionModel.java:400)
	at com.intellij.ide.util.gotoByName.GotoActionModel.buildActions(GotoActionModel.java:114)
	at com.intellij.ide.util.gotoByName.GotoActionModel.<init>(GotoActionModel.java:107)
	at com.intellij.ide.util.gotoByName.GotoActionModel.<init>(GotoActionModel.java:99)
	at com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor.<init>(ActionSearchEverywhereContributor.java:55)
...

katox11:05:54

Other than that I had no corrupted indexes since the bugfix update.

cfleming20:05:16

Great to hear it’s improved. That’s still an IntelliJ bug there, hopefully they’ll fix more of them in future releases.

cfleming20:05:43

If you can be bothered, it would be useful to file an issue in YouTrack about that.

👍 3