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: ensure paths are recreated after calling :AvanteClear to avoid errors #678

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

ddillert
Copy link
Contributor

@ddillert ddillert commented Oct 3, 2024

Previously, as mentioned by @jackschedel in #579, running :AvanteClear before :AvanteAsk would cause an error due to missing directories. The P.clear function was deleting the cache and history directories, which were later needed by other commands like :AvanteAsk. This led to ENOENT errors when attempting to write to non-existent paths.

To resolve this, the fix ensures that the necessary directories (cache and history) are recreated immediately after they are cleared, preventing file write errors in subsequent commands.

@yetone yetone merged commit c3848d0 into yetone:main Oct 5, 2024
5 checks passed
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.

2 participants