aki2o / emacs-plsense

Provide omni completion for Perl.
29 stars 4 forks source link

M-x plsense-server-start fails #6

Open shuntaka opened 9 years ago

shuntaka commented 9 years ago

Hi

M-x plsense-server-start 

fails and I get "Start server is failed" (however, after launching plsense server manually from the terminal by executing plsense serverstart M-x plsense-reopen-current-buffer succeeds, and seems like plsense is working properly)

Do I need any extra settings (such as appending an entry to exec-path) besides the setting on "Configuration" section on https://github.com/aki2o/emacs-plsense/blob/master/README.md

I greatly appreciate your response.

aki2o commented 9 years ago

Hi @shuntaka What's shown by M-x plsense-server-status? If "running" is shown, maybe timeout has happen. it's no problem.

shuntaka commented 9 years ago

Thanks for the response. M-x plsense-server-status returns the following messages:

Main Server is Not running. Work Server is Not running. Resolve Server is Not Running

If I execute "plsense svstart" on the terminal, then M-x plsense-server-status returns "Main Server is Running" as is expected.

aki2o commented 9 years ago

If the servers has come "Running", it's OK to execute on terminal. Then, plsense functions will be started by M-x plsense-reopen-current-buffer.

But, Starting servers should be done by M-x plsense-server-start... Don't it work even if you retry M-x plsense-server-start?

shuntaka commented 9 years ago

Hi, aki2o I have found that the problem was that GUI emacs did not inherit the value of PATH from the shell. Adding the path to plsense to PATH explicitly in init.el fixed the issue (when using perl 5.xx.x with perlbrew);

(setenv "PATH" (concat '"/Users/shuntaka/perl5/perlbrew/perls/perl-5.xx.x/bin:" (getenv "PATH")))

thanks.