Skip to content
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

add healthcheck #1149

Merged
merged 5 commits into from
Apr 1, 2024
Merged

add healthcheck #1149

merged 5 commits into from
Apr 1, 2024

Conversation

znd4
Copy link
Contributor

@znd4 znd4 commented Mar 26, 2024

Hi, I wasn't sure if the way I'd installed jsregexp was working, so I've tried to implement a :checkhealth. Let me

I'm not sure if I've formatted the messages properly. Also, on my machine the require("luasnip.util.jsregexp") raises an exception instead of returning false, but I don't think that that's an issue unless luasnip needs more than one check in the future.

@znd4
Copy link
Contributor Author

znd4 commented Mar 26, 2024

FWIW, I've tried to install jsregexp with home-manager's extraLuaPackages, and this is what I see in the new checkhealth entry:

EDIT: nevermind, the healthcheck worked once I switched to master

@L3MON4D3
Copy link
Owner

L3MON4D3 commented Apr 1, 2024

Hey, that's pretty cool, thank you!
(the failing tests are unrelated to these changes ;) )

@L3MON4D3 L3MON4D3 merged commit 85c9b3e into L3MON4D3:master Apr 1, 2024
2 of 3 checks passed
@mathjiajia
Copy link
Contributor

since jsregexp is optional, it is better to replace error with warning.

@L3MON4D3
Copy link
Owner

L3MON4D3 commented Apr 1, 2024

Ay, thanks for the suggestions, good points 👍
I'll amend them :)
See 79cc25c

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.

3 participants