yuutayamada / helm-rb

Search Ruby's methods by ag and display the methods by helm
4 stars 0 forks source link

Cannot find ag although ag is installed and working #2

Open shanbhardwaj opened 10 years ago

shanbhardwaj commented 10 years ago

I am getting the following errors although ag and dependencies are installed

/bin/sh: ag: command not found ../../../../.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:54:in write': Broken pipe - <STDOUT> (Errno::EPIPE) from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:54:inputs' from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:54:in puts' from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:54:inrescue in block in

' from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:10:in block in <main>' from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:58:incall' from /Users/shan/.emacs.d/elpa/helm-rb-20131115.2341/get_methods.rb:58:in `
'

yuutayamada commented 10 years ago

Mmm it's strange, get_methods.rb is not calling ag command.

Can I get more information? I want know what is Ruby's version? what is your OS? what is helm-rb's result after you used M-x trace-function RET helm-rb?

and what is following result?

(require 'helm-ag-r)
(helm-ag-r-pype "ruby -e 'puts \"foo\"'")

Normally you can see the foo after typed foo on helm framework.

yuutayamada commented 10 years ago

Sorry I forgot to write ri command to requirements software. Can you use ri command too?

shanbhardwaj commented 10 years ago

Ruby version 1.9.3-p392 (with rbenv) OS is os x 10.9 mavericks

Here is he trace output

\ 21:20:42.765089 (helm-internal) any-default = nil

\ 21:20:42.766283 (helm-initialize) start initialization: any-resume=nil any-input=nil

\ 21:20:42.767532 (helm-frame-or-window-configuration) helm-save-configuration-functions = (set-window-configuration . current-window-configuration)

\ 21:20:42.768675 (helm-initialize) sources = (((name . "helm-ag-r") (header-name lambda (name) (format "%s (%s)" name helm-ag-r-current-command)) (candidates-process lambda nil (funcall helm-ag-r-function)) (requires-pattern . 3) (candidates-in-buffer) (candidate-number-limit . 100) (real-to-display . helm-ag-r-replace-dir-name) (delayed . 0.5) nil))

* 21:20:42.769835 (helm-current-position) Save position at (254 . 1) * 21:20:42.770954 (helm-initial-setup) executing helm-before-initialize-hook

\ 21:20:42.772078 (helm-initial-setup) (symbol-value hook) = nil

\ 21:20:42.773269 (helm-initial-setup) (default-value hook) = nil

\ 21:20:42.774498 (helm-initial-setup) executed helm-before-initialize-hook

\ 21:20:42.775672 (helm-get-sources) helm-compiled-sources = (((match identity) (search helm-mp-exact-search helm-mp-3-search) (name . "helm-ag-r") (header-name lambda (name) (format "%s (%s)" name helm-ag-r-current-command)) (candidates-process lambda nil (funcall helm-ag-r-function)) (requires-pattern . 3) (candidates-in-buffer) (candidate-number-limit . 100) (real-to-display . helm-ag-r-replace-dir-name) (delayed . 0.5) nil (header-line . helm-persistent-help-string) (candidates . #[nil "\301!\207" [source helm-candidates-in-buffer] 2]) (volatile) (match identity)))

\ 21:20:42.776830 (helm-create-helm-buffer) kill local variables: ((buffer-display-time) (buffer-display-count . 0) (buffer-invisibility-spec . t) (buffer-file-truename) (point-before-scroll) (buffer-auto-save-file-format . t) (buffer-file-format) (enable-multibyte-characters . t) (mark-active) (mode-name . "Fundamental") (major-mode . fundamental-mode) (buffer-read-only) (buffer-auto-save-file-name) (buffer-saved-size . 0) (buffer-backed-up) (default-directory . "/") (buffer-file-name))

\ 21:20:42.778607 (helm-create-helm-buffer) helm-display-function = helm-default-display-buffer

\ 21:20:42.779815 (helm-create-helm-buffer) helm-let-variables = nil

\ 21:20:42.780998 (helm-initialize-overlays) overlay setup

\ 21:20:42.782212 (helm-initial-setup) executing helm-after-initialize-hook

\ 21:20:42.783562 (helm-initial-setup) (symbol-value hook) = (helm-reset-yank-point)

\ 21:20:42.784896 (helm-initial-setup) (default-value hook) = (helm-reset-yank-point)

\ 21:20:42.786108 (helm-initial-setup) executed helm-after-initialize-hook

\ 21:20:42.787689 (helm-initialize) end initialization

\ 21:20:42.791986 (helm-internal) show prompt

\ 21:20:42.793225 (helm-update) Start updating

\ 21:20:42.794617 (helm-update) (mapcar (lambda (s) (assoc-default (quote name) s)) delayed-sources) = nil

\ 21:20:42.795821 (helm-update-move-first-line) executing helm-update-hook

\ 21:20:42.797070 (helm-update-move-first-line) (symbol-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:42.798366 (helm-update-move-first-line) (default-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:42.799656 (helm-update-move-first-line) executed helm-update-hook

\ 21:20:42.801829 (helm-update) executing helm-after-update-hook

\ 21:20:42.803021 (helm-update) (symbol-value hook) = (helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to-first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:42.804215 (helm-update) (default-value hook) = (helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to-first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:42.805385 (helm-update) executed helm-after-update-hook

\ 21:20:42.806557 (helm-update) end update

\ 21:20:42.807815 (helm-read-pattern-maybe) (helm-approximate-candidate-number) = 0

\ 21:20:42.808947 (helm-read-pattern-maybe) helm-execute-action-at-once-if-one = nil

\ 21:20:42.810078 (helm-read-pattern-maybe) helm-quit-if-no-candidate = nil

\ 21:20:50.161858 (helm-check-new-input) helm-pattern = "f"

\ 21:20:50.163547 (helm-check-new-input) helm-input = "f"

\ 21:20:50.165092 (helm-update) Start updating

\ 21:20:50.166597 (helm-update) (mapcar (lambda (s) (assoc-default (quote name) s)) delayed-sources) = nil

\ 21:20:50.167979 (helm-update-move-first-line) executing helm-update-hook

\ 21:20:50.169304 (helm-update-move-first-line) (symbol-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:50.170564 (helm-update-move-first-line) (default-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:50.171756 (helm-update-move-first-line) executed helm-update-hook

\ 21:20:50.174165 (helm-update) executing helm-after-update-hook

\ 21:20:50.175362 (helm-update) (symbol-value hook) = (helm-hook20969 helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to-first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:50.176587 (helm-update) (default-value hook) = (helm-hook20969 helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to-first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:50.177806 (helm-update) executed helm-after-update-hook

\ 21:20:50.178975 (helm-update) end update

\ 21:20:50.286259 (helm-check-new-input) helm-pattern = "fo"

\ 21:20:50.288302 (helm-check-new-input) helm-input = "fo"

\ 21:20:50.290070 (helm-update) Start updating

\ 21:20:50.291745 (helm-update) (mapcar (lambda (s) (assoc-default (quote name) s)) delayed-sources) = nil

\ 21:20:50.293341 (helm-update-move-first-line) executing helm-update-hook

\ 21:20:50.294801 (helm-update-move-first-line) (symbol-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:50.296237 (helm-update-move-first-line) (default-value hook) = (helm-mp-highlight-match helm-revive-visible-mark)

\ 21:20:50.297536 (helm-update-move-first-line) executed helm-update-hook

\ 21:20:50.299799 (helm-update) executing helm-after-update-hook

\ 21:20:50.300989 (helm-update) (symbol-value hook) = (helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to- first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:50.302284 (helm-update) (default-value hook) = (helm-ff-auto-expand-to-home-or-root helm-ff-update-when-only-one-matched helm-ff-move-to-first-real-candidate helm-confirm-and-exit-hook)

\ 21:20:50.303458 (helm-update) executed helm-after-update-hook

\ 21:20:50.304622 (helm-update) end update

\ 21:20:50.411247 (helm-check-new-input) helm-pattern = "foo"

\ 21:20:50.413239 (helm-check-new-input) helm-input = "foo"

\ 21:20:50.415015 (helm-update) Start updating

\ 21:20:50.416701 (helm-update) (mapcar (lambda (s) (assoc-default (quote name) s)) delayed-sources) = ("helm-ag-r")

\ 21:20:50.418331 (helm-update) end update

\ 21:20:50.525067 (helm-check-new-input) helm-pattern = "food"

\ 21:20:50.527057 (helm-check-new-input) helm-input = "food"

\ 21:20:50.528797 (helm-update) Start updating

\ 21:20:50.530459 (helm-update) (mapcar (lambda (s) (assoc-default (quote name) s)) delayed-sources) = ("helm-ag-r")

\ 21:20:50.532058 (helm-update) end update

\ 21:20:50.765395 (helm-cleanup) start cleanup

\ 21:20:50.767721 (helm-cleanup) executing helm-cleanup-hook

\ 21:20:50.769268 (helm-cleanup) (symbol-value hook) = (helm-ff-save-history helm-reset-yank-point helm-match-line-cleanup)

\ 21:20:50.770684 (helm-cleanup) (default-value hook) = (helm-ff-save-history helm-reset-yank-point helm-match-line-cleanup)

\ 21:20:50.772075 (helm-cleanup) executed helm-cleanup-hook

\ 21:20:50.773304 (helm-frame-or-window-configuration) helm-save-configuration-functions = (set-window-configuration . current-window-configuration)

\ 21:20:50.775449 (helm-internal) restore variables

\ 21:20:50.776618 (helm-execute-selection-action) executing helm-before-action-hook

\ 21:20:50.777813 (helm-execute-selection-action) (symbol-value hook) = (helm-ff-before-action-hook-fn)

\ 21:20:50.778984 (helm-execute-selection-action) (default-value hook) = (helm-ff-before-action-hook-fn)

\ 21:20:50.780242 (helm-execute-selection-action) executed helm-before-action-hook

\ 21:20:50.781371 (helm-current-position) Restore position at (254 . 1) in buffer scratch

\ 21:20:50.782486 (helm-execute-selection-action-1) executing action

\ 21:20:50.783614 (helm-execute-selection-action) executing helm-after-action-hook

\ 21:20:50.784741 (helm-execute-selection-action) (symbol-value hook) = (helm-files-save-file-name-history)

\ 21:20:50.785891 (helm-execute-selection-action) (default-value hook) = (helm-files-save-file-name-history)

\ 21:20:50.787056 (helm-execute-selection-action) executed helm-after-action-hook

\ 21:20:50.788190 (helm-internal) [End session] -----------------------------------------

\ 21:20:50.789313 (helm-internal) (setq helm-alive-p nil) = nil