New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when Rest run
apparently with Treesitter http
#369
Comments
Do you have any requests before |
No. I'm using this simple file: https://github.com/rest-nvim/rest.nvim/blob/main/tests/reqs/basic_get.http |
Then I have no idea why the error occurs( I've copied your request and it works fine within my neovim. Maybe you should update your plugin and |
I might have a similar issue. The request previously worked fine but now produces an error Request
errors
|
Hi, are you running the request with your cursor over the request? It seems like you're trying to run it from line 7, which is empty and doesn't belong to the request on itself. Edit: please check |
Hi. Yes, i am running the request from line 8 where the Btw, if i try to run request from lines 1-3 (or any line before first empty line) the full request gets highlighted correctly, but still gives an error. |
So I personally have always found Treesitter to be very finicky when it comes to installs. I was having the same issue. I have two computers I use nvim on and both had the same issue.
|
Reinstalling treesitter grammars did not help. As for debugging, the issue in my case is in the parameters. Inlining values fixes the request, but, of course, lacks the functionality. this version works
|
For the sake of information, it is still not working for me, and I cannot make it work with the last case either... I am testing it on Ubuntu 22.04, in case it can be helpful. |
Using Neovim 0.10.0, I still cannot manage to run it, but the error is slightly different:
|
I'm testing a basic GET with
Rest run
:GET https://reqres.in/api/users?page=5
and I'm getting this error:
Treesitter HTTP is installed and highlighting correctly. I get this error once I run the command and don't receive any output.
Do you have any idea where to look?
I'm using the last rest-nvim and treesitter http version with Neovim 0.9.5 and nvim-treesitter 0.9.2
The text was updated successfully, but these errors were encountered: