nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Projects on Windows not working #347

Open P1P0S opened 1 year ago

P1P0S commented 1 year ago

Basically the 'recent projects' feature is not working on Windows, (I'm not an experienced programmer) so from what I've looked into it, there seems to be some issue with how the cache file is being opened for writing, in the 'utils.lua' file.

image

I solved my problem by doing a simple 'if' statement to check if the 'os' is Windows. Then, it opens the cache file for writing using 'io.open'.

image

Well, now it's writing the project directories to the cache file.

image

glepnir commented 1 year ago

first there has system check in util and write cache is in luv callback is async . no reason use a block io.open. I don't use windows. someone can fix this pr welcome.

jacknicklenson commented 1 year ago

Yes, I have this issue as well on windows 11. @P1P0S if you solved, can you create PR ?

tidaeu commented 11 months ago

I'm running into this as well. :(