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

`cargo stylus new` panics when stylus-sdk is not discoverable

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

Maintainer thường phản hồi trong vòng 1 ngày

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
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Tái hiện lỗi bằng cargo stylus new example trong môi trường đã nêu, sau đó kiểm tra đường dẫn stylus_sdk.rs:51:10 được sử dụng trong quá trình tạo dự án. Truy vết cách xử lý một gói stylus-sdk không thể tìm thấy và thêm lỗi hoặc hướng dẫn dành cho người dùng thay vì panic; hoàn tất khi lệnh báo cáo rõ ràng dependency bị thiếu hoặc được cấu hình sai.

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

Mô tả

Description

While trying to create a new Stylus project using cargo stylus new, the command panics if the stylus-sdk package cannot be located, without providing a user-facing error message or guidance on how to resolve the issue.

Since this is typically the first command a new developer runs, the panic makes it difficult to understand what prerequisite is missing or how to proceed.


Steps to Reproduce
  1. Ensure cargo-stylus is installed

  2. Run:

    cargo stylus new example
    
  3. Observe the panic during project creation


Observed Behavior

The command panics with the following error:

thread 'main' panicked at ... stylus_sdk.rs:51:10:
Finding stylus-sdk package

No actionable information is provided about:

  • where stylus-sdk is expected to be found
  • whether it is missing, misconfigured, or version-incompatible
  • how the user should resolve the issue

Expected Behavior

Instead of panicking, the tool could:

  • surface a clear error message indicating that stylus-sdk is missing or not discoverable
  • document the requirement explicitly before project creation
  • or provide guidance on how to install or configure the dependency

Environment
  • OS: Windows (via WSL2 / Ubuntu)
  • Rust version: 1.92.0
  • cargo-stylus version: 0.10.0
Ngôn ngữ chính
MDX
Star
252
Fork
457
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
123

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 OffchainLabs/arbitrum-docs

Tất cả issue của OffchainLabs/arbitrum-docs

Issue tương tự

Thêm issue về CLI

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.