Open chir-set opened 1 month ago
Thanks for the feedback.
@pieper any ideas?
Not sure. @chir-set what Qt do you build against?
Maybe you can try the earlier prototype:
editor = slicer.qSlicerWebWidget()
editor.size = qt.QSize(900, 750)
editor.url = "https://pieper.github.io/SlicerEditor"
editor.show()
what Qt do you build against?
It's Qt 5.15.14, the current version in Arch's repositories.
The earlier prototype does work, there is code completion in the editor.
These messages appear in the python console:
[Qt] "https://unpkg.com/monaco-editor@0.47.0/min/vs/loader.js" 6 "Uncaught (in promise) Error: [object Event]"
[Qt] Uncaught (in promise) Error: [object Event]
[Qt] "https://unpkg.com/monaco-editor@0.47.0/min/vs/loader.js" 6 "Uncaught (in promise) Error: [object Event]"
[Qt] Uncaught (in promise) Error: [object Event]
[Qt] "https://pieper.github.io/SlicerEditor/" 0 "Access to font at 'https://unpkg.com/monaco-editor@0.47.0/min/vs/base/browser/ui/codicons/codicon/codicon.ttf' from origin 'https://pieper.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
[Qt] Access to font at 'https://unpkg.com/monaco-editor@0.47.0/min/vs/base/browser/ui/codicons/codicon/codicon.ttf' from origin 'https://pieper.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Thank you for considering. However, if it gets complicated at some point, don't spend too much time with it. Code completion still works in the python console itself.
Hello,
SlicerEditor runs nicely with stock Slicer and extensions.
With self-built Slicer and SlicerEditor, the following errors occur before any code is typed:
Thank you for any suggestion to resolve that.