Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#623 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
lua, neovim
Lĩnh vực
operating-systems, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Lua
Star
3.5k
Fork
340
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nvim-lua/plenary.nvim

Tất cả issue của nvim-lua/plenary.nvim

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.