Skip to content

test: go rpc app - #2

Closed
vieitesss wants to merge 18 commits into
mainfrom
test/go-rpc-app
Closed

test: go rpc app#2
vieitesss wants to merge 18 commits into
mainfrom
test/go-rpc-app

Conversation

@vieitesss

Copy link
Copy Markdown
Owner

No description provided.

@vieitesss vieitesss changed the title refactor: go rpc app test: go rpc app May 25, 2026
@vieitesss
vieitesss requested a review from Copilot May 25, 2026 18:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a small Go-based Msgpack-RPC server and a Lua caller to exercise it from this Neovim configuration.

Changes:

  • Add features.test-rpc Lua module that starts an RPC job and makes a multiply request.
  • Add a Go RPC app (go/test-rpc) registering a multiply handler via github.com/neovim/go-client.
  • Invoke the RPC test from init.lua and introduce a standalone Go module under go/.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
lua/features/test-rpc/init.lua Starts an RPC job and issues a multiply request, printing the response.
init.lua Runs the new test-rpc feature during startup.
go/test-rpc/main.go Initializes the Go RPC server over stdio and registers the handler.
go/test-rpc/test.go Implements argument parsing and the multiply handler.
go/README.md Documents the Go “features” folder and the test-rpc example.
go/go.mod Adds a Go module and dependency on github.com/neovim/go-client.
go/go.sum Adds checksums for the new Go dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread init.lua Outdated
Comment thread go/test-rpc/test.go Outdated
Comment thread go/test-rpc/test.go Outdated
Comment thread go/test-rpc/test.go Outdated
Comment thread go/go.mod Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 9 changed files in this pull request and generated 5 comments.

Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread init.lua Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 4 comments.

Comment thread init.lua Outdated
Comment thread lua/features/test-rpc/init.lua
Comment thread go/test-rpc/main.go
Comment thread lua/features/test-rpc/init.lua

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 6 comments.

Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua
Comment thread lua/features/test-rpc/init.lua Outdated
Comment thread lua/features/test-rpc/init.lua
Comment thread go/test-rpc/main.go
Comment thread go/go.mod Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 10 changed files in this pull request and generated 6 comments.

Comment on lines +19 to +20
local info = vim.json.decode(data[1])
vim.print("result: " .. info.result)
Comment on lines +70 to +74

job = start_job()
if job < 1 then
return
end
Comment on lines +107 to +111
local function ensure_autocmd()
vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
pattern = { "*" },
callback = function(_)
if job and job > 0 then
})
if j == 0 then
vim.notify(
"invalid arguments to jobstart(): `" .. binary .. "` and `nil`",
})
if ok and chan > 0 then
channel = chan
vim.print(attempts)
Comment thread go/go.mod
Comment on lines +3 to +4
go 1.26.2

@vieitesss vieitesss closed this May 26, 2026
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