Comments (2)
Attempted fix of this and #77 at rish987/lean.nvim@c38dae8 (will add new unit tests soon). However, it doesn't work because the returned cancellation function from vim.lsp.buf_request()
seemingly does nothing. You can even try this in lsp.lua
(rish987/lean.nvim@3e2e21d):,
-- Fetch goal state information from the server.
function lsp.plain_goal(bufnr, handler)
-- Shift forward by 1, since in vim it's easier to reach word
-- boundaries in normal mode.
local params = vim.lsp.util.make_position_params()
params.position.character = params.position.character + 1
local id_map, cancel = vim.lsp.buf_request(bufnr, "$/lean/plainGoal", params, handler)
cancel()
-- This doesn't work either:
--
--for client_id, req_id in pairs(id_map) do
-- vim.lsp.get_client_by_id(client_id).cancel_request(req_id)
--end
end
and everything still passes.
Any ideas? Could this be a neovim bug? Will try to put together an MWE tomorrow.
from lean.nvim.
(^ This seems to have something to do with the cancel function sending a cancelRequest
to the server, rather than just cancelling the callback, which is what I assumed it does. And it looks like the Lean servers don't do anything on cancelRequest
? Investigating...)
from lean.nvim.
Related Issues (20)
- neovim can freeze up / use 100% CPU when editing or navigating around Lean files HOT 5
- Correct way to quit neovim while the plugin is running HOT 2
- Distinguish \perp and \bot HOT 1
- checkhealth error: failed to run healthcheck for "lean" plugin HOT 1
- nvim-treesitter: upstream Tree-Sitter grammar and queries HOT 6
- Find executable via `elan which` HOT 7
- Unicode LaTeX tab completion HOT 10
- Anonymous sections aren't treated as a pair HOT 1
- "Try this" replaces incorrect segment HOT 6
- Consider making the max width / height of infoviews work via percentages of real estate rather than columns/rows
- Improve `:Telescope loogle` HOT 1
- highlights.scm: @boolean -> @constant.builtin.boolean, @repeat -> @keyword.control.repeat HOT 4
- Help for a newbie HOT 3
- Client 1 quit with exit code 0 and signal 11 HOT 5
- Infoview autoclose HOT 1
- Musl usage error message HOT 4
- Inaccessible hypothesis highlighting should highlight inaccessible names even when there are alternate accessible ones
- (Re-)review / harmonize with the VSCode options
- Infoview tooltips should render their contents as markdown HOT 1
- Spawning language server with cmd: `lean` failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lean.nvim.