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

fix: remove local rock outside of sync query_installed_rocks callback #21

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

bottd
Copy link
Contributor

@bottd bottd commented Jun 12, 2024

This is a fix for the 2nd error in #16

I believe the error about calling from a sync context is due to operations.remove being called inside of the query_installed_rocks callback. By calling from outside of this context the removal works as expected.

Copy link
Contributor

Review Checklist

Does this PR follow the Contribution Guidelines? Following is a partial checklist:

Proper conventional commit scoping:

  • For example, fix(installer): some installer bugfix

  • Pull request title has the appropriate conventional commit prefix.

If applicable:

  • Tested
    • Tests have been added.
    • Tested manually (steps in PR description).
  • Updated documentation.

@bottd bottd force-pushed the remove-rock-error branch from a6e7161 to e2b0a7a Compare June 12, 2024 00:41
Copy link
Member

@mrcjkb mrcjkb left a comment

Choose a reason for hiding this comment

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

Thanks 🙏
LGTM

lua/rocks-dev/local-rock-handler.lua Outdated Show resolved Hide resolved
@mrcjkb mrcjkb merged commit 3ee5e96 into nvim-neorocks:main Jun 12, 2024
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