-
Notifications
You must be signed in to change notification settings - Fork 12
Phpactor 0.9 compatibility #43
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
Phpactor 0.9 compatibility #43
Conversation
|
@kermorgant refs #47 |
|
@zonuexe yes, I was initially planning a phpactor 0.9.0 release but I could merge that this evening if you prefer |
713e921 to
d4234e3
Compare
|
I just added some changes following recent release of phpactor 0.9. I'll use it a bit before asking for review. |
|
still needs support for |
| (set-buffer buf) | ||
| (revert-buffer t t t)) | ||
| (find-file path))) | ||
| (goto-char (1+ (byte-to-position offset)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, I got
Wrong type argument: number-or-marker-p, nil
generated by byte-to-position given offset 0
68d30b3 to
3ccad9b
Compare
following those issues : emacs-php#41 emacs-php#42 emacs-php#56 replace deprecated rpc call and deprecated info key use the newer key short_description and class_import add "version" arg to phpactor-action-dispatch require specific rpc protocol version : This is a quite untolerant position towards future and maybe compatible versions of the rpc protol. probably a good idea to revisit this as soon as possible. add support for force_reload flag target phpactor 0.9 in composer.json
0d4bfaf to
4a5fc2c
Compare
|
@zonuexe I think we could merge this now. Is it ok for you ? |
| ;; Copyright (C) 2018 Friends of Emacs-PHP development | ||
|
|
||
| ;; Author: USAMI Kenta <tadsan@zonu.me> | ||
| ;; Mikael Kermorgant <mikael@kgtech.fi> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
|
|
||
| ;; Author: USAMI Kenta <tadsan@zonu.me> | ||
| ;; Mikael Kermorgant <mikael@kgtech.fi> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No blank line is needed.
| (defvar phpactor--buffer-name "*Phpactor*") | ||
|
|
||
| (defconst phpactor-command-name "phpactor") | ||
| (defconst phpactor--supported-rpc-version "1.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
|
||
| (let ((buf (find-buffer-visiting path))) | ||
| (when (and force_reload buf) | ||
| (progn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This progn is redundant.
|
@kermorgant |
solves #41, #42 and #56
references
infofield in suggestions phpactor/phpactor#547replace_file_source=>update_file_sourcephpactor/phpactor#550replace deprecated rpc call and deprecated info key
use the newer key short_description and class_import
add support for "version" arg to phpactor-action-dispatch (require specific rpc protocol version : This is a quite untolerant position towards future and maybe compatible versions of the rpc protol. probably a good idea to revisit this as soon as possible).
add support for force_reload flag
target phpactor 0.9 in composer.json