GithubHelp home page GithubHelp logo

Comments (7)

abentele avatar abentele commented on June 5, 2024 1

yes, sure.

I use IntelliJ IDEA 2023.1 (Ultimate Edition) ("Build #IU-231.8109.175, built on March 28, 2023")
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Excalidraw Integration 0.3.2

Steps to reproduce:

  • Open IntelliJ
  • Disable Excalidraw plugin
  • Close and re-open IntelliJ
  • in the Project Explorer: right click and select New > File
  • type in the file name "test.excalidraw"
  • open this file in the editor
  • The editor shows in its header: "Plugins supporting *.excalidraw files found" with the option to "Enable plugin" => click on "Enable plugin"
  • the editor switches into a state with tabs "Text" and "Excalidraw" in the bottom line.

In the notifications of IntelliJ the exception mentioned in this issue is logged:

java.lang.NullPointerException: Cannot invoke "org.cef.browser.CefFrame.getURL()" because the return value of "org.cef.browser.CefBrowser.getMainFrame()" is null
...

If I now switch to the "Excalidraw" tab, this exception is logged:

java.lang.Throwable: [LOGSEVERITY_ERROR][https://excalidraw-jetbrains-plugin/index.html:1]:
Uncaught SyntaxError: Unexpected end of JSON input
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
	at com.github.bric3.excalidraw.editor.ExcalidrawWebViewController$initJcefPanel$5.onConsoleMessage(ExcalidrawWebViewController.kt:219)
	at com.intellij.ui.jcef.JBCefClient$3.lambda$onConsoleMessage$4(JBCefClient.java:305)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.lambda$handle$0(JBCefClient.java:726)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handle(JBCefClient.java:726)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handleBoolean(JBCefClient.java:731)
	at com.intellij.ui.jcef.JBCefClient$3.onConsoleMessage(JBCefClient.java:304)
	at jcef/org.cef.CefClient.onConsoleMessage(CefClient.java:352)

from excalidraw-jetbrains-plugin.

bric3 avatar bric3 commented on June 5, 2024

Hi @MandySchoepASML

Thanks for the report, I started to refactor this part this summer, but clearly lack time to proceed as fast as I would like, especially with another weird bug that I have some difficulty to overcome.

By any chance do you have an idea of how this happened, or even how to reproduce?

from excalidraw-jetbrains-plugin.

MandySchoepASML avatar MandySchoepASML commented on June 5, 2024
java.lang.Throwable: [LOGSEVERITY_ERROR][https://excalidraw-jetbrains-plugin/index.html:12174]:
[object DOMException]
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:184)
	at com.github.bric3.excalidraw.editor.ExcalidrawWebViewController$initJcefPanel$5.onConsoleMessage(ExcalidrawWebViewController.kt:219)
	at com.intellij.ui.jcef.JBCefClient$3.lambda$onConsoleMessage$4(JBCefClient.java:306)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.lambda$handle$0(JBCefClient.java:725)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handle(JBCefClient.java:725)
	at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handleBoolean(JBCefClient.java:730)
	at com.intellij.ui.jcef.JBCefClient$3.onConsoleMessage(JBCefClient.java:305)
	at jcef/org.cef.CefClient.onConsoleMessage(CefClient.java:370)

I also got this error and it might be related to it.

I am running IntelliJ in a really strict environment, with Cisco Umbrella, meaning that it could be related to using an (according to IntelliJ) unsigned certificate perhaps when doing HTTP calls?

from excalidraw-jetbrains-plugin.

bric3 avatar bric3 commented on June 5, 2024

I believe this a different issue, maybe open a new issue.
This one indicate something that happened within the browser. It's very very hard to debug, even locally.

I am running IntelliJ in a really strict environment, with Cisco Umbrella, meaning that it could be related to using an (according to IntelliJ) unsigned certificate perhaps when doing HTTP calls?

I don't think certificate should have anything as there is a specific mechanism to handle https://excalidraw-jetbrains-plugin.

Does intellij actually tell you it's an unsigned certificate issue ?

Also not sure how to fix this.

from excalidraw-jetbrains-plugin.

abentele avatar abentele commented on June 5, 2024

I have the same issue, see my duplicate: #141

from excalidraw-jetbrains-plugin.

bric3 avatar bric3 commented on June 5, 2024

@abentele Do you have a reproducer ?

from excalidraw-jetbrains-plugin.

bric3 avatar bric3 commented on June 5, 2024

I believe this issue to be closed on master. If it happen again on the version let's open a new issue.

from excalidraw-jetbrains-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.