You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The file editor preview does not show anything in IntelliJ IDEA 2023.2.1, and shows only an error message in PyCharm 2024.3.
To Reproduce
Install latest version of either IntelliJ IDEA or PyCharm IDE.
Install latest version of this plugin.
Create a minimal test model (code in the snippet).
Open preview or split file editor.
Code snippet
cube(size=[1,1,1], center=false);
Expected behavior
I would expect to see a model rendering in the editor preview window.
Screenshots
IDEA:
PyCharm:
Desktop (please complete the following information):
OS: Windows 11
Jetbrains platform and version: IntelliJ IDEA 2023.2.1 Community, IntelliJ IDEA 2023.2.1 Ultimate, PyCharm 2024.3 Community, PyCharm 2024.3 Proffesional
OpenSCAD plugin version: Version 2.4.0
Additional context
I was able to open CEF browser dev tools and there is CORS error loading main.js file:
Access to script at 'file:///<HOME_DIR>/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.2.1/b51a90b0b585e631c033896a64083d706ed6d71d/ideaIC-2023.2.1/bin/html/main.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, chrome, https, chrome-untrusted.
It seems recent version of CEF (embedded Chromium) enforces CORS rules for ES5 module loading even for file URIs.
The text was updated successfully, but these errors were encountered:
Describe the bug
The file editor preview does not show anything in IntelliJ IDEA 2023.2.1, and shows only an error message in PyCharm 2024.3.
To Reproduce
Code snippet
Expected behavior
I would expect to see a model rendering in the editor preview window.
Screenshots
IDEA:
PyCharm:
Desktop (please complete the following information):
Additional context
I was able to open CEF browser dev tools and there is CORS error loading
main.js
file:It seems recent version of CEF (embedded Chromium) enforces CORS rules for ES5 module loading even for file URIs.
The text was updated successfully, but these errors were encountered: