Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Path:mkdir not working on windows with forward slashes in path

Aperta
#623 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua, neovim

Direzione di ricerca

Start at the Path:mkdir entry point and trace its use of vim.loop.fs_mkdir or vim.uv. Compare that behavior with vim.fn.mkdir and the forward-slash normalization described for vim.fs. Done means Path:mkdir creates Windows directories when given forward-slash paths, with coverage for the reported case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi there,

using the mkdir function of Path on windows results in the error, that the directory cant be created, if linux style paths are inserted (forward slashes).
It comes down to the vim.loop.fs_mkdir function, wich does not seem to support directory creation on windows with forward slashes. (Same for vim.uv)
In contrast vim.fn.mkdir works without issues - and that would be the behavior I would expect from such a function - resolving forward/backward slashes by itself. Especially as the normalize function of vim.fs normalizes all windows path to linux style (backward slashes to forward ones).

Hope thats the correct place to raise the issue. Best regards.

Lingua principale
Lua
Stelle
3.5k
Fork
340
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nvim-lua/plenary.nvim

Tutte le issue di nvim-lua/plenary.nvim

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.