Skip to content

fix(log): no file made if no cache dir#392

Merged
Conni2461 merged 1 commit intonvim-lua:masterfrom
filipdutescu:fix/cache_directory_not_created
Aug 1, 2022
Merged

fix(log): no file made if no cache dir#392
Conni2461 merged 1 commit intonvim-lua:masterfrom
filipdutescu:fix/cache_directory_not_created

Conversation

@filipdutescu
Copy link
Copy Markdown
Contributor

On Neovim nightly (currently pre v0.8), the log file cannot be created
and writen to since the .cache/nvim directory is not created. This is
fixed by checking that the parent of the outfile does not exist and if
it doesn't creating the directory, as mentioned by @Conni2461.

Fixes: GH-367
Signed-off-by: Filip Dutescu filip.dutescu@gmail.com

On Neovim nightly (currently pre `v0.8`), the log file cannot be created
and writen to since the `.cache/nvim` directory is not created. This is
fixed by checking that the parent of the outfile does not exist and if
it doesn't creating the directory, as mentioned by @Conni2461.

Fixes: nvim-luaGH-367
Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
@filipdutescu filipdutescu force-pushed the fix/cache_directory_not_created branch from ad535aa to 0247e24 Compare July 31, 2022 21:03
@Conni2461
Copy link
Copy Markdown
Collaborator

LGTM thanks :)

@Conni2461 Conni2461 merged commit 4a8a29b into nvim-lua:master Aug 1, 2022
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.

No log file created on Neovim nightly

2 participants