-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with soma.web.ControllerWidget #64
Comments
How do we debug things in the javascript code ? |
Either you can use a sample code using a http server instead of html in Qt. Or you can trun debugging on for QtWebEngine and use a browser to debug: https://doc.qt.io/qt-6/qtwebengine-debugging.html I think the Qt debugging interface in browser doesn't work as well as built-in l browsers one but it is simpler to set up. |
Is there a sample code somewhere to start a http server displaying a Controller in soma.web ? I'm afraid I can't do it myself... |
Yes, sorry I should have tell it before. There is a sample code in |
I forgot to say that the internal server engine exposes all files in |
Ah OK thanks. I could finally start and use the web backend. But for the Morphologist process, nothing is displayed, no error, nothing in the console. However the Morphologist process instance is actually a Controller (with 228 fields), so I don't know where to investigate. |
OK this is my example code:
|
and the response to the controller request:
thus the type |
Do I need some specific branch for morphologist ? I have this error:
|
You need the branch |
I tried with this branch but then I have this error:
|
By the way, it will be easy to have a quick fix for the error because there is already a series of |
ah yes you also need the branch |
I made some fixes to avoid failure on unsupported types. There are two things missing:
|
OK I can see the controller now :) |
... but values displayed are all empty... |
The correct json dict of values is actually part of the request answer, and looks OK, but values are not filled in the controller GUI (neither in web nor Qt mode) |
I looked a bit further into this problem. The key is that a "normal"
So a |
So in controller.js in
with:
then I can finally see the process controller with correct values ! |
@sapetnioc has fixed the |
To demonstrate the layouts issues, here is a little bit of code which displays 2 controllers, one very small (1 field) and one very large, in the same Qt widget. It is using an approximate transcription of the Morphologist pipeline signature, as a standard
which looks like this: As we can see, the fist |
This ticket is not a single issue but will discuss and try to improve
soma.web.ControllerWidget
. We can summarize a short problems list here (by editing the ticket) and discuss in answers.None
values. I have fixed a few problems by adding tests, and I will push fixes.ControllerWidget
opened on a Morphologist instance displays nothing, without a visible error.ControllerWidget
opened on a Morphologist instance displays all values empty.del controller_widget
) doesn't actually destroy it: it remains visible. Butgc.collect()
does delete it afterwards.ControllerWidget
lacks the formerset_visible()
method to hide or show some selected fieldsControllerWidget
are not marked as modified as they used to do in Capsul 2. This is required to block completion on manually forced fields.ControllerWidget
to be completely empty.OpenKeyController
s).The text was updated successfully, but these errors were encountered: