-
Notifications
You must be signed in to change notification settings - Fork 432
Open
Description
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
-
Ensure
cargo-stylusis installed -
Run:
cargo stylus new example
-
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-sdkis 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-sdkis 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-stylusversion: 0.10.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels