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-swoop does not work as expected anymore #13196

Closed
brunosmmm opened this issue Jan 20, 2020 · 15 comments
Closed

helm-swoop does not work as expected anymore #13196

brunosmmm opened this issue Jan 20, 2020 · 15 comments
Labels
- Bug tracker - Helm Reported upstream Searching stale marked as a stale issue/pr (usually by a bot)

Comments

@brunosmmm
Copy link
Contributor

Description :octocat:

helm-swoop does not work as expected

Reproduction guide 🪲

  • Start Emacs (freshly cloned spacemacs repo, no modifications to .spacemacs)
  • Open any file or even use the home buffer
  • SPC s s to open helm-swoop, write any search string

Observed behaviour: 👀 💔
helm-swoop buffer displays entire buffer that is being searched with occurences highlighted, not just lines with occurrences, making it impossible to jump between occurrences

Expected behaviour: ❤️ 😄
helm-swoop buffer displays only lines with occurrences of the search string, able to jump between buffer locations by navigating up/down helm-swoop buffer

System Info 💻

  • OS: gnu/linux
  • Emacs: 26.3
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 278be41)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp helm multiple-cursors treemacs)
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

Confirmed.

Windows 1903
#### System Info :computer:
- OS: windows-nt
- Emacs: 26.3
- Spacemacs: 0.300.0
- Spacemacs branch: develop (rev. d7e9a803f)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
```elisp
(autohotkey auto-completion colors command-log emacs-lisp git haskell helm imenu-list latex markdown multiple-cursors
            (org :variables org-agenda-files
                 '("c:/Users/username/org/notes.org"))
            python
            (shell :variables shell-default-shell 'eshell)
            spell-checking syntax-checking treemacs version-control)
```
- System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

It seems to be caused by helm-core-20200119.739
when I reverted to the previous version I have: helm-core-20200116.512

Then helm-swoop SPC s s starts working as expected. On the Spacemacs home buffer when searching for pack, then only the five lines containing pack are shown.

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

Correction it might not have been caused by: helm-core-20200119.739
That was just the latest one where I'm seeing the issue.

There is a newer version available when I just checked: helm-core-20200120.1141
But unfortunately the issue remains.

@brunosmmm
Copy link
Contributor Author

This is an upstream issue, I've tried with a completely vanilla emacs, helm-core / helm-swoop installed from melpa with the same results.

As a sidenote, it isn't immediately clear to me how can I temporarily revert to that version with spacemacs, can you please elaborate?

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

When updating packages, the outdated packages from the five previous times are stored in:
c:/Users/username/.emacs.d/.cache/.rollback/26.3/develop/

The current version is stored in:
c:/Users/username/.emacs.d/elpa/26.3/develop/

Move the current version some where else and copy the previous version from a rollback dir and paste it where the current version was.

Unfortunately it won't work if one just has cloned a fresh copy of Spacemacs, because it downloads the latest versions from melpa.

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

Thanks for testing it without Spacemacs.

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

I found some notes about a possible way to load a package at a specific commit.

;; Load a specific commit of a github repository
   dotspacemacs-additional-packages '(
                                      (hl-todo :location (recipe :fetcher github :repo "tarsius/hl-todo" :commit "60797aa364e2ea6f4efead7f408eed9358dce5b5")))

source: #12143 (comment)

An article with a similar suggestion:
http://jr0cket.co.uk/2017/03/spacemacs-managing-broken-emacs-packages.html

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

This seems to be the helm-swoop repository:
https://github.com/emacsorphanage/helm-swoop

Feel free to report it, I'm sure they also would like to get it fixed.

@brunosmmm
Copy link
Contributor Author

I've already tracked down the commit from helm that seems to break helm-swoop, I'll be reporting shortly. Should this issue be closed?

@twillis
Copy link

twillis commented Jan 20, 2020

was able to rollback to a working config. In case it helps anyone in the meantime.

  drwxr-xr-x   2 tom tom 12288 Jan  8 07:04 helm-20200107.1518
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-ag-20170209.1545
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-company-20190812.1429
  drwxr-xr-x   2 tom tom  4096 Jan  8 07:03 helm-core-20200108.724
  drwxrwxr-x   2 tom tom  4096 Jan  2 07:54 helm-css-scss-20191230.1549
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-c-yasnippet-20170128.1542
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-descbinds-20190501.935
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-flx-20180103.516
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-git-grep-20170614.1411
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-gitignore-20170211.8
  drwxrwxr-x   2 tom tom  4096 Nov 27 15:08 helm-ls-git-20191127.510
  drwxrwxr-x   2 tom tom  4096 Jan  4 09:34 helm-lsp-20200103.1659
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-make-20190729.1221
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-mode-manager-20151124.938
  drwxrwxr-x   2 tom tom  4096 Dec 30 07:12 helm-org-20191229.635
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-org-rifle-20190809.1831
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-projectile-20190731.1538
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-purpose-20170114.1636
  drwxr-xr-x   2 tom tom  4096 Sep 17 11:01 helm-pydoc-20160918.542
  drwxrwxr-x   2 tom tom  4096 Dec 25 19:16 helm-swoop-20191225.959
  drwxrwxr-x   2 tom tom  4096 Sep 17 08:56 helm-themes-20160918.545
 

@duianto
Copy link
Collaborator

duianto commented Jan 20, 2020

@brunosmmm Leave it open until it's fixed.

@brunosmmm
Copy link
Contributor Author

brunosmmm commented Jan 20, 2020

Reported. Just for reference, this behavior shows up from upstream helm commit emacs-helm/helm@c09329c

helm-swoop does not work as expected emacsorphanage/helm-swoop#175

Edited by duianto, added clickable links.

@MrMic
Copy link

MrMic commented Jan 21, 2020

Confirmed! I was just about to report the same bug.

@duianto
Copy link
Collaborator

duianto commented Jan 21, 2020

The helm-swoop package has merged a temporary workaround fix:
Temporary workaround; not update candidate issue emacsorphanage/helm-swoop#176

I just updated the packages and the helm-swoop update was included.

Now when I search for pack with SPC s s in the Spacemacs home buffer, only the five lines containing the word "pack" are shown.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Helm Reported upstream Searching stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

4 participants