-
Notifications
You must be signed in to change notification settings - Fork 179
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
when there is an error, proselint --json
should output the error to stderr
rather than stdout
#1307
Comments
To provide a little additional detail here: null-ls is a plugin that spawns external processes like Ideally, running Edit: also, if it's of any help, here is the relevant issue on our end, which contains more details (though we haven't been able to figure out what exactly triggers the error in the first place). |
I use null-ls with Neovim on a daily basis, but thank you. It's an honour to speak with you. This is strange behaviour on part of |
I find that if proselint is installed by the python installed by homebrew, then it will continuously give me such warning, i.e it can not open the file in ~/.cache/proselint folder. |
It seems that |
Odd, I suspected it would be a filesystem issue persistent with most modern UNIX systems. Alas, I should expect nothing less from MacOS 😂 I'll investigate later tonight. Fortunately we have MacOS available in GitHub actions so I can test it that way. |
Actually, it doesn’t seem to be reproducible on Linux as well. Using neovim nightly (commit 62916946), proselint 0.13.0, null-ls actual). |
I think, it's a permission issue. On my MacOS system the permissions for After changing the permissions
the error went away. Of course, it would still be nice, if Edit: Spoke too soon. The problem still occurs, but in my case less frequently. |
The error happens when |
I am using
proselint
withnull-ls
which is a neovim plugin, essentially what this plugin does iscat xxx.md | proselint --json
(assuming I am editing a markdown file),sometimes what proseling output will be not a valid json,
i.e something like this:
which may from here,
proselint/proselint/tools.py
Line 65 in ea8c574
i.e from this line. Since it is not a legal json, and then
null-ls
will parse it with error.It would be better that when
--json
is supplied, errors should be outputed tostderr
rather thanstdout
.The text was updated successfully, but these errors were encountered: