Skip to content

Commit ad9ec88

Browse files
committed
well simple fixes, let me check
1 parent 7ea422b commit ad9ec88

1 file changed

Lines changed: 28 additions & 339 deletions

File tree

VMERRORSHARE.TXT

Lines changed: 28 additions & 339 deletions
Original file line numberDiff line numberDiff line change
@@ -3,350 +3,39 @@ $ tauri dev
33
Running BeforeDevCommand (`pnpm dev`)
44
Warn Waiting for your frontend dev server to start on http://localhost:1420/...
55
$ vite
6-
Warn Waiting for your frontend dev server to start on http://localhost:1420/...
76

8-
VITE v7.3.5 ready in 2901 ms
7+
VITE v7.3.5 ready in 1662 ms
98

109
➜ Local: http://localhost:1420/
1110
Running DevCommand (`cargo run --no-default-features --color always --`)
1211
Info Watching /home/laxenta/wallpaperengine-local/src-tauri for changes...
13-
Compiling khronos-egl v6.0.0
14-
Compiling layershellev v0.18.1 (/home/laxenta/wallpaperengine-local/src-tauri/layershellev/layershellev)
1512
Compiling colorwall-linux v0.1.0 (/home/laxenta/wallpaperengine-local/src-tauri)
16-
error[E0106]: missing lifetime specifier
17-
--> src/platform/linux/runner/mpv.rs:24:42
18-
|
19-
24 | pub render_context: libmpv2::render::RenderContext,
20-
| ^^^^^^^^^^^^^ expected named lifetime parameter
21-
|
22-
help: consider introducing a named lifetime parameter
23-
|
24-
22 ~ pub struct MpvPlayer<'a> {
25-
23 | pub mpv: Mpv,
26-
24 ~ pub render_context: libmpv2::render::RenderContext<'a>,
27-
|
28-
29-
error[E0422]: cannot find struct, variant or union type `RenderOpenglFbo` in module `libmpv2::render`
30-
--> src/platform/linux/runner/mpv.rs:84:36
13+
error[E0599]: no method named `with_output_option` found for struct `WindowState<T>` in the current scope
14+
--> src/platform/linux/layer_shell/surface.rs:34:10
3115
|
32-
84 | let fbo = libmpv2::render::RenderOpenglFbo {
33-
| ^^^^^^^^^^^^^^^ not found in `libmpv2::render`
34-
35-
error[E0603]: struct `Anchor` is private
36-
--> src/platform/linux/layer_shell/surface.rs:7:5
37-
|
38-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
39-
| ^^^^^^ private struct
40-
|
41-
note: the struct `Anchor` is defined here
42-
--> layershellev/layershellev/src/lib.rs:166:35
43-
|
44-
166 | zwlr_layer_surface_v1::{self, Anchor, ZwlrLayerSurfaceV1},
45-
| ^^^^^^
46-
help: import `Anchor` directly
47-
|
48-
7 | wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_surface_v1::Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, WindowState,
49-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
50-
51-
error[E0603]: enum `KeyboardInteractivity` is private
52-
--> src/platform/linux/layer_shell/surface.rs:7:13
53-
|
54-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
55-
| ^^^^^^^^^^^^^^^^^^^^^ private enum
56-
|
57-
note: the enum `KeyboardInteractivity` is defined here
58-
--> layershellev/layershellev/src/lib.rs:163:5
59-
|
60-
163 | use wayland_protocols_wlr::layer_shell::v1::client::zwlr_layer_surface_v1::KeyboardInteractivity;
61-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62-
|
63-
::: /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-protocols-wlr-0.3.12/src/protocol_macro.rs:28:17
64-
|
65-
28 | wayland_scanner::generate_client_code!($path);
66-
| --------------------------------------------- cannot be constructed because it is `#[non_exhaustive]`
67-
help: import `KeyboardInteractivity` directly
68-
|
69-
7 | Anchor, wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_surface_v1::KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, WindowState,
70-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
71-
72-
error[E0603]: enum `Layer` is private
73-
--> src/platform/linux/layer_shell/surface.rs:7:36
74-
|
75-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
76-
| ^^^^^ private enum
77-
|
78-
note: the enum `Layer` is defined here
79-
--> layershellev/layershellev/src/lib.rs:165:27
80-
|
81-
165 | zwlr_layer_shell_v1::{Layer, ZwlrLayerShellV1},
82-
| ^^^^^
83-
|
84-
::: /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-protocols-wlr-0.3.12/src/protocol_macro.rs:28:17
85-
|
86-
28 | wayland_scanner::generate_client_code!($path);
87-
| --------------------------------------------- cannot be constructed because it is `#[non_exhaustive]`
88-
help: import `Layer` directly
89-
|
90-
7 | Anchor, KeyboardInteractivity, wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_shell_v1::Layer, LayerShellEvent, ReturnData, WindowState,
91-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
92-
93-
warning: unused imports: `Mpv`, `OpenGLInitParams`, `RenderParamApiType`, and `RenderParam`
94-
--> src/platform/linux/layer_shell/surface.rs:11:15
95-
|
96-
11 | ...2::{Mpv, render::{RenderParam, RenderParamApiType, OpenGLInitParams}};
97-
| ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
98-
|
99-
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
100-
101-
error[E0599]: no variant, associated function, or constant named `OpenglFbo` found for enum `RenderParam<GLContext>` in the current scope
102-
--> src/platform/linux/runner/mpv.rs:92:43
103-
|
104-
92 | libmpv2::render::RenderParam::OpenglFbo(fbo),
105-
| ^^^^^^^^^ variant, associated function, or constant not found in `RenderParam<_>`
106-
107-
error[E0061]: this method takes 4 arguments but 1 argument was supplied
108-
--> src/platform/linux/runner/mpv.rs:96:29
109-
|
110-
96 | self.render_context.render(params)
111-
| ^^^^^^-------- three arguments of type `i32`, `i32`, and `bool` are missing
112-
|
113-
note: method defined here
114-
--> /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libmpv2-6.0.0/src/mpv/render.rs:333:12
115-
|
116-
333 | pub fn render<GLContext: 'static>(
117-
| ^^^^^^
118-
help: provide the arguments
119-
|
120-
96 | self.render_context.render(params, /* i32 */, /* i32 */, /* bool */)
121-
| ++++++++++++++++++++++++++++++++++
122-
123-
error[E0599]: no method named `with_single` found for struct `WindowState<T>` in the current scope
124-
--> src/platform/linux/layer_shell/surface.rs:30:10
125-
|
126-
29 | let ev: WindowState<()> = WindowState::new("colorwall-linux")
16+
28 | let ev: WindowState<()> = WindowState::new("colorwall-linux")
12717
| _______________________________-
128-
30 | | .with_single(NewLayerShellSettings {
129-
| |_________-^^^^^^^^^^^
130-
|
131-
help: there is a method `with_size` with a similar name
132-
|
133-
30 - .with_single(NewLayerShellSettings {
134-
30 + .with_size(NewLayerShellSettings {
135-
|
136-
137-
error[E0308]: mismatched types
138-
--> src/platform/linux/layer_shell/surface.rs:52:67
139-
|
140-
52 | let _ = ipc_sender.send(PlayerMessage::IpcCommand(cmd));
141-
| ------------------------- ^^^ expected `String`, found `&str`
142-
| |
143-
| arguments to this enum variant are incorrect
144-
|
145-
note: tuple variant defined here
146-
--> src/platform/linux/layer_shell/surface.rs:22:5
147-
|
148-
22 | IpcCommand(String),
149-
| ^^^^^^^^^^
150-
help: try using a conversion method
151-
|
152-
52 | let _ = ipc_sender.send(PlayerMessage::IpcCommand(cmd.to_string()));
153-
| ++++++++++++
154-
155-
error[E0133]: call to unsafe function `Instance::<Dynamic<libloading::safe::Library, khronos_egl::EGL1_4>>::load_required` is unsafe and requires unsafe function or block
156-
--> src/platform/linux/layer_shell/egl.rs:21:19
157-
|
158-
21 | let egl = egl::DynamicInstance::<egl::EGL1_4>::load_required()
159-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
160-
|
161-
= note: consult the function's documentation for information on how to avoid undefined behavior
162-
163-
error[E0133]: call to unsafe function `khronos_egl::egl1_0::<impl Instance<T>>::get_display` is unsafe and requires unsafe function or block
164-
--> src/platform/linux/layer_shell/egl.rs:25:23
165-
|
166-
25 | let display = egl.get_display(wl_display_ptr)
167-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
168-
|
169-
= note: consult the function's documentation for information on how to avoid undefined behavior
170-
171-
error[E0133]: call to unsafe function `khronos_egl::egl1_0::<impl Instance<T>>::create_window_surface` is unsafe and requires unsafe function or block
172-
--> src/platform/linux/layer_shell/egl.rs:74:23
173-
|
174-
74 | ... = self.egl.create_window_surface(self.display, self.config, wl_egl_window_ptr, None)
175-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
176-
|
177-
= note: consult the function's documentation for information on how to avoid undefined behavior
178-
179-
Some errors have detailed explanations: E0061, E0106, E0133, E0308, E0422, E0599, E0603.
180-
For more information about an error, try `rustc --explain E0061`.
181-
warning: `colorwall-linux` (lib) generated 1 warning
182-
error: could not compile `colorwall-linux` (lib) due to 12 previous errors; 1 warning emitted
183-
Info File src-tauri/src/platform/linux/layer_shell/surface.rs changed. Rebuilding application...
184-
Running DevCommand (`cargo run --no-default-features --color always --`)
185-
Compiling colorwall-linux v0.1.0 (/home/laxenta/wallpaperengine-local/src-tauri)
186-
error[E0106]: missing lifetime specifier
187-
--> src/platform/linux/runner/mpv.rs:24:42
188-
|
189-
24 | pub render_context: libmpv2::render::RenderContext,
190-
| ^^^^^^^^^^^^^ expected named lifetime parameter
191-
|
192-
help: consider introducing a named lifetime parameter
193-
|
194-
22 ~ pub struct MpvPlayer<'a> {
195-
23 | pub mpv: Mpv,
196-
24 ~ pub render_context: libmpv2::render::RenderContext<'a>,
197-
|
198-
199-
error[E0422]: cannot find struct, variant or union type `RenderOpenglFbo` in module `libmpv2::render`
200-
--> src/platform/linux/runner/mpv.rs:84:36
201-
|
202-
84 | let fbo = libmpv2::render::RenderOpenglFbo {
203-
| ^^^^^^^^^^^^^^^ not found in `libmpv2::render`
204-
205-
error[E0603]: struct `Anchor` is private
206-
--> src/platform/linux/layer_shell/surface.rs:7:5
207-
|
208-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
209-
| ^^^^^^ private struct
210-
|
211-
note: the struct `Anchor` is defined here
212-
--> layershellev/layershellev/src/lib.rs:166:35
213-
|
214-
166 | zwlr_layer_surface_v1::{self, Anchor, ZwlrLayerSurfaceV1},
215-
| ^^^^^^
216-
help: import `Anchor` directly
217-
|
218-
7 | wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_surface_v1::Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, WindowState,
219-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
220-
221-
error[E0603]: enum `KeyboardInteractivity` is private
222-
--> src/platform/linux/layer_shell/surface.rs:7:13
223-
|
224-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
225-
| ^^^^^^^^^^^^^^^^^^^^^ private enum
226-
|
227-
note: the enum `KeyboardInteractivity` is defined here
228-
--> layershellev/layershellev/src/lib.rs:163:5
229-
|
230-
163 | use wayland_protocols_wlr::layer_shell::v1::client::zwlr_layer_surface_v1::KeyboardInteractivity;
231-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232-
|
233-
::: /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-protocols-wlr-0.3.12/src/protocol_macro.rs:28:17
234-
|
235-
28 | wayland_scanner::generate_client_code!($path);
236-
| --------------------------------------------- cannot be constructed because it is `#[non_exhaustive]`
237-
help: import `KeyboardInteractivity` directly
238-
|
239-
7 | Anchor, wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_surface_v1::KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, WindowState,
240-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
241-
242-
error[E0603]: enum `Layer` is private
243-
--> src/platform/linux/layer_shell/surface.rs:7:36
244-
|
245-
7 | Anchor, KeyboardInteractivity, Layer, LayerShellEvent, ReturnData, Wi...
246-
| ^^^^^ private enum
247-
|
248-
note: the enum `Layer` is defined here
249-
--> layershellev/layershellev/src/lib.rs:165:27
250-
|
251-
165 | zwlr_layer_shell_v1::{Layer, ZwlrLayerShellV1},
252-
| ^^^^^
253-
|
254-
::: /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-protocols-wlr-0.3.12/src/protocol_macro.rs:28:17
255-
|
256-
28 | wayland_scanner::generate_client_code!($path);
257-
| --------------------------------------------- cannot be constructed because it is `#[non_exhaustive]`
258-
help: import `Layer` directly
259-
|
260-
7 | Anchor, KeyboardInteractivity, wayland_protocols_wlr::layer_shell::v1::generated::client::zwlr_layer_shell_v1::Layer, LayerShellEvent, ReturnData, WindowState,
261-
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
262-
263-
warning: unused imports: `Mpv`, `OpenGLInitParams`, `RenderParamApiType`, and `RenderParam`
264-
--> src/platform/linux/layer_shell/surface.rs:11:15
265-
|
266-
11 | ...2::{Mpv, render::{RenderParam, RenderParamApiType, OpenGLInitParams}};
267-
| ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
268-
|
269-
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
270-
271-
error[E0599]: no variant, associated function, or constant named `OpenglFbo` found for enum `RenderParam<GLContext>` in the current scope
272-
--> src/platform/linux/runner/mpv.rs:92:43
273-
|
274-
92 | libmpv2::render::RenderParam::OpenglFbo(fbo),
275-
| ^^^^^^^^^ variant, associated function, or constant not found in `RenderParam<_>`
276-
277-
error[E0061]: this method takes 4 arguments but 1 argument was supplied
278-
--> src/platform/linux/runner/mpv.rs:96:29
279-
|
280-
96 | self.render_context.render(params)
281-
| ^^^^^^-------- three arguments of type `i32`, `i32`, and `bool` are missing
282-
|
283-
note: method defined here
284-
--> /home/laxenta/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libmpv2-6.0.0/src/mpv/render.rs:333:12
285-
|
286-
333 | pub fn render<GLContext: 'static>(
287-
| ^^^^^^
288-
help: provide the arguments
289-
|
290-
96 | self.render_context.render(params, /* i32 */, /* i32 */, /* bool */)
291-
| ++++++++++++++++++++++++++++++++++
292-
293-
error[E0599]: no method named `with_single` found for struct `WindowState<T>` in the current scope
294-
--> src/platform/linux/layer_shell/surface.rs:30:10
295-
|
296-
29 | let ev: WindowState<()> = WindowState::new("colorwall-linux")
297-
| _______________________________-
298-
30 | | .with_single(NewLayerShellSettings {
299-
| |_________-^^^^^^^^^^^
300-
|
301-
help: there is a method `with_size` with a similar name
302-
|
303-
30 - .with_single(NewLayerShellSettings {
304-
30 + .with_size(NewLayerShellSettings {
305-
|
306-
307-
error[E0308]: mismatched types
308-
--> src/platform/linux/layer_shell/surface.rs:52:67
309-
|
310-
52 | let _ = ipc_sender.send(PlayerMessage::IpcCommand(cmd));
311-
| ------------------------- ^^^ expected `String`, found `&str`
312-
| |
313-
| arguments to this enum variant are incorrect
314-
|
315-
note: tuple variant defined here
316-
--> src/platform/linux/layer_shell/surface.rs:22:5
317-
|
318-
22 | IpcCommand(String),
319-
| ^^^^^^^^^^
320-
help: try using a conversion method
321-
|
322-
52 | let _ = ipc_sender.send(PlayerMessage::IpcCommand(cmd.to_string()));
323-
| ++++++++++++
324-
325-
error[E0133]: call to unsafe function `Instance::<Dynamic<libloading::safe::Library, khronos_egl::EGL1_4>>::load_required` is unsafe and requires unsafe function or block
326-
--> src/platform/linux/layer_shell/egl.rs:21:19
327-
|
328-
21 | let egl = egl::DynamicInstance::<egl::EGL1_4>::load_required()
329-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
330-
|
331-
= note: consult the function's documentation for information on how to avoid undefined behavior
332-
333-
error[E0133]: call to unsafe function `khronos_egl::egl1_0::<impl Instance<T>>::get_display` is unsafe and requires unsafe function or block
334-
--> src/platform/linux/layer_shell/egl.rs:25:23
335-
|
336-
25 | let display = egl.get_display(wl_display_ptr)
337-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
338-
|
339-
= note: consult the function's documentation for information on how to avoid undefined behavior
340-
341-
error[E0133]: call to unsafe function `khronos_egl::egl1_0::<impl Instance<T>>::create_window_surface` is unsafe and requires unsafe function or block
342-
--> src/platform/linux/layer_shell/egl.rs:74:23
343-
|
344-
74 | ... = self.egl.create_window_surface(self.display, self.config, wl_egl_window_ptr, None)
345-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
346-
|
347-
= note: consult the function's documentation for information on how to avoid undefined behavior
348-
349-
Some errors have detailed explanations: E0061, E0106, E0133, E0308, E0422, E0599, E0603.
350-
For more information about an error, try `rustc --explain E0061`.
351-
warning: `colorwall-linux` (lib) generated 1 warning
352-
error: could not compile `colorwall-linux` (lib) due to 12 previous errors; 1 warning emitted
18+
29 | | .with_layer(Layer::Background)
19+
30 | | .with_anchor(Anchor::Bottom | Anchor::Left | Anchor::Right | Anc...
20+
31 | | .with_exclusive_zone(-1)
21+
32 | | .with_margin((0, 0, 0, 0))
22+
33 | | .with_keyboard_interacivity(KeyboardInteractivity::None)
23+
34 | | .with_output_option(OutputOption::OutputName(monitor.name.clone()))
24+
| | -^^^^^^^^^^^^^^^^^^ method not found in `WindowState<_>`
25+
| |_________|
26+
|
27+
28+
error[E0502]: cannot borrow `*mpv_ref` as mutable because it is also borrowed as immutable
29+
--> src/platform/linux/runner/mpv.rs:78:18
30+
|
31+
58 | let mut render_context = mpv_ref
32+
| ------- immutable borrow occurs here
33+
...
34+
78 | mpv: mpv_ref,
35+
| ^^^^^^^ mutable borrow occurs here
36+
79 | render_context,
37+
| -------------- this usage requires that `*mpv_ref` is borrowed for `'static`
38+
39+
Some errors have detailed explanations: E0502, E0599.
40+
For more information about an error, try `rustc --explain E0502`.
41+
error: could not compile `colorwall-linux` (lib) due to 2 previous errors

0 commit comments

Comments
 (0)