abo-abo / function-args

C++ completion for GNU Emacs
120 stars 10 forks source link

fa-show reports 'Wrong type argument'? #28

Closed zhro closed 9 years ago

zhro commented 9 years ago

GNU Emacs 24.5.1 in -nw terminal mode.

Slimmed .emacs:

(require 'cedet)

(setq semanticdb-default-save-directory "~/.semanticdb/")

(semantic-mode 1)

(add-to-list 'load-path "~/.emacs.d/function-args")
(add-to-list 'load-path "~/.emacs.d/swiper") ;; function-args dependency
(require 'function-args)
(fa-config-default)

Using the collowing code:

class Rectangle {
  int width;
  int height;

public:
  void set_values(int, int);
};

int main () {
  Rectangle rect;

  rect.set_values(

  return 0;
}

With the cursor set to the right of rect.set_values(, I activate fa-show and get the following error in the minibuffer:

Wrong type argument: integerp, nil

abo-abo commented 9 years ago

Could be a problem with semantic parser. Try M-x semantic-force-refresh.

zhro commented 9 years ago

Spectacularly fast response. You can close this as I'm new to function-args and mixed up M-i with M-u.

This error occurs when invoking fa-abort without a previous call to fa-show.

abo-abo commented 9 years ago

Lol.