Skip to content
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

Create class not working #153

Open
Sasanidas opened this issue Nov 6, 2020 · 0 comments
Open

Create class not working #153

Sasanidas opened this issue Nov 6, 2020 · 0 comments

Comments

@Sasanidas
Copy link

Sasanidas commented Nov 6, 2020

I have some problems with the phpactor-create-new-class seems the json serialization is not working correclty (it may be related to this issue.
I'm using Emacs 27.1 compiled from the official tarball from the Emacs page.
This is part of the command output

Debugger entered--Lisp error: (wrong-type-argument json-value-p :null) json-serialize((:action "class_new" :parameters (:new_path :null :variant :null :overwrite_existing :null :current_path "/usr/Data_2/Programming/drupal-9.0.6/core/modules/aggregator/src/Entity/Feed.php")) :null-object nil :false-object :json-false)

(let ((json (phpactor--serialize-json (list :action action :parameters arguments))) (output (get-buffer-create "*Phpactor Output*")) (coding-system-for-write 'utf-8) (cwd (phpactor-get-working-dir))) (save-current-buffer (set-buffer output) (erase-buffer)) (save-current-buffer (set-buffer (get-buffer-create "*Phpactor Input*")) (setq default-directory cwd) (erase-buffer) (insert json) (call-process-region (point-min) (point-max) phpactor-executable nil output nil "rpc" (format "--working-dir=%s" default-directory)) (phpactor--parse-json output))) phpactor--rpc("class_new" (:new_path :null :variant :null :overwrite_existing :null :current_path "/usr/Data_2/Programming/drupal-9.0.6/core/modules/aggregator/src/Entity/Feed.php")) (apply #'phpactor-action-dispatch (phpactor--rpc (plist-get callback :action) parameters))

Thank you

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

No branches or pull requests

1 participant