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

[Feature Request] Propagate OS Errors on Make Directory and more.

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
lua
Lĩnh vực
operating-systems

Hướng nghiên cứu

Start by locating the mkdir implementation and the related operating-system request paths. Trace how failures are currently turned into messages, then determine which OS details should be preserved for mkdir and the other requested operations. Done means failures expose useful underlying OS information without losing the existing context.

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

Mô tả

Hello, I am currently using the plenary plugin via the obsidian.nvim plug in, and is a very cool plug in. If I ever get to the point where I am writing my own plugin, I will definitely be using this library to aid in my development.

The request here is to propagate a bit more information when issuing requests to the OS. For example the specific example is invoking the mkdir function. The resulting error message is:

We couldn't mkdir: ...

It would help me during the debugging process to have more specific details associated with the failure. For example:

  1. Does the path not exist?
  2. Did the OS reject the path because it is not formatted correctly?
  3. Did the application not have the required permissions to create the directory?
  4. etc.

I would imagine this would have to be handled in an OS-specific manner, but would definitely be a huge value add to any error message!!

Thanks for the great library and I hope you consider the request!

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.