tkf / emacs-jedi

Python auto-completion for Emacs
http://tkf.github.io/emacs-jedi/latest/
666 stars 89 forks source link

Failed to enable logging #251

Closed shiyuangu closed 9 years ago

shiyuangu commented 9 years ago

Hi, I tried to enable jedi server logging by (setq jedi:server-args '("--log /home/sgu/tmp/jedi.log")) but failed with error

jediepcserver.py: error: unrecognized arguments: --log /home/sgu/tmp/jedi.log
Process epc:server:2 exited abnormally with code 2

If I directly run jediepcserver.py with the same argument in the terminal, it runs without errors. Except the logging problem, Jedi-emacs works well for me. What is the correct way to turn on the logging? I want to see what jedi python api is called when an jedi-elisp function is called. Will I see this info from the logging? Thank you.

syohex commented 9 years ago

(setq jedi:server-args '("--log /home/sgu/tmp/jedi.log"))

jedi:server-args must be list of string. So please try again with following code.

(setq jedi:server-args '("--log" "/home/sgu/tmp/jedi.log"))
shiyuangu commented 9 years ago

Yes, this solves the problem. Thank you!