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

Helm + neotree on spacemacs: unable to use Tab to switch to selected directory #2120

Closed
phoe opened this issue Dec 24, 2018 · 12 comments
Closed

Comments

@phoe
Copy link

phoe commented Dec 24, 2018

Expected behavior

When using neotree in spacemacs, I used to be able to use Tab to navigate to folders inside helm. Now that functionality is broken.

Actual behavior (from emacs-helm.sh if possible, see note at the bottom)

Error: split-window: Cannot split side window or parent of side window

Steps to reproduce (recipe)

Download current spacemacs
SPC f t to open neotree
Select a directory
Hit Tab

Backtraces if any (M-x toggle-debug-on-error)

I cannot copypaste the contents of *Backtrace* buffer because I cannot select text from it while the lower window is open, and once I close that window, the contents of that window disappear. The best I can give is a screenshot of my Emacs showing the backtrace.

Describe versions of Helm, Emacs, operating system, etc.

Spacemacs 0.200 stable

Are you using emacs-helm.sh to reproduce this bug (yes/no):

no

Other things

Discussed on the spacemacs issue tracker: syl20bnr/spacemacs#11368

@thierryvolpiatto
Copy link
Member

Please report bugs starting from emacs-helm.sh, and not spacemacs.
Thanks.

@phoe
Copy link
Author

phoe commented Dec 24, 2018

I have run emacs with emacs-helm.sh but neotree is now not loaded.
The package is downloaded at ~/.emacs.d/elpa/neotree-20180616.1603
What steps are required to load neotree in this case?

@phoe
Copy link
Author

phoe commented Dec 24, 2018

I just noticed that the Tab button works just fine unless neotree is open. After I open and then close it, tab button works normally.

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Dec 24, 2018 via email

@thierryvolpiatto
Copy link
Member

I guess this bug is same as #2115, this because you or spacemacs, I don't know set (setq helm-default-display-buffer-functions '(display-buffer-in-side-window)) (just a guess).
So when you do this you have just what is expected, see documentation of display-buffer-in-side-window.
IOW there is no bug on the helm side for this.

@sdwolfz
Copy link
Contributor

sdwolfz commented Dec 24, 2018

Thanks for pointing that out @thierryvolpiatto, we do have something like that: https://github.com/syl20bnr/spacemacs/blob/c7a103a772d808101d7635ec10f292ab9202d9ee/layers/%2Bspacemacs/spacemacs-completion/funcs.el#L108.

I'll take a look at what that code does and see if I can come up with a solution.

@phoe
Copy link
Author

phoe commented Dec 24, 2018

@thierryvolpiatto It's weird - when I run spacemacs, helm-default-display-buffer-functions evaluates to nil in IELM. The issue nonetheless persists.

@phoe
Copy link
Author

phoe commented Dec 24, 2018

The error message described in #2115 is the same as this one though.

@sdwolfz
Copy link
Contributor

sdwolfz commented Dec 24, 2018

@phoe If you comment out this line: https://github.com/syl20bnr/spacemacs/blob/c7a103a772d808101d7635ec10f292ab9202d9ee/layers/+spacemacs/spacemacs-completion/packages.el#L29 the problem goes away.

But helm will no longer open in a side window on the lower side, taking up the entire frame width, it will instead split the current window.

@sdwolfz
Copy link
Contributor

sdwolfz commented Dec 24, 2018

@phoe @thierryvolpiatto This issue can be closed as the problem lies in Spacemacs entirely. Thank you for investigating!

@phoe
Copy link
Author

phoe commented Dec 24, 2018

@sdwolfz This is a decent workaround - at least the tab button works. Thanks!

@phoe
Copy link
Author

phoe commented Dec 24, 2018

Closing as per @sdwolfz request.

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

No branches or pull requests

3 participants