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

Log and show error if user_on_attach fails #670

Merged
merged 1 commit into from
May 2, 2024

Conversation

ghostbuster91
Copy link
Contributor

I had an error in my on_attach function that was causing it to silently fail before any mappings where created. There was no info at all about the failure which made it harder to understand what is happening.

This PR logs any errors that could happen during the execution of user's on_attach callback.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks @ghostbuster91 !

@ckipp01 ckipp01 merged commit c626855 into scalameta:main May 2, 2024
5 checks passed
@prassee
Copy link

prassee commented May 12, 2024

@ghostbuster91 - thanks for the PR
@ckipp01 - will there be one more release which fixes the said issue

@ckipp01
Copy link
Member

ckipp01 commented May 12, 2024

@ckipp01 - will there be one more release which fixes the said issue

All you need to do is update the plugin, it will pull in this change.

@ghostbuster91 ghostbuster91 deleted the handle-on_attach branch May 15, 2024 08:36
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