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
Primitive error in _ScIDE_SetDocTextMirror called from openDocument #964
Comments
Hmm. I don't think this is the problem, but surely String:openDocument should not look like this:
|
On Tuesday, October 1, 2013 3:34:53 PM HKT, muellmusik wrote:
Maybe this as a patch, then? (Maybe not safe... it assumes that sclang doesn't compile the ScIDE classes if it's not running under the IDE.) (Not sure if github will preserve the attachment...) hjh |
No attachment I'm afraid. Can you paste it in? |
I think probably the second block should just be removed. I can see where the problem is in general, btw. It doesn't have a quuid, and it needs one now with the new implementation. The joys of doing things twice... On a broader note, the Document implementation subclass/redirect/clusterclass is a tangled and difficult to read mess in my opinion. It really doesn't need to be, especially now. But I'll leave that to some braver soul. |
Can't attach now, sorry. All I did was move the ScIDE if-block to come before the implementation class check. It did eliminate the error. But you're right, this is still major hack territory. The String methods related to Document should be very simple and leave the details to the implementing classes. I've already volunteered to look at Server refactoring so I'll pass on this one. (And I'm busy trying to finish an EP by early next year, so the Server stuff is stalled on my side...) |
No the ScIDE block should just be removed. Putting it first doesn't solve it, it just bypasses the doc implementation, which it should use as you say. I know what needs to happen in the back end. It's not hard, but may take a little time to get to as it's start of term here. Nobody's asked you to deal with this, so don't worry, and happy EPing. :-) |
Please test the fixOpenDocument branch. That should fix this. It also gets rid of the Document redirect for the IDE at least, which simplifies things. |
fixed in Pull Request #997: Fix open document |
Updated from master today, rebuilt SC (cd build && make && sudo make install), then...
-->
The text was updated successfully, but these errors were encountered: