Skip to content

Conversation

@kermorgant
Copy link
Contributor

@kermorgant kermorgant commented Aug 5, 2018

solves #41, #42 and #56

references

replace 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

@zonuexe
Copy link
Member

zonuexe commented Aug 8, 2018

@kermorgant
Can you merge this PR now? Or are you planning to merge after Phpactor:0.9.0 is released?

refs #47

@kermorgant
Copy link
Contributor Author

@zonuexe yes, I was initially planning a phpactor 0.9.0 release but I could merge that this evening if you prefer

@kermorgant
Copy link
Contributor Author

I just added some changes following recent release of phpactor 0.9. I'll use it a bit before asking for review.

@kermorgant
Copy link
Contributor Author

still needs support for force_reload (not checked if more are needed)

@kermorgant kermorgant requested a review from zonuexe September 14, 2018 08:22
(set-buffer buf)
(revert-buffer t t t))
(find-file path)))
(goto-char (1+ (byte-to-position offset))))
Copy link
Contributor Author

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

@kermorgant kermorgant force-pushed the phpactor_0.9-compatibility branch from 68d30b3 to 3ccad9b Compare September 16, 2018 18:49
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
@kermorgant kermorgant force-pushed the phpactor_0.9-compatibility branch from 0d4bfaf to 4a5fc2c Compare September 18, 2018 08:40
@kermorgant
Copy link
Contributor Author

@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>
Copy link
Member

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>

Copy link
Member

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")
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This progn is redundant.

@zonuexe zonuexe merged commit d20ae65 into emacs-php:master Sep 19, 2018
@zonuexe
Copy link
Member

zonuexe commented Sep 19, 2018

@kermorgant
Thank you for great work.
I made a trivial review, but since these are not release blockers, I merged.

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

Successfully merging this pull request may close these issues.

2 participants