Comments (11)
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.
- M-x
plsense--log-enable-logging
- Get this trouble
- M-x
plsense--log-open-log
- Paste or attach the buffer string
from emacs-plsense.
@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.
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.
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.
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
aboutmajor-mode
- M-x
describe-variable
aboutac-sources
- M-x
from emacs-plsense.
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.
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.
No, I don't use it. This is my emacs configuration file: http://pastebin.com/1aXmbxmG.
from emacs-plsense.
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.
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.
@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)
- FATAL error is not handled
- When popup completion by auto-complete.el, the candidate help is not shown
- chmod +x bin/* HOT 2
- REQ - company mode backend for plsense HOT 2
- M-x plsense-server-start fails HOT 4
- Emacs hangs after typing M-x plsense-server-start HOT 5
- Great Tool, but need help using it HOT 6
- Documentation is not displayed more than one time HOT 1
- plsense-buffer-is-ready returns "Not Found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-plsense.