go-impl icon indicating copy to clipboard operation
go-impl copied to clipboard

wrong-type-argument stringp nil when executing the command with a custom interface

Open robert-zaremba opened this issue 1 year ago • 2 comments

I'm calling go-imple with the following sequence:

  • Receiver: k Keeper
  • Interface: ugov.MsgServer

The command fails with:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  call-process(nil nil t nil "k Keeper" "ugov.MsgServer")
  apply(call-process nil nil t nil ("k Keeper" "ugov.MsgServer"))
  process-file(nil nil t nil "k Keeper" "ugov.MsgServer")
  go-impl--execute("k Keeper" "ugov.MsgServer")
  go-impl("k Keeper" "ugov.MsgServer")
  funcall-interactively(go-impl "k Keeper" "ugov.MsgServer")
  call-interactively(go-impl record nil)
  command-execute(go-impl record)
  execute-extended-command(nil "go-impl" nil)
  funcall-interactively(execute-extended-command nil "go-impl" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

When running impl directly in the package directory, it outputs correctly a stub interface:

impl 'k Keeper' ugov.MsgServer

robert-zaremba avatar May 09 '23 09:05 robert-zaremba

image

Fired up Emacs to test this. git-gutter-fringe is working nicely with the built-in global-display-line-numbers-mode on Emacs 26.2.

kotatsuyaki avatar Jul 25 '19 12:07 kotatsuyaki