Skip to content

Commit d46ff1e

Browse files
committed
Backup update
1 parent ce076ec commit d46ff1e

File tree

265 files changed

+78590
-2289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+78590
-2289
lines changed

last_update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-10-01T02:33:57Z
1+
2024-10-08T00:49:29Z
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"active_lock_reason": null,
3+
"assignee": null,
4+
"assignees": [],
5+
"author_association": "NONE",
6+
"body": "Note: I could be using this wrong.\r\n\r\nWhat I'm trying to do is use `RpcNotify` over the main `nvim` socket. So similar to the example remote plugin, but without the need for a nvim plugin + `jobstart`.\r\n\r\nMy code so far:\r\n\r\n```go\r\nfunc main() {\r\n\tnvim, err := waitForNvim(socketPath)\r\n\r\n\tif err != nil {\r\n\t\tfmt.Fprintf(os.Stderr, \"Error connecting to nvim: %v\\n\", err)\r\n\t\treturn\r\n\t}\r\n\r\n\tdefer nvim.Close()\r\n\r\n\tnvim.RegisterHandler(\"hello\", hello)\r\n}\r\n\r\nfunc waitForNvim(socketPath string) (*nvim.Nvim, error) {\r\n\tfor {\r\n\t\tnvim, err := nvim.Dial(socketPath)\r\n\r\n\t\tif err == nil {\r\n\t\t\t_, err := nvim.APIInfo()\r\n\r\n\t\t\tif err == nil {\r\n\t\t\t\treturn nvim, nil\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\ttime.Sleep(500 * time.Millisecond)\r\n\t}\r\n\r\n\t// return nil, errors.New(\"Timed out waiting for nvim\")\r\n}\r\n\r\nfunc hello(v *nvim.Nvim, args []string) {\r\n\tfmt.Println(fmt.Sprintf(\"Hello %s\\n\", strings.Join(args, \" \")))\r\n}\r\n```\r\n\r\nBut when I run `rpcnotifiy(0, 'hello', 'world')`, I'm not seeing the go `hello` function being called.\r\n\r\n---\r\n\r\nEdit: I should mention, the go code has been extracted from a project where the processing using neovim/go-client is kept open, just so we don't think the process is exiting immediately.",
7+
"closed_at": "2024-10-04T04:53:00Z",
8+
"closed_by": {
9+
"avatar_url": "https://avatars.githubusercontent.com/u/4729?v=4",
10+
"events_url": "https://api.github.com/users/mikew/events{/privacy}",
11+
"followers_url": "https://api.github.com/users/mikew/followers",
12+
"following_url": "https://api.github.com/users/mikew/following{/other_user}",
13+
"gists_url": "https://api.github.com/users/mikew/gists{/gist_id}",
14+
"gravatar_id": "",
15+
"html_url": "https://github.com/mikew",
16+
"id": 4729,
17+
"login": "mikew",
18+
"node_id": "MDQ6VXNlcjQ3Mjk=",
19+
"organizations_url": "https://api.github.com/users/mikew/orgs",
20+
"received_events_url": "https://api.github.com/users/mikew/received_events",
21+
"repos_url": "https://api.github.com/users/mikew/repos",
22+
"site_admin": false,
23+
"starred_url": "https://api.github.com/users/mikew/starred{/owner}{/repo}",
24+
"subscriptions_url": "https://api.github.com/users/mikew/subscriptions",
25+
"type": "User",
26+
"url": "https://api.github.com/users/mikew"
27+
},
28+
"comment_data": [
29+
{
30+
"author_association": "NONE",
31+
"body": "Yep I see my problems now.\r\n\r\n- `nvim.Close()` shouldn't be called in `waitForNvim`\r\n- The `rpcnotify` from neovim should use the channel id",
32+
"created_at": "2024-10-04T04:53:00Z",
33+
"html_url": "https://github.com/neovim/go-client/issues/179#issuecomment-2392818859",
34+
"id": 2392818859,
35+
"issue_url": "https://api.github.com/repos/neovim/go-client/issues/179",
36+
"node_id": "IC_kwDOAZWux86On4Sr",
37+
"performed_via_github_app": null,
38+
"reactions": {
39+
"+1": 0,
40+
"-1": 0,
41+
"confused": 0,
42+
"eyes": 0,
43+
"heart": 0,
44+
"hooray": 0,
45+
"laugh": 0,
46+
"rocket": 0,
47+
"total_count": 0,
48+
"url": "https://api.github.com/repos/neovim/go-client/issues/comments/2392818859/reactions"
49+
},
50+
"updated_at": "2024-10-04T04:53:00Z",
51+
"url": "https://api.github.com/repos/neovim/go-client/issues/comments/2392818859",
52+
"user": {
53+
"avatar_url": "https://avatars.githubusercontent.com/u/4729?v=4",
54+
"events_url": "https://api.github.com/users/mikew/events{/privacy}",
55+
"followers_url": "https://api.github.com/users/mikew/followers",
56+
"following_url": "https://api.github.com/users/mikew/following{/other_user}",
57+
"gists_url": "https://api.github.com/users/mikew/gists{/gist_id}",
58+
"gravatar_id": "",
59+
"html_url": "https://github.com/mikew",
60+
"id": 4729,
61+
"login": "mikew",
62+
"node_id": "MDQ6VXNlcjQ3Mjk=",
63+
"organizations_url": "https://api.github.com/users/mikew/orgs",
64+
"received_events_url": "https://api.github.com/users/mikew/received_events",
65+
"repos_url": "https://api.github.com/users/mikew/repos",
66+
"site_admin": false,
67+
"starred_url": "https://api.github.com/users/mikew/starred{/owner}{/repo}",
68+
"subscriptions_url": "https://api.github.com/users/mikew/subscriptions",
69+
"type": "User",
70+
"url": "https://api.github.com/users/mikew"
71+
}
72+
}
73+
],
74+
"comments": 1,
75+
"comments_url": "https://api.github.com/repos/neovim/go-client/issues/179/comments",
76+
"created_at": "2024-10-04T00:55:28Z",
77+
"events_url": "https://api.github.com/repos/neovim/go-client/issues/179/events",
78+
"html_url": "https://github.com/neovim/go-client/issues/179",
79+
"id": 2565219256,
80+
"labels": [],
81+
"labels_url": "https://api.github.com/repos/neovim/go-client/issues/179/labels{/name}",
82+
"locked": false,
83+
"milestone": null,
84+
"node_id": "I_kwDOAZWux86Y5iO4",
85+
"number": 179,
86+
"performed_via_github_app": null,
87+
"reactions": {
88+
"+1": 0,
89+
"-1": 0,
90+
"confused": 0,
91+
"eyes": 0,
92+
"heart": 0,
93+
"hooray": 0,
94+
"laugh": 0,
95+
"rocket": 0,
96+
"total_count": 0,
97+
"url": "https://api.github.com/repos/neovim/go-client/issues/179/reactions"
98+
},
99+
"repository_url": "https://api.github.com/repos/neovim/go-client",
100+
"state": "closed",
101+
"state_reason": "not_planned",
102+
"timeline_url": "https://api.github.com/repos/neovim/go-client/issues/179/timeline",
103+
"title": "`RpcNotify` not happening",
104+
"updated_at": "2024-10-04T04:53:00Z",
105+
"url": "https://api.github.com/repos/neovim/go-client/issues/179",
106+
"user": {
107+
"avatar_url": "https://avatars.githubusercontent.com/u/4729?v=4",
108+
"events_url": "https://api.github.com/users/mikew/events{/privacy}",
109+
"followers_url": "https://api.github.com/users/mikew/followers",
110+
"following_url": "https://api.github.com/users/mikew/following{/other_user}",
111+
"gists_url": "https://api.github.com/users/mikew/gists{/gist_id}",
112+
"gravatar_id": "",
113+
"html_url": "https://github.com/mikew",
114+
"id": 4729,
115+
"login": "mikew",
116+
"node_id": "MDQ6VXNlcjQ3Mjk=",
117+
"organizations_url": "https://api.github.com/users/mikew/orgs",
118+
"received_events_url": "https://api.github.com/users/mikew/received_events",
119+
"repos_url": "https://api.github.com/users/mikew/repos",
120+
"site_admin": false,
121+
"starred_url": "https://api.github.com/users/mikew/starred{/owner}{/repo}",
122+
"subscriptions_url": "https://api.github.com/users/mikew/subscriptions",
123+
"type": "User",
124+
"url": "https://api.github.com/users/mikew"
125+
}
126+
}

0 commit comments

Comments
 (0)