-
Notifications
You must be signed in to change notification settings - Fork 22
Project initialization failed #34
Copy link
Copy link
Open
Description
When initializing a project using create-gpui-app, using cargo run throws an exception.
Compiling my-app v0.1.0 (D:\RustroverProjects\my-app\crates\my-app)
error[E0599]: no function or associated item named `new` found for struct `gpui::Application` in the current scope
--> crates\my-app\src\main.rs:22:18
|
22 | Application::new().run(|cx: &mut App| {
| ^^^ function or associated item not found in `gpui::Application`
|
note: if you're trying to build a new `gpui::Application`, consider using `gpui::Application::with_platform` which returns `gpui::Application`
--> C:\Users\jex1ang\.cargo\git\checkouts\zed-a70e2ad075855582\46120c9\crates\gpui\src\app.rs:146:5
|
146 | pub fn with_platform(platform: Rc<dyn Platform>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0599`.
error: could not compile `my-app` (bin "my-app") due to 1 previous error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels