syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

cannot choose from helm find-file actions just after emacs is started. #9631

Closed vibrys closed 4 years ago

vibrys commented 7 years ago

Description :octocat:

cannot choose from helm find-file actions just after emacs is started. I'm running fresh spacemacs (not spacemacs-base).

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: following error message is displayed: Helm issued errors: helm-match-from-candidates in source `Actions': wrong-type-argument (stringp nil)

Expected behaviour: :heart: :smile: actions' list should be narrowed down to those which have 's' in their name.

System Info :computer:

Backtrace :paw_prints:

I'm able to display the backtrace, but unfortunatelly cannot copy it, because it dissapears when I'm continuing to press any keys (helm is still in action).

vibrys commented 7 years ago

for the sake of completeness, this problem DOES NOT persist with vanilla: emacs + helm.

regards, Mat

bmag commented 7 years ago

Can't repro with latest Spacemacs and Helm. "display actions for current file" means pressing C-z?

duianto commented 7 years ago

Confirmed on both the latest master and develop branches with all packages updated.

This seems to be a duplicate of this issue: spacemacs/helm-find-files (SPC f f) not correctly autoloading #7325

The next to last comment on that issue might be describing the source or a clue to what's going on.

That issue explains the behaviour I'm seeing. If the helm find files, helm action buffer, is opened as the first helm buffer, then the issue occurs. But as soon as another helm buffer has been opened. For example helm mini SPC b b, then the helm find files, helm action buffer, is able to narrow down the results based on the typed pattern.

The helm find files buffer is always able to narrow down the candidates to the search pattern, without showing the error message. But if helm find files was the first opened helm buffer, then it's possible to switch C-z between the helm action buffer and helm find files, and searching works for files but not actions.

System Info :computer:

bmag commented 7 years ago

Thanks for linking the issue. I was able to repro the issue by setting dotspacemacs-helm-use-fuzzy to always (I usually set it to source, but the default is always).

bmag commented 7 years ago

Probably a consequence of #5001

bmag commented 7 years ago

Couldn't copy the backtrace buffer, so here's a screenshot: backtrace-screenshot

bling commented 7 years ago

so i took a quick look at this and looks like certain sources do not have the fuzzy-match property set, which causes helm--in-fuzzy to be false, causing the function helm--fuzzy-match-maybe-set-pattern to never populate the cache.

one fix is to advise that function so that the flag is always true, but it's probably better to revert my original PR and explicitly set all the variables to t instead.

smile13241324 commented 4 years ago

@vibrys I have merged a fix for your issue, would you mind having a look on latest develop and close your issue if it is fixed.

vibrys commented 4 years ago

Yes, I'll do it

On December 20, 2019 7:02:03 PM GMT+01:00, Maximilian Wolff notifications@github.com wrote:

@vibrys I have merged a fix for your issue, would you mind having a look on latest develop and close your issue if it is fixed.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/syl20bnr/spacemacs/issues/9631#issuecomment-568021988

vibrys commented 4 years ago

that works. Thank You