You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package demo
type StructDemo struct {
A int // 字段A
}
I select struct StructDemo and M-x: org-ai-refactor-code with prompt:"add json tag"
then generated code become:
type StructDemo struct {
A int `json:"A"` // \345\255\227\346\256\265A
}
If I replace (encode-coding-string (buffer-substring-no-properties start end) 'utf-8) with (buffer-substring-no-properties start end) in function org-ai--output-to-buffer
the bug gone .
another related bug:
when I apply the patch (after answer y or n ),would got
I select struct
StructDemo
and M-x:org-ai-refactor-code
with prompt:"add json tag"then generated code become:
If I replace
(encode-coding-string (buffer-substring-no-properties start end) 'utf-8)
with(buffer-substring-no-properties start end)
in functionorg-ai--output-to-buffer
the bug gone .
another related bug:
when I apply the patch (after answer y or n ),would got
GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of
2024-10-12
The text was updated successfully, but these errors were encountered: