Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile #5

Open
wiiznokes opened this issue Jan 31, 2023 · 0 comments
Open

Can't compile #5

wiiznokes opened this issue Jan 31, 2023 · 0 comments

Comments

@wiiznokes
Copy link

I have this errors while trying to compile:

manjasus% cargo run 
   Compiling pt-launcher v0.1.4 (/home/lenaic/Documents/test/launcher)
error: Unknown property background in LineEdit
  --> /home/lenaic/Documents/test/launcher/src/ui/./settings.slint:39:13
   |
39 |             background: #27323f;
   |             ^
error: Unknown property border-radius in LineEdit
  --> /home/lenaic/Documents/test/launcher/src/ui/./settings.slint:40:13
   |
40 |             border-radius: 10phx;
   |             ^
error: Unknown property border-width in LineEdit
  --> /home/lenaic/Documents/test/launcher/src/ui/./settings.slint:41:13
   |
41 |             border-width: 0;
   |             ^

error: Error occurred
 --> src/main.rs:3:1
  |
3 | slint::slint!(import { MainWindow } from "src/ui/main.slint";);
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `slint::slint` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `MainWindow` in this scope
  --> src/main.rs:41:43
   |
41 | fn update_discussions(handle: slint::Weak<MainWindow>, posts: Vec<Post>) {
   |                      -                    ^^^^^^^^^^ not found in this scope
   |                      |
   |                      help: you might be missing a type parameter: `<MainWindow>`

error[E0412]: cannot find type `NewsData` in this scope
  --> src/main.rs:43:32
   |
41 | fn update_discussions(handle: slint::Weak<MainWindow>, posts: Vec<Post>) {
   |                      - help: you might be missing a type parameter: `<NewsData>`
42 |     handle.upgrade_in_event_loop(move |handle| {
43 |         let mut news_data: Vec<NewsData> = vec![];
   |                                ^^^^^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `NewsData` in this scope
  --> src/main.rs:46:24
   |
46 |             let news = NewsData {
   |                        ^^^^^^^^ not found in this scope

error[E0433]: failed to resolve: use of undeclared type `MainWindow`
  --> src/main.rs:11:23
   |
11 |     let main_window = MainWindow::new();
   |                       ^^^^^^^^^^ use of undeclared type `MainWindow`

Some errors have detailed explanations: E0412, E0422, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `pt-launcher` due to 5 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant