Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run Codiumate Chat in IntelliJ #234

Open
APrajsnar opened this issue May 17, 2024 · 53 comments
Open

Cannot run Codiumate Chat in IntelliJ #234

APrajsnar opened this issue May 17, 2024 · 53 comments

Comments

@APrajsnar
Copy link

image

My settings are:
ide.browser.jcef.sandbox.enable disabled as per instructions:
image

Boot Runtime with JCEF:
image

I tried a couple of them, none of them work.

@ArtsiomCh
Copy link
Collaborator

Thanks for reporting!
What's your IDE and OS version?
Is it Linux, Mac or Win?
Do you do any kind of remote development or on local machine?

@APrajsnar
Copy link
Author

@ArtsiomCh

IDE version is: IntelliJ IDEA 2024.1.1 (Community Edition). Build: #IC-241.15989.150 (April 29 2024)
Windows 11, up-to-date.

I develop locally.

@ulisesac4
Copy link

ulisesac4 commented May 22, 2024

Same problem at local developing on Archlinux. I am using community.

@brunopnogueira92
Copy link

Same problem here ;-)

@JSSjogren
Copy link

Running into the same issue.

JetBrains Rider 2024.1.2
Build #RD-241.15989.179
Windows 11

@kf7mxe
Copy link

kf7mxe commented Jun 21, 2024

Same Issue as well
Jetbrains Intelij IDEA 2024.1.4 (community)
Ubuntu 24.04

@nguyenthdat
Copy link

Same Issue as well
Jetbrains Intellij IDEA 2024.1.4 (Ultimate)
Linux Mint Cinnamon 21.3
Codiumate Team
image

@decryptedchaos
Copy link

Same problem on PyCharm

Even worse on VSCode asks to login in an endless loop

Ubuntu (Variant) 24.04

@sarkaramitabh300
Copy link

Same Problem on Android Studio
Android Studio Koala | 2024.1.1 Patch 1

Build #AI-241.18034.62.2411.12071903, built on July 11, 2024
Runtime version: 17.0.11+0-17.0.11b1207.24-11852314 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.5
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Metal Rendering is ON

Issue:
Codiumate Plugin uses JCEF (Java Chromium Embedded Framework) to create a webview component in the plugin's tool window.
By default, most IntelliJ-based IDEs come with a boot runtime that includes JCEF.
However, Android Studio (and some other versions of IntelliJ-based IDEs) utilize a boot runtime lacking JCEF, which prevents the plugin from loading in these environments.
Also in some cases JCEF could persist but not been initialised.
To address this issue:

  1. Navigate to the Help -> Find Action... and find(type) "Registry". Here disable ide.browser.jcef.sandbox.enable option;
  2. Navigate to the Help -> Find Action... and find(type) "Choose Boot Runtime for the IDE" dialog. Here, you can select a boot runtime equipped with JCEF;
  3. Restart the IDE.
    If issue persist, please file the bug in our GitHub issue tracker or contact support@codium.ai

@ArtsiomCh
Copy link
Collaborator

ArtsiomCh commented Jul 24, 2024

@sarkaramitabh300 linux, mac or win? Aha see it, macOS 14.5

@ArtsiomCh
Copy link
Collaborator

Just checked with Android Studio Koala | 2024.1.1 Patch 1 on Windows and after doing proposed steps Codiumate Chat and Tests panel works

  1. Navigate to the Help -> Find Action... and find(type) "Registry". Here disable ide.browser.jcef.sandbox.enable option;
  2. Navigate to the Help -> Find Action... and find(type) "Choose Boot Runtime for the IDE" dialog. Here, you can select a boot runtime equipped with JCEF;
  3. Restart the IDE.

@sarkaramitabh300
Copy link

It's finally working!

Screenshot 2024-07-24 at 4 53 08 PM

I have completed all three provided suggestions, but they did not work. Then I tried changing the listed JCEF versions. After changing a few and restarting several times, this version—17.0.11+1-1207.30-jcef—finally worked.

@ArtsiomCh, thanks for the quick response. I hope my answer can help someone.

@ArtsiomCh
Copy link
Collaborator

