Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Great Tool, but need help using it #8

Open
KevinVanWorkum opened this issue Sep 29, 2015 · 6 comments
Open

Great Tool, but need help using it #8

KevinVanWorkum opened this issue Sep 29, 2015 · 6 comments

Comments

@KevinVanWorkum
Copy link

I know your English is not good. But my emacs is not good. I need more help getting started. I can use it but not automatically. I have to manually start 'plsense-server-start' and 'plsense-setup-current-buffer'. How to automatically use it when opening a perl file?

P.S.

Do you play Go (igo) on kgs, igs, or ogs? I'm looking for friends to play igo with.

@aki2o
Copy link
Owner

aki2o commented Oct 1, 2015

Hi, @KevinVanWorkum
Do you have the following config?

(plsense-config-default)

If so, check the major-mode, which you use for Perl, exists in plsense-enable-modes.

Do you play Go (igo) on kgs, igs, or ogs?

I don't know them... What are igo and kgs, igs, ogs?

BTW:
For checking whether to activate automatically when opening a perl file,
check plsense-setup-current-buffer exists in the result of M-x describe-variable for the major-mode hook (ex. cperl-mode-hook).
For starting server automatically, set t to plsense-server-start-automatically-p.

@KevinVanWorkum
Copy link
Author

Thanks, but I'm still having trouble.

(require 'plsense) and (plsense-config-default) is in my .emacs file.

plsense-enable-modes is: (perl-mode cperl-mode), I'm using cperl-mode.

cperl-mode-hook is: (plsense-setup-current-buffer auto-complete-mode
flymake-mode)

I start 'plsense svstart' mannually on the command line.

M-x plsense-server-status says:
Main Server is Running.
Work Server is Running.
Resolve Server is Running.

M-x plsense-buffer-is-ready says: No
M-x plsense-reopen-current-buffer doesn't help.

On Wed, Sep 30, 2015 at 11:52 PM, Hiroaki Otsu notifications@github.com
wrote:

Hi, @KevinVanWorkum https://github.com/KevinVanWorkum
Do you have the following config?

(plsense-config-default)

If so, check the major-mode, which you use for Perl, exists in
plsense-enable-modes.

Do you play Go (igo) on kgs, igs, or ogs?

I don't know them... What are igo and kgs, igs, ogs?

BTW:
For checking whether to activate automatically when opening a perl file,
check plsense-setup-current-buffer exists in the result of M-x
describe-variable for the major-mode hook (ex. cperl-mode-hook).
For starting server automatically, set t to
plsense-server-start-automatically-p.


Reply to this email directly or view it on GitHub
#8 (comment).

Kevin Van Workum, PhD
Sabalcore Computing Inc.
"Where Data Becomes Discovery"
http://www.sabalcore.com
877-492-8027 ext. 1011

@aki2o
Copy link
Owner

aki2o commented Oct 2, 2015

I might have found the cause.
Try to remove auto-complete-mode from cperl-mode-hook.
That might switch auto-complete-mode to off because plsense-setup-current-buffer invokes (auto-complete-mode t) before that.

@KevinVanWorkum
Copy link
Author

Thanks, but I think I found the problem. Starting the server manually from
the command line does not work. The server starts, but emacs doesn't
communicate with it. If I set plsense-server-start-automatically-p to t,
then everything works.

Another problem I had was plsense sometimes could not open a socket because
of "Address already is use". I needed to wait for the ports to become
available after stopping the server.

On Fri, Oct 2, 2015 at 9:31 AM, Hiroaki Otsu notifications@github.com
wrote:

I might have found the cause.
Try to remove auto-complete-mode from cperl-mode-hook.
That might switch auto-complete-mode to off because
plsense-setup-current-buffer invokes (auto-complete-mode t) before that.


Reply to this email directly or view it on GitHub
#8 (comment).

Kevin Van Workum, PhD
Sabalcore Computing Inc.
"Where Data Becomes Discovery"
http://www.sabalcore.com
877-492-8027 ext. 1011

@aki2o
Copy link
Owner

aki2o commented Oct 2, 2015

The server starts, but emacs doesn't communicate with it. If I set plsense-server-start-automatically-p to t, then everything works.

You need M-x plsense-server-start even if you already started the server in terminal.
If plsense-server-start-automatically-p is t, it's done automatically.

Another problem I had was plsense sometimes could not open a socket because of "Address already is use". I needed to wait for the ports to become available after stopping the server.

I suppose it's unavoidable because maybe it's a network specification.
Why do you need to stop the server?

@KevinVanWorkum
Copy link
Author

On Fri, Oct 2, 2015 at 10:07 AM, Hiroaki Otsu notifications@github.com
wrote:

The server starts, but emacs doesn't communicate with it. If I set
plsense-server-start-automatically-p to t, then everything works.

You need M-x plsense-server-start even if you already started the server
in terminal.

OK. That wasn't obvious to me.

If plsense-server-start-automatically-p is t, it's done automatically.

Another problem I had was plsense sometimes could not open a socket
because of "Address already is use". I needed to wait for the ports to
become available after stopping the server.

I suppose it's unavoidable because maybe it's a network specification.
Why do you need to stop the server?

Normally I guess you wouldn't need to to stop. But I was trying to figure
out why it wasn't working.


Reply to this email directly or view it on GitHub
#8 (comment).

Kevin Van Workum, PhD
Sabalcore Computing Inc.
"Where Data Becomes Discovery"
http://www.sabalcore.com
877-492-8027 ext. 1011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants