kiwanami / emacs-epc Goto Github PK
View Code? Open in Web Editor NEWA RPC stack for Emacs Lisp
A RPC stack for Emacs Lisp
Python EPC のバグで時々 Emacsから送られてきた s-exp のデコードをミスってエラーを出してしまうのですが、この場合どうやってエラーを通知したら良いんでしょうか。 epc-error
で通知しようにも s-exp のデコード前なので uid が不明です。とりあえず uid=0 や nil を返せば "RET-EPC-ERR: NOT FOUND:" と通知してくれるようなので、その方針でいこうと思いますが、いつかプロトコルがはっきりすると良いなと思います。
どちらにせよ Python EPC のバグを直せば問題にならないので急ぎのリクエストでは無いのですが、気になったので。
emacs-epc requires 'concurrent, which isn't provided.
Maybe it should use 'defferred ?
Thanks!
An Emacs-Jedi user reported that increasing epc:accept-process-timeout
solves timeout problem.
See: tkf/emacs-jedi#83
This project has no README.
I arrived here from a site that has this project as a dependency, which suggests this project is for real and meant to be used, but it is extremely off-putting that there is not even the smallest README.
At a minimum, I'd expect to find
My normal policy is "docs or it doesn't exist"
Thanks!
See
ftp://ftp.gnu.org/old-gnu/Manuals/emacs/html_chapter/emacs_36.html
M x : webkit-open-url to open url.
I got this error.
system : ubuntu 16.04 LTS
emacs : gnuemacs 26
how i fix this problem?
help me . please
I was currently installing packages and found the error that emacs displays when i open it up in doom version. I found out that the Unicode module/package is the reason for the message. The moment I installed this package the message above started to show. As soon as I commented the Unicode module the message no longer appeared. So boys, You better find an alternative to the Unicode module in doom emacs.
Error Occurs when:
Unicode
Error is solved when:
;; Unicode
I will submit an alternative to the Unicode package when i find one.
Would be nice to fix this, since if the user uses any package that depends on this, they'll get a warning on startup.
Hi.
I'm currently working on EPC implementation on Scala (called Scala-elrpc).
I want to use Scala-elrpc to connect to running GUI application, but I don't know how.
Can I use epc:start-epc-debug
or is there no way to do that?
(defun epc:start-epc-debug (port)
"[internal] Return an epc:manager instance which is set up partially."
(epc:init-epc-layer
(make-epc:manager :server-process nil
:commands (cons "[DEBUG]" nil)
:port port
:connection (epc:connect "localhost" port))))
Thank you for your help.
Can you make a 0.1.1 release because latest release of emacs-edbi: in melpa-stable http://stable.melpa.org/#/edbi depends on version 0.1.1 which isn't tagged yet in here?
It's not so huge because you can get 0.1.1 from marmalade repo but if someone wants to solely rely on melpa-stable then it can't be installed only from melpa-stable: kiwanami/emacs-edbi#38
Hi, I wonder if the epc client can connect to the remote server by ip and port?
I have some remote service those can't start locally.
Currently running Emacs 24.3.1, trying to install jedi => epc => concurrent => deferred.
EPC (20140609.2234 in MELPA) lists concurrent as a direct dependency.
Concurrent (0.3.1 => 20161228.1930) lists 'emacs-24.3' and deferred (0.5.0) as dependencies.
Deferred (0.5.0 => 20170901.630) lists 'emacs-24.4' as a dependency, which is not satisfied by. Does this imply that the minimum version of emacs epc is usable with is 24.4 implicitly? It seems strange for concurrent to be compatible with different versions than it's own dependency.
README 充実しましたね! README あると使ってて安心します。
いくつか気になった点がありました。
The EPC stack can translate following types:
- nil
- symbol
- number
- string
- list
- alist
- complex object of list and alist.
とありますが、 ここで alist
を特別扱いする必要はありますか? リテラルとして list
と cons
(.
の扱い) がパース出来れば、 alist
を特別扱いする必要は無い気がします。 alist
を hash table とかに自動的に変換する必要があれば別ですが、そもそも受け取ったリストが alist
かどうかを確実に判断することは不可能なのでそれは無理だと思います。
EPC が双方向にメソッド呼び出しが可能だという特徴が抜けている気がします。 例えば、 API Overview の図だと、クライアントがサーバーを呼び出す使い方しか見せてません。 あまり RPC 詳しく無い人が見ると、なんで epcs:
以下じゃなくて epc:
以下に epc:define-method
があるんだ、って思うかもしれません (というか私がそうでした)。
あと細かい所だと API Overview の図で epc:call-deferred
のリプライを示す矢印が無いのが気になりました...。
epc:process-available-input の末尾の epc:run-when-idle ですが、引数に connection も必要じゃないでしょうか?
diff --git a/epc.el b/epc.el
index 1fbee87..b15d9d6 100644
--- a/epc.el
+++ b/epc.el
@@ -165,7 +165,7 @@ return epc:connection object."
(defun epc:process-available-input (connection process)
"Process all complete messages that have arrived from Lisp."
(with-current-buffer (process-buffer process)
(while (epc:net-have-input-p)
(let ((event (epc:net-read-or-lose process))
(ok nil))
(epc:log "<< RECV [%S]" event)
(unwind-protect
(condition-case err
(progn
(apply 'cc:signal-send
(cons (epc:connection-channel connection) event))
(setq ok t))
('error (epc:log "MsgError: %S / <= %S" err event)))
(unless ok
- (epc:run-when-idle 'epc:process-available-input process)))))))
+ (epc:run-when-idle 'epc:process-available-input connection process)))))))
(defun epc:net-have-input-p ()
"Return true if a complete message is available."
Python の EPC binding (https://github.com/tkf/python-epc) を書いているんですが、 call メソッド の仕様について質問があります。
epc:call-deferred
の call signature は
(epc:call-deferred MNGR METHOD-NAME ARGS)
となっていますが、 ARGS にはリスト以外のオブジェクト、例えば int を入れてもサーバーに送れるようです。サーバー側で method を呼ぶ際に
method(ARGS)
method(ARGS[0], ARGS[1], ..., ARGS[-1])
の二通りの呼び方があると思うのですが、 ARGS がリスト以外も受け付ける必要がある場合、 2. の呼び方は出来ません。ただ、 1. の呼び方だと method 内部で ARGS を分解する必要があって、面倒です。 1. と 2. のどちらの呼び方を採用すべきですか?
I could not know the the type of the session ID.
In readme.md, UID is said to be following:
UID : The session ID, which is an unique ID generated by the caller side.
I thought, UID should be String but it actually is Integer.
Could you specify the type in readme.md?
(or, Can I use String instead of Integer?)
start-process
mixes stdout and stderr, so a warning may come before the port-str
, and causes a false error
to raise.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.