Closed archenroot closed 2 years ago
Hey there,
this error occurs because your docker version does not support the --no-cache option. So either it is not up to date and you can update it, or you could remove the flag and clean docker images before every build.
If you want to integrate JCEF in your plugin (and not modify it), have you considered to use jcefmaven from this organization? It saves you the building and integration process on many platforms and should run on gentoo too (even though it has not been tested there). I suggest you could give it a try ;)
@archenroot JCEF seems to already be integrated with IntelliJ. Third-party plugins can use the bundled jcef using the jetbrains api for it: https://plugins.jetbrains.com/docs/intellij/jcef.html#enabling-jcef
If JCEF is not included with your intellij distribution you can still try to use jcefmaven. If its not included, I guess that is a gentoo thing.
@FriwiDev - well on my Gentoo Linux I get:
4:21 AM Not Support JCEF: Your environment does not support JCEF, cannot use Markdown Editor
This link really doesn't solve the issue: https://plugins.jetbrains.com/docs/intellij/jcef.html#enabling-jcef It just says that this subsystem is built in Chrome dev tools...
But I found this topic: https://intellij-support.jetbrains.com/hc/en-us/articles/360016421559-JCEF-the-missing-libs-problem-on-Linux
which states that there should be 2 files:
Now that is something I checked my system and I can only find libcef.so as Citrix ICA client dependency on my system...
zeus ~ # locate libcef
/data/devel/install/linuxx64-21.12.0.18/linuxx64/linuxx64.cor/cef/libcef.so
/home/zangetsu/ICAClient/linuxx64/cef/libcef.so
/usr/lib64/syslog-ng/libcef.so
still the second one is missing from my system libjcef.so
there is resolution to:
Resolve
Check https://pkgs.org for the correct package name and then install it:
$ sudo apt-get install libxss1
You can also search for the package name using aptitude:
$ sudo aptitude search libXss
(if aptitude is not installed, use sudo apt-get aptitude)
But above libxss1 is actually a screensaver lib: https://packages.debian.org/sid/libxss1 And quick search for libXss is similar to libxss1, all related to screensaver: https://pkgs.org/search/?q=libXss
So, it seems I need to look here to get this working: https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding
Now I am trying to build this repo: https://bitbucket.org/chromiumembedded/java-cef/src, one finding is that I cannot for some reason raise issue, as its incompatible with python 3.9 due to base64 decode issue:
6FromBase64EncryptionKey
decoded_bytes = base64.decodestring(csek_encryption_key)
AttributeError: module 'base64' has no attribute 'decodestring'
Now I got into situation to have those missing jcef libs available on my system, probably just need to symlink them into /usr/lib64 space
[05:30:55] zangetsu@zeus $ ~/tmp/src/jcef_build master ls native/Release/
chrome_100_percent.pak icudtl.dat libEGL.so libvk_swiftshader.so resources.pak v8_context_snapshot.bin
chrome_200_percent.pak jcef_helper libGLESv2.so libvulkan.so.1 snapshot_blob.bin vk_swiftshader_icd.json
chrome-sandbox libcef.so libjcef.so locales swiftshader
I created symlinks into /usr/lib64 for both libjcef.so and libcef.so files, but that is not enogh it seem... still getting: 5:36 AM Not Support JCEF: Your environment does not support JCEF, cannot use Markdown Editor
Additionally I have found this link: https://confluence.jetbrains.com/pages/viewpage.action?pageId=221478946
@archenroot I am not sure that I can help you with your problem here. First of all, there are differences between the main JCEF library and the fork that JetBrains uses as JetbrainsCEF. Therefore I'd not be surprised if compiling using this repository against JetbrainsCEF failed. For your second step - installing your compiled copy in your installation - I think that there will most likely be some hard-coded integration happening within IntelliJ, so there is probably no way (without modifications to Jetbrains binaries) to install JCEF in IntelliJ on Gentoo. So you will probably need to wait until either Jetbrains supports Gentoo or find a way to create support yourself. This repository may be limited in what it can do for you, as it does not compile the JCEF you are looking for. Linking the shared libraries as you tried above will never be enough though, as CEF also requires a lot of resource files.
Thank you very much. Actually I contacted Intellij support and got response: https://intellij-support.jetbrains.com/hc/en-us/requests/3757991?page=1
I was originally running graalvm and by reseting IDE VM to default there appear thos so files on my system: zeus /var/log # locate jcef.so /home/zangetsu/.jbr/jbr_dcevm-11_0_12-linux-x64-b1504.27/lib/libjcef.so /home/zangetsu/.jbr/jbr_jcef-11_0_12-linux-x64-b1504.27/lib/libjcef.so
Now the error dissapeared about missing JCEF, but still markdown plugin showing no available interpreter which is seocndary issue which i need to resolve with Intellij as well.
Still thank you very much for your thoughts and hints. These thinks can be tricky, eg. mainstream vs fork versions, how to integrate, etc.
I still don't much understand what is so special on this JCEF, that it won't be installed alongside with Intellij Idea distribution, but ok. I am on Gentoo system and would like to make my Markdown plugin in Intellij Idea working again.
I tried to run following command as suggested, but it failed:
any suggestion of what to be done to make this working welcomed.