sourcegraph / jetbrains

Apache License 2.0
67 stars 22 forks source link

Can't use Cody on PhpStorm (Windows 11 VM) #234

Closed jdorfman closed 9 months ago

jdorfman commented 9 months ago

Installation information

PhpStorm 2023.3.2 Build #PS-233.13135.108, built on December 21, 2023 Licensed to Sourcegraph / Justin Dorfman You have a perpetual fallback license for this version. Subscription is active until December 14, 2024. Runtime version: 17.0.9+7-b1087.9 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 4 Registry: run.processes.with.pty=TRUE ide.experimental.ui=true Non-Bundled Plugins: com.sourcegraph.jetbrains (5.2.15221)

Running on a VM

(optional) Error message or idea.log output

2023-12-28 08:55:45,217 [  29062]   INFO - #c.i.x.Html5SchemaProvider - HTML5_SCHEMA_LOCATION = C:/Users/justindorfman/AppData/Local/Programs/PhpStorm/lib/app.jar!/resources/html5-schema/html5.rnc
2023-12-28 08:55:56,134 [  39979]   WARN - #c.i.s.ComponentManagerImpl - com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable initializer requests com.intellij.util.LocaleSensitiveApplicationCacheService instance
2023-12-28 08:55:57,520 [  41365]   WARN - #o.j.p.t.TextMateService - Cannot find referenced file `./language-configuration.json` in bundle `C:\Users\justindorfman\AppData\Local\Programs\PhpStorm\plugins\textmate\lib\bundles\mdx`
2023-12-28 08:56:17,664 [  61509]   WARN - #c.i.u.x.Binding - no accessors for com.intellij.ide.util.TipsUsageManager$State
2023-12-28 08:56:22,061 [  65906]   INFO - #c.i.u.g.s.GistStorageImpl - Cleaning old huge-gists dirs from [C:\Users\justindorfman\AppData\Local\JetBrains\PhpStorm2023.3\caches\huge-gists] ...
2023-12-28 08:56:22,065 [  65910]   INFO - #c.i.u.g.s.GistStorageImpl - Cleaning old huge-gists dirs finished
2023-12-28 08:56:40,648 [  84493]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-12-28 08:56:41,114 [  84959]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=untitled, containerState=COMPONENT_CREATED, componentStore=C:\Users\justindorfman\PhpstormProjects\untitled)RunManager took 44 ms
2023-12-28 08:58:41,208 [ 205053]   WARN - #com.sourcegraph.cody.CodyToolWindowContent - Error fetching commands from agent
java.lang.NullPointerException: Cannot invoke "com.sourcegraph.cody.agent.CodyAgentServer.recipesList()" because "server" is null
    at com.sourcegraph.cody.CodyToolWindowContent$loadCommands$1.invoke(CodyToolWindowContent.kt:197)
    at com.sourcegraph.cody.CodyToolWindowContent$loadCommands$1.invoke(CodyToolWindowContent.kt:192)
    at com.sourcegraph.cody.CodyToolWindowContent.loadCommands$lambda$5(CodyToolWindowContent.kt:192)
    at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
    at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
    at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
    at com.sourcegraph.cody.CodyToolWindowContent.loadCommands(CodyToolWindowContent.kt:192)
    at com.sourcegraph.cody.CodyToolWindowContent.refreshRecipes$lambda$4(CodyToolWindowContent.kt:188)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:840)
2023-12-28 08:59:14,016 [ 237861]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2023-12-28 08:59:14,104 [ 237949]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=untitled, containerState=COMPONENT_CREATED, componentStore=C:\Users\justindorfman\PhpstormProjects\untitled)RunManager took 21 ms
2023-12-28 09:00:20,743 [ 304588]   INFO - #c.i.m.l.c.license - AI Pro license is not available, AI Lite licenses is available
2023-12-28 09:00:20,743 [ 304588]   INFO - #c.i.m.l.c.g.GrazieJbaAuthService - Information about license was changed...
2023-12-28 09:00:20,743 [ 304588]   INFO - #c.i.m.l.c.g.GrazieJbaAuthService - Selected license was changed -> log out from AI Platform
2023-12-28 09:00:30,904 [ 314749]   INFO - #c.i.m.l.c.AIAssistantAllowedLevelService - Updating AIAssistantKillSwitch level: IdeLicense
2023-12-28 09:00:30,910 [ 314755]   INFO - #c.i.m.l.c.AIAssistantAllowedLevelService - Updating AIAssistantKillSwitch level: IdeLicense
2023-12-28 09:00:34,117 [ 317962]   INFO - #c.i.e.w.WslDistributionManager - WSL is disabled in the system
2023-12-28 09:01:14,784 [ 358629]   WARN - #com.sourcegraph.cody.CodyToolWindowContent - Agent is disabled, can't use chat.

Steps to reproduce

  1. Open PhpStorm
  2. Login
  3. Click commands
  4. See "error fetching commands, check your connection..."
  5. Try chat
  6. See "Cody is not able to reply at the moment. This is a bug, please report an issue to..."

Expected behavior

  1. Install PhpStorm on a Windows 11 VM (Parallels)
  2. Install Cody
  3. Login to Cody
  4. Use Cody with out any errors/issues

image

mkondratek commented 9 months ago

I installed PhpStorm on my Windows 11 machine with the same PhpStrom version & the same plugin version. The commands tab loads properly for me.

I wanted to try the Parallels VM but it turned out to be a paid.

We've seen the issue with the commands tab not loading before but it has been fixed here. It should work properly in 5.2.15221.

@jdorfman could you please double-check the steps? Also, please make sure that you restart the IDE after installing the plugin/update. If you have the IDE already opened please do Files > Invalidate Caches... > Invalidate and Restart.

jdorfman commented 9 months ago

@mkondratek it must be a VM issue. Tried with GoLand and still had the same issues. Going to close this.