eca-intellij icon indicating copy to clipboard operation
eca-intellij copied to clipboard

ECA Window won't launch [IntelliJ]

Open hlship opened this issue 6 months ago • 4 comments

Apropos of nothing (I'm aware of) my ECA window will no longer launch. It's blank. I executed "Restart server", then "Reload ECA Webview" and got this exception:

java.lang.IllegalStateException: Attempting to call unbound fn: #'cursive.inspections.interop/functional-interface-can-be-fn
	at clojure.lang.Var$Unbound.throwArity(Var.java:47)
	at clojure.lang.AFn.invoke(AFn.java:40)
	at clojure.lang.Var.invoke(Var.java:395)
	at cursive.api.DelayedFn.invoke(DelayedFn.java:41)
	at cursive.inspections.ClListInspection$buildVisitor$1.visitList(Inspections.kt:73)
	at cursive.psi.impl.list.ClListImpl.accept(ClListImpl.java:25)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.visitElement(InspectionRunner.java:616)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processContext$19(InspectionRunner.java:416)
	at com.intellij.codeInsight.daemon.impl.InspectionVisitorOptimizer.acceptElements(InspectionVisitorOptimizer.java:208)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.processContext(InspectionRunner.java:414)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$7(InspectionRunner.java:180)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:901)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1237)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$15(InspectionRunner.java:387)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:259)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$16(InspectionRunner.java:386)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:158)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:150)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$17(InspectionRunner.java:384)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:129)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:118)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.executeInImpatientReadAction(InspectionRunner.java:384)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$8(InspectionRunner.java:173)
	at com.intellij.concurrency.ApplierCompleter.processArrayItem(ApplierCompleter.java:121)
	at com.intellij.concurrency.ApplierCompleter.processArray(ApplierCompleter.java:221)
	at com.intellij.concurrency.ApplierCompleter.execAll(ApplierCompleter.java:171)
	at com.intellij.concurrency.ApplierCompleter.lambda$exec$0(ApplierCompleter.java:110)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:901)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1237)
	at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$2(ApplierCompleter.java:153)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:717)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:792)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:748)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:716)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:75)
	at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:164)
	at com.intellij.concurrency.ApplierCompleter.lambda$wrapAndRun$1(ApplierCompleter.java:145)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:259)
	at com.intellij.concurrency.ApplierCompleter.wrapAndRun(ApplierCompleter.java:145)
	at com.intellij.concurrency.ApplierCompleter.exec(ApplierCompleter.java:113)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

This is after I restarted IntelliJ.

I'll go clear caches and try a restart again.

hlship avatar May 12 '26 18:05 hlship

Still have a blank space for my ECA webview. I've tried restarting the server and reloading the webview again.

ECA Server Log:

[server] Starting server...
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by io.opentelemetry.internal.shaded.jctools.util.UnsafeAccess (file:/Users/howard.lewisship/Library/Application%20Support/JetBrains/IntelliJIdea2025.3/plugins/eca-intellij/eca)
WARNING: Please consider reporting this to the maintainers of class io.opentelemetry.internal.shaded.jctools.util.UnsafeAccess
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
:db/read-cache 2ms
[DB] Loading from global-cache caches...
:db/read-cache 8ms
[DB] Loading from workspace-cache caches...
:eca/initialize 13ms
:eca/initialized 0ms
👤📤   -->MCP:Request [158f3f6a-18f2-4d23-b79f-a59ef6630d1d] initialize
👤📤   -->MCP:Request [2e2b7a3e-1acc-4c15-a432-7d00cfe545cd] initialize
[MODELS] Provider 'google': /models endpoint returned status 400
[MODELS] Provider 'google': Using models.dev provider-id fallback (url 'https://generativelanguage.googleapis.com/v1beta/openai' not matched)
[MODELS] Provider 'google': Loaded 38 models from models.dev
[MODELS] Provider 'anthropic': /models endpoint returned status 401
[MODELS] Provider 'anthropic': Using models.dev provider-id fallback (url 'https://api.anthropic.com' not matched)
[MODELS] Provider 'anthropic': Loaded 23 models from models.dev
[MODELS] Provider 'openai': /models endpoint returned status 401
[MODELS] Provider 'openai': Using models.dev provider-id fallback (url 'https://api.openai.com' not matched)
[MODELS] Provider 'openai': Loaded 52 models from models.dev
[MODELS] Provider 'github-copilot': /models endpoint returned status 400
[MODELS] Provider 'github-copilot': Loaded 19 models from models.dev
[MODELS] Fetched model catalogs from 4 providers in 421.5ms
[LLM-API] Default LLM model 'nubank-anthropic/opus-4.6' decision ':config-default-model'
[MCP] [nu-mcp] :repositories detected in user-level profiles! [:user] 
[MCP] [nu-mcp] See https://wiki.leiningen.org/Repeatability
[MCP] [nu-mcp] May 12, 2026 11:05:41 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
[MCP] [nu-mcp] INFO: Invalid locale provider adapter "COMPAT" ignored.
[MCP] [nu-mcp] May 12, 2026 11:05:41 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
[MCP] [nu-mcp] WARNING: COMPAT locale provider has been removed
[MCP] [nu-mcp] WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-vals
[MCP] [nu-mcp] WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-keys
[MCP] [nu-mcp] WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-vals
[MCP] [nu-mcp] WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-keys
[MCP] [nu-mcp] WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.passes, being replaced by: #'clojure.tools.analyzer.utils/update-vals
[MCP] [nu-mcp] WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.passes.uniquify, being replaced by: #'clojure.tools.analyzer.utils/update-vals
[MCP] [nu-mcp] 2026-05-12T18:05:47.181769Z [INFO] [nu-mcp] - MCP server 1.12.0 started with modules [:development]2026-05-12T18:05:47.182462Z [ERROR] [nu-mcp] - ECHO logging error: Token does not exists for account :data and env :prod. Use nucli for refreshing the token.
[MCP] [nu-mcp] 
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/prompts/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/prompts/list_changed"}
[MCP] [nu-mcp] 11:05:47.232 [pool-1-thread-1] INFO  i.m.server.McpAsyncServer - Client initialize request - Protocol: 2025-11-25, Capabilities: ClientCapabilities[experimental=null, roots=null, sampling=null, elicitation=null], Info: Implementation[name=ECA, title=Editor Code Assistant, version=0.133.5]
[MCP] [nu-mcp] 11:05:47.238 [pool-1-thread-1] WARN  i.m.server.McpAsyncServer - Client requested unsupported protocol version: 2025-11-25, so the server will suggest the 2024-11-05 version instead
👤📤   MCP Notification {:method "notifications/initialized", :params {}, :jsonrpc "2.0"}
👤📤   -->MCP:Request [f12ec74b-5bba-49c7-9164-9c4ef35c9cd6] tools/list
👤📤   -->MCP:Request [f3c50317-2460-48bb-af41-f37a87baa6f3] prompts/list
👤📤   -->MCP:Request [c9c76647-44ce-4f47-b4ab-0c392c5ee487] resources/list
[MCP] Started MCP server nu-mcp
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📩   MCP Notification {:jsonrpc "2.0", :method "notifications/tools/list_changed"}
👤📤   MCP Notification {:method "notifications/initialized", :params {}, :jsonrpc "2.0"}
👤📤   -->MCP:Request [4f125787-2aa8-4bef-a276-f62bb0638dfa] tools/list
👤📤   -->MCP:Request [5dccde26-7ede-4c6d-83c6-edd0ee94ef6d] prompts/list
👤📤   -->MCP:Request [e2ee1bd0-b57b-43a3-8b05-3987b74d189e] resources/list
[MCP] Started MCP server clojure-mcp

hlship avatar May 12 '26 18:05 hlship

@hlship the first exception seems to be related to cursive, not eca 🤔 about webview not rendering, that's weird, even restarting eca, what about restarting intellij? never saw this behavior, I'd say is some intellij issue, maybe some error in intellij logs?

ericdallo avatar May 12 '26 18:05 ericdallo

@ericdallo, do you have both ECA and Cursive plugins installed? I sometimes see the same issue as Howard, and I do have Cursive and ECA installed.

devurandom avatar May 15 '26 19:05 devurandom

@devurandom can you try latest ECA please? Just tested with howard and seems to be working well, LMK if still not working with 0.28.12

ericdallo avatar May 18 '26 16:05 ericdallo