Giter Site home page Giter Site logo

Comments (11)

aki2o avatar aki2o commented on July 27, 2024

Hi, @kb01
Try to do M-x plsense-server-status and plsense-buffer-is-ready at the time.
If the server is running and the buffer is ready, show me the log at the time by the following steps.

  1. M-x plsense--log-enable-logging
  2. Get this trouble
  3. M-x plsense--log-open-log
  4. Paste or attach the buffer string

from emacs-plsense.

kb01 avatar kb01 commented on July 27, 2024

@aki2o This is the log:

Work Server is Running.
Resolve Server is Running.
Yes
Making completion list... [2 times]
[Log4E] Not exist log buffer.

from emacs-plsense.

aki2o avatar aki2o commented on July 27, 2024

It's not the log which I want...
The time of "show me the log at the time" means when you encountered the trouble which you refer to in this issue.

from emacs-plsense.

kb01 avatar kb01 commented on July 27, 2024

I followed all the steps, and thats what I got: http://postimg.org/image/3tco4plgr/.

and finally, after clicking save, I get this log:

14:21:40 [TRACE] Start add source : use warnings;
14:21:40 [DEBUG] Start request server. cmdstr[codeadd use warnings;] waitsec[nil]
14:21:40 [TRACE] Received server response.

14:25:49 [DEBUG] Start request server. cmdstr[update /home/kb01/Public/test.pl] waitsec[nil]
14:25:50 [TRACE] Received server response.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

14:25:50 [TRACE] Received server response.
Argument "__Positional_0001" isn't numeric in postincrement (++) at /usr/share/perl5/site_perl/Class/Std/Storable.pm line 51.

from emacs-plsense.

aki2o avatar aki2o commented on July 27, 2024

Hmm... It seems that plsense-setup-current-buffer have not been executed.
Normally, it should be set into the hook of major-mode by plsense-config-default.
Try to M-x plsense-setup-current-buffer.

And,

  • Is "Main Server is Running" shown by M-x plsense-server-status?
  • Show me the following values on the buffer.
    • M-x describe-variable about major-mode
    • M-x describe-variable about ac-sources

from emacs-plsense.

kb01 avatar kb01 commented on July 27, 2024

plsense-setup-current-buffer solved the problem.

"Main Server is Running" is shown.

  • major-mode:
major-mode is a variable defined in `C source code'.
Its value is lisp-interaction-mode
Original value was fundamental-mode
Local in buffer *scratch*; global value is fundamental-mode

  Automatically becomes buffer-local when set.

Documentation:
Symbol for current buffer's major mode.
The default value (normally `fundamental-mode') affects new buffers.
A value of nil means to use the current buffer's major mode, provided
it is not marked as "special".

When a mode is used by default, `find-file' switches to it before it
reads the contents into the buffer and before it finishes setting up
the buffer.  Thus, the mode and its hooks should not expect certain
variables such as `buffer-read-only' and `buffer-file-coding-system'
to be set up.

You can customize this variable.
  • ac-sources:
ac-sources is a variable defined in `auto-complete.el'.
Its value is
(ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers)


  Automatically becomes buffer-local when set.

Documentation:
Sources for completion.

What is the best way to fix this problem using .emacs configuration ?

from emacs-plsense.

aki2o avatar aki2o commented on July 27, 2024

Do you use lisp-interaction-mode for coding Perl?
If so, this trouble cause is that you use a major-mode other than the modes of plsense-enable-modes.
In this case, you should customize this variable like the following after (require 'plsense).

(add-to-list 'plsense-enable-modes 'lisp-interaction-mode)

from emacs-plsense.

kb01 avatar kb01 commented on July 27, 2024

No, I don't use it. This is my emacs configuration file: http://pastebin.com/1aXmbxmG.

from emacs-plsense.

aki2o avatar aki2o commented on July 27, 2024

major-mode and ac-sources are buffer local variables.
So, you should do M-x describe-variable on the buffer which you have this trouble on.

Although, maybe this trouble cause is the above I mentioned because manual plsense-setup-current-buffer solved the problem.

from emacs-plsense.

kb01 avatar kb01 commented on July 27, 2024

adding (add-to-list 'plsense-enable-modes 'lisp-interaction-mode) to the emacs configuration didn't solve the problem either: I need a more practical way for fixing this bug.

from emacs-plsense.

xTpx avatar xTpx commented on July 27, 2024

@aki2o
Similar problems, but M-x plsense-setup-current-buffer not working.
log4e-plsense show this.
14:49:19 [ERROR] failed setup : Cannot open load file: 没有那个文件或目录, anything Exception is 'file-error'. Cannot open load file: 没有那个文件或目录, anything at signal(file-error ("Cannot open load file" "没有那个文件或目录" "anything"))
http://pastebin.com/HqAywU33

from emacs-plsense.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.