Skip to content

Cursive Installed (2026.2-eap1-261) + Scala: Project tool window is missing many directories. #3102

@gamlerhart

Description

@gamlerhart

I've Cursive 2026.2-eap1-261 and the Scala plugin installed (2026.1.20).

Recently this creates a bug, where many directories do not show up in the Project tool window.
This used to work without issues. It seems a new, weird interaction between the two plugins.

I see this exception in the logs when this happens:

Caused by: java.io.IOException: Expected directory instead of file: file:///home/roman/dev/devxp-repo/activity-streams/package.mill
  basePath = /home/roman/dev/devxp-repo/activity-streams/package.mill
  relativePath = deps.edn
        at com.intellij.openapi.vfs.VirtualFileUtil.findFileOrDirectory(VirtualFileUtil.kt:331)
        at com.intellij.openapi.vfs.VirtualFileUtil.findFile(VirtualFileUtil.kt:145)
        at cursive.build.BuildSystemProjectsManager$moduleProjectFile$$inlined$withReadAction$1.compute(Application.kt:73)
        at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runReadAction(NestedLocksThreadingSupport.kt:854)
        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:1104)
        at cursive.build.BuildSystemProjectsManager.moduleProjectFile(BuildSystemManager.kt:361)
        at cursive.deps.DepsSupportKt.isDepsModule(DepsSupport.kt:476)
        at cursive.deps.DepsOrderEnumerationHandlerFactory.isApplicable(DepsSupport.kt:392)
        at com.intellij.openapi.roots.impl.OrderEnumeratorBase.getCustomHandlers(OrderEnumeratorBase.java:71)
        at com.intellij.openapi.roots.impl.ModuleOrderEnumerator.forEach(ModuleOrderEnumerator.java:40)
        at com.intellij.openapi.roots.impl.OrderEnumeratorBase.forEachLibrary(OrderEnumeratorBase.java:363)
        at org.jetbrains.plugins.scala.project.ScalaModuleSettings$.$anonfun$apply$1(ScalaModuleSettings.scala:240)
        at scala.Option.orElse(Option.scala:477)
        at org.jetbrains.plugins.scala.project.ScalaModuleSettings$.apply(ScalaModuleSettings.scala:232)

It seems that the Cursive search for deps.edn and Scala's search for '.mill' files somehow interact badly.

Question: Is there a way to disable Cursive on a per-project basis, that would probably enough for me as a work around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions