Create class not working
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- emacs-lisp, php
调研方向
首先在 Emacs 27.1 上重现 phpactor-create-new-class,然后检查 phpactor--serialize-json 以及 trace 中显示的 phpactor--rpc 调用。将 :null 值与 Emacs 的 json-serialize 行为进行比较;当命令完成且没有出现 wrong-type-argument json-value-p 错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Emacs Lisp
- 星标
- 47
- 派生
- 11
- 平均合并
- 12 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
emacs-php/phpactor.el 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 30/100
emacs-php/phpactor.el#161 · 1 条评论 ·
-
upstream
难度 4/5 3-5 天 新手友好度 35/100
emacs-php/phpactor.el#143 · 2 条评论 ·
-
behind from upstream bug
难度 3/5 1-2 天 新手友好度 25/100
emacs-php/phpactor.el#141 · 4 条评论 · 1 个 reaction ·
-
help wanted
难度 3/5 1-2 天 新手友好度 35/100
emacs-php/phpactor.el#140 ·
-
ensure complete output of phpactor-status is readable可能已有人在做 @kermorgant 于 2667 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
emacs-php/phpactor.el#123 ·
查看 emacs-php/phpactor.el 的全部 Issue
相似的 Issue
-
Gemini: respect PLANNING_DISABLED=1 in lifecycle context hooks可能已有人在做 @AmariAugustin 今天认领。 未关闭bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 87/100
OthmanAdi/planning-with-files#329 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 63/100
home-assistant/installer#322 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
datatug/datatug-apps#427 ·
维护者通常 1 天内回复
-
[eslint-plugin] valid-styles rejects <progress> pseudo-elements (::-webkit-progress-bar, ::-webkit-progress-value, ::-moz-progress-bar)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复