spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
jumar 2020-05-13T07:22:42.082800Z

Not long ago I updated my spacemacs develop branch and now I'm getting these errors quite frequently. Is it normal?

practicalli-john 2020-05-14T13:57:17.086700Z

I can use -tmd followed by a search pattern and it works correctly. Although in the same project -tclj fails. The -t option seems unreliable, so I will stick with -g which has always worked flawlessly.

aisamu 2020-05-14T15:19:46.086900Z

@jr0cket I think it's -tclojure

aisamu 2020-05-14T15:20:52.087100Z

rg --type-list should give you the full list of types and their associated extensions.

practicalli-john 2020-05-14T16:20:16.087400Z

@aisamu Ah, in that case -t works correctly for me with the latest Spacemacs develop branch. I just updated Spacemacs and packages yesterday.

👌 1
jumar 2020-05-16T07:06:01.096500Z

Yes, -tclojure is the way to go - you can define your own alias -tclj . All of this used to work for me but it's suddenly broken 😞 (that error shown above)

aisamu 2020-05-16T12:09:55.096700Z

I'd check that your e-macs is getting the correct path from the shell upon initialisation. What do you get from (helm-ag--construct-do-ag-command "test")

jumar 2020-05-19T02:53:20.145300Z

("rg" "--vimgrep" "--no-heading" "--smart-case" "test")

aisamu 2020-05-19T13:00:31.149300Z

The generated parameters here are a bit different (`("rg" "--smart-case" "--no-heading" "--color=never" "--line-number" "--max-columns=512" "test")`) but I can't see how that'd justify your failure. Your parameters work fine on the command line for me as well (but I get one line per match, with column information as well)

jumar 2020-05-21T03:40:34.152700Z

For some reason it now works better - I updated Mac OS X yesterday and also run brew upgrade which could affect the things it works...

🎉 1
jumar 2020-05-13T07:23:39.083100Z

It happens when I'm (mis?) typing something in the helm buffer (after pressing SPC /), for instance and it's really annoying since it breaks my flow a lot

jumar 2020-05-13T07:24:26.083300Z

If often happens when I try to add -t <type> for ex. -t html to restrict the search

jumar 2020-05-13T07:27:12.083500Z

Here some more details:

practicalli-john 2020-05-13T09:34:18.083900Z

SPC / followed by -t displays this message in the mini-buffer "Error running timer: (error "Candidates function 'helml-ag-do-ag-candidate-process' should run a process") on the latest develop & Emacs 26.3. I am sure I have seen similar messages before, but not very often.

practicalli-john 2020-05-13T09:36:11.084100Z

I use the ripgrep binary for search and I use the -g option for narrowing down file types https://practicalli.github.io/spacemacs/spacemacs-basics/working-with-projects/searching-projects.html

practicalli-john 2020-05-13T09:37:37.084300Z

rgrep does not have a -t option, so that may explain the error (an assumption).

practicalli-john 2020-05-13T09:42:20.084500Z

Does your search binary support the -t option an does Emacs pick up that binary in the path?

practicalli-john 2020-05-13T09:42:58.084700Z

The only change I've notices around helm is to provide a fallback to Emacs fuzzy search if other search tools are not found https://github.com/syl20bnr/spacemacs/commit/c7ed2fc597e26de0f61209a4a8d63089fa2c4f3e

jumar 2020-05-13T11:10:40.084900Z

ripgrep does have -t option: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#manual-filtering-file-types But I was using it incorrectly (with space after -t); however, even with proper syntax it fails very early....

âž• 1
jumar 2020-05-13T11:11:38.085200Z

I guess my emacs might be using incorrect binary - how do I find that? (rg does accept the -t in shell)

aisamu 2020-05-13T13:19:40.085600Z

Using rg with develop (behind 71 commits, +- 1 month), no issues here. Just make sure to invoke it without a space between the flag and the type (e.g. -tclojure query, not -t clojure query)

aisamu 2020-05-13T13:20:26.085800Z

$> rg --version                                                                                                                                                         ripgrep 11.0.2