-
Notifications
You must be signed in to change notification settings - Fork 757
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
calling ScIDE prSend from a routine makes the ide unreachable #1657
Comments
The problem can be circumvented by deferring:
So essentially, the IDE has to be called from an AppClock thread. If this is true, then Alternatively, it should throw an error. |
So if correct it should probably throw something like 'ERROR: Qt: You can not use this Qt functionality in the current thread. Try scheduling on AppClock instead.' |
So could add something like this to ScIDE_Send:
Not sure if this is better. I don't think deferring implicitly could cause any unforeseen side effects, but...? |
The main problem is that you end up implicitly deferring somewhere inbetween, in particular when it is done with MVC, like the So maybe the cleanest place to do the deferrals in is in the ScIDE response to the notifications. |
But it is a bit endless:
Also this will throw an error (now just breaks). |
No. To be honest though, I don't really know precisely why there is a problem with this in this case. Perhaps someone can clarify. |
In
The
Which is victim to the bug above. I mentioned this example only to show how far fetched the chains can be. |
I think your original idea is sensible. Just get the ScIDE class to do it itself. |
if you call an IDE command from a routine, it makes the ide unreachable from sclang:
you need to reboot the interpreter to wake up the connection to the ide.
The text was updated successfully, but these errors were encountered: