Comments (7)
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.
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.
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.
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.
I have the same issue, see my duplicate: #141
from excalidraw-jetbrains-plugin.
@abentele Do you have a reproducer ?
from excalidraw-jetbrains-plugin.
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)
- Load Excalidraw dependency component from web ? HOT 2
- Inconsistent resize button hover effect in Excalidraw HOT 2
- White Background for Dracula HOT 3
- Unhandled Exception in Excalidraw Plugin for Goland HOT 1
- Exception IntelliJ 2023.1 / Excalidraw 0.3.2 HOT 1
- Crashing in Rider 2023.2 Build #RD-232.8660.212, built on August 1, 2023 HOT 1
- Publish newest version to matketplace HOT 2
- NPE when interactiing with libraries
- Crash in 2023.2.5 HOT 1
- Meta issue for 0.4.0
- Exported SVG files font url is using the plugin URL instead of excalidraw.com
- Investigate dynamic choices to export image support to ask directly Excalidraw
- Rework Plugin / JCef exchange of file payload
- Image added to a drawing are not properly saved HOT 3
- Meta issue for 0.4.1
- Create new **image** excalidraw files.
- Fix verification results (one api scheduled for removal)
- When I edit an image I want to export them automatically HOT 1
- Explore serialization replacement by query handling
- Export as embedded scene PNGs no longer are editable in JetBrains HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excalidraw-jetbrains-plugin.