@lyx3314844 seems like IDE can't let plugin to save/retrieve auth token/password (generated by us for you).
Please check in Settings that passwords are saved in KeePass (and not "forget after restart").
image
PS Also sometimes that storage became broken for whatever reason :( and you need to clean it (like it shown in screenshot)

@ArtsiomCh
Copy link
Collaborator

We use Google services for auth/login
Please make sure google.com is accessible from your computer.

@ArtsiomCh
Copy link
Collaborator

Can you open google.com in the browser?

@ArtsiomCh
Copy link
Collaborator

ArtsiomCh commented Jul 30, 2024

@lyx3314844 we're investigating your issue. No needs to ping me every few hours.
PS also you're pinging wrong person, my account is @ArtsiomCh

@brunopnogueira92
Copy link

I've tried all the suggestions above.
I've changed the JCEF several times and restarted it several times and nothing.
I'm not using a VPN.

@ArtsiomCh
Copy link
Collaborator

@brunopnogueira92 please create separate issue with description (what's is the problem? and the way to reproduce it) with some logs/screenshots attached if exist.

@brunopnogueira92
Copy link

@brunopnogueira92 please create separate issue with description (what's is the problem? and the way to reproduce it) with some logs/screenshots attached if exist.

The error is exactly the same as the one reported in this ticket, but I can open another ticket with all the information requested.

@ArtsiomCh
Copy link
Collaborator

@brunopnogueira92
OS?
IDE version?
plugin version?
and you see exactly this when run the plugin?
image

@ArtsiomCh
Copy link
Collaborator

ArtsiomCh commented Jul 30, 2024

@lyx3314844 lets move to #254

@brunopnogueira92
Copy link

brunopnogueira92 commented Jul 30, 2024

@brunopnogueira92 OS? IDE version? plugin version? and you see exactly this when run the plugin? image

OS - Windows 11
IDE Version - IntelliJ IDEA 2024.1.4 (Community Edition)
Build #IC-241.18034.62, built on June 20, 2024
Runtime version: 17.0.11+1-b1207.30 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.browser.jcef.enabled=false
ide.browser.jcef.sandbox.enable=false
ide.experimental.ui=true
Non-Bundled Plugins:
com.intellij.properties.bundle.editor (241.14494.150)
com.xrath.plugin.fold (1.5.0)
Docker (241.18034.82)
google-java-format (1.22.0.0)
org.jetbrains.jumpToLine (0.1.16)
Lombook Plugin (241.18034.62)
Code Iris (2.4-beta)
com.github.lppedd.idea-return-highlighter (0.8.3)
com.yiycf.plugins.mavenDependencyHelper (2.5)
izhangzhihao.rainbow.brackets.lite (1.1.0)
com.haulmont.jpab (2024.1.0-241)
com.microsoft.tooling.msservices.intellij.azure (3.90.0-2024.1)
com.github.copilot (1.5.17.6356)
com.microsoft.vso.idea (1.162.2)
zielu.gittoolbox (500.2.12+233)
mobi.hsz.idea.gitignore (4.5.3)
org.sonarlint.idea (10.7.0.78874)
codiumai.codiumai (0.9.1)
MavenRunHelper (4.28.0-IJ2022.2)
Kotlin: 241.18034.62-IJ
Plugin Version - 0.9.1
you see exactly this when run the plugin?
Basically, I've made all the changes requested, I've changed the JCEF several times and restarted it several times and I still see this in chat. (It only happens in Chat)
image
image
image

@ArtsiomCh
Copy link
Collaborator

@brunopnogueira92 seems like you have JCEF manually disabled (accidently?) in settings
image
Please enable it, and also would suggest to review/revert all changes there manually made (highlighted in blue)

@ArtsiomCh
Copy link
Collaborator

What else do you need me to provide

@lyx3314844 lets move to #254

@brunopnogueira92
Copy link

@brunopnogueira92 seems like you have JCEF manually disabled (accidently?) in settings image Please enable it, and also would suggest to review/revert all changes there manually made (highlighted in blue)

Thanks for your help.
For some reason, every time I set that option you mention to "true", I restart and it goes back to false.
Can you give me any tips on how to change this value?
I've already opened the IDE as administrator and it didn't work.

@ArtsiomCh
Copy link
Collaborator

May be some other changed option (marked in blue) interfere with it?...
Also may be try another JBR (with jcef)?...

@ArtsiomCh
Copy link
Collaborator

Aha, after you set it to true. You need to click outside of it, not just immediately press restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants