Skip to content
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

Added option to swap pane position (put edit pane above output) #29

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

BrenBarn
Copy link

If the option is on, then vertical layout has code on top, output on bottom,
and horizontal has code on left, output on right.

Also, with code on top, changed notebook tabs to be on top too.

[email protected] and others added 5 commits April 16, 2013 11:42
If the option is on, then vertical layout has code on top, output on bottom,
and horizontal has code on left, output on right.

Also, with code on top, changed notebook tabs to be on top too.
When panes are swapped (edit on top), the autocomplete popup now stretches DOWN from the cursor, not up.  This makes it so it won't extend up off the screen.
Previous fix caused the autocomplete box to overlap the cursor.  We adjust its position by lineheight to avoid this.
The problem seems to be due to the _n_unclaimed_results counter somehow getting out of sync.
At some point, this counter is incremeneted but not properly decremented.
The result is that DreamPie keeps saying "subprocess is busy", thinking it is waiting for a result, but there really isn't any result coming, so it waits forever.
(This waiting occurs in DreamPie.call_subp_noblock, which is called from execute_source.)

The "solution" is to add a simple method to the DreamPie class that just decrements _n_unclaimed_results.
I then added a menu item to call this function.
If this "stuck" situation arises, you can clear it by using this manual override.
Note that using this when the subprocess is *not* stuck could cause havoc, so be careful!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant