Example at https://alchemy.rs/ does not compile #1

Open
opened 2019-06-07 14:27:19 -07:00 by Tembocs · 2 comments
Tembocs commented 2019-06-07 14:27:19 -07:00 (Migrated from github.com)

I tried to copy the example provided at https://alchemy.rs/ at it is without any modification and got this error message:

error[E0433]: failed to resolve: use of undeclared type or module `PlatformAppBridge`
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:54:24
   |
54 |         *bridge = Some(PlatformAppBridge::new(ptr));
   |                        ^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformAppBridge`

error[E0433]: failed to resolve: use of undeclared type or module `PlatformViewBridge`
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:37:32
   |
37 |             bridge: Mutex::new(PlatformViewBridge::new())
   |                                ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformViewBridge`

error[E0433]: failed to resolve: use of undeclared type or module `PlatformTextBridge`
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:46:25
   |
46 |         Text(Mutex::new(PlatformTextBridge::new()))
   |                         ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformTextBridge`

error[E0433]: failed to resolve: use of undeclared type or module `PlatformWindowBridge`
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:98:22
   |
98 |         let bridge = PlatformWindowBridge::new(window_id, backing_node, shared_app_ptr);
   |                      ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformWindowBridge`

error[E0412]: cannot find type `PlatformAppBridge` in this scope
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:30:37
   |
30 |     pub(crate) bridge: Mutex<Option<PlatformAppBridge>>,
   |                                     ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `PlatformViewBridge` in this scope
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:31:19
   |
31 |     bridge: Mutex<PlatformViewBridge>
   |                   ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `PlatformTextBridge` in this scope
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:28:23
   |
28 | pub struct Text(Mutex<PlatformTextBridge>);
   |                       ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `PlatformWindowBridge` in this scope
  --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:26:17
   |
26 |     pub bridge: PlatformWindowBridge,
   |                 ^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to 8 previous errors

Some errors occurred: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: Could not compile `alchemy`.

To learn more, run the command again with --verbose.

From the error message looks to be something to do with Alchemy. I'm on Ubuntu 19.04 x64 using Rust 1.34.

I tried to copy the example provided at https://alchemy.rs/ at it is without any modification and got this error message: ``` error[E0433]: failed to resolve: use of undeclared type or module `PlatformAppBridge` --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:54:24 | 54 | *bridge = Some(PlatformAppBridge::new(ptr)); | ^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformAppBridge` error[E0433]: failed to resolve: use of undeclared type or module `PlatformViewBridge` --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:37:32 | 37 | bridge: Mutex::new(PlatformViewBridge::new()) | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformViewBridge` error[E0433]: failed to resolve: use of undeclared type or module `PlatformTextBridge` --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:46:25 | 46 | Text(Mutex::new(PlatformTextBridge::new())) | ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformTextBridge` error[E0433]: failed to resolve: use of undeclared type or module `PlatformWindowBridge` --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:98:22 | 98 | let bridge = PlatformWindowBridge::new(window_id, backing_node, shared_app_ptr); | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `PlatformWindowBridge` error[E0412]: cannot find type `PlatformAppBridge` in this scope --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/app.rs:30:37 | 30 | pub(crate) bridge: Mutex<Option<PlatformAppBridge>>, | ^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `PlatformViewBridge` in this scope --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/view.rs:31:19 | 31 | bridge: Mutex<PlatformViewBridge> | ^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `PlatformTextBridge` in this scope --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/components/text.rs:28:23 | 28 | pub struct Text(Mutex<PlatformTextBridge>); | ^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `PlatformWindowBridge` in this scope --> /home/tembo/.cargo/registry/src/github.com-1ecc6299db9ec823/alchemy-0.2.0/src/window/window.rs:26:17 | 26 | pub bridge: PlatformWindowBridge, | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error: aborting due to 8 previous errors Some errors occurred: E0412, E0433. For more information about an error, try `rustc --explain E0412`. error: Could not compile `alchemy`. To learn more, run the command again with --verbose. ``` From the error message looks to be something to do with Alchemy. I'm on Ubuntu 19.04 x64 using Rust 1.34.
ryanmcgrath commented 2019-06-07 14:30:16 -07:00 (Migrated from github.com)

Yup! Right now the example will only run on cocoa - I have the basics of the gtk backend in a local branch but haven't had time to really finish it yet.

I wanted to push the repo out to get feedback on API and so on, but this is still very much a silent launch. GUI frameworks are a huge project, so... lol

I'll leave this open as both a disclaimer to anyone coming by, as well as a push to get it running on Ubuntu. I'll drop a note here when it's runnable too. :)

Yup! Right now the example will only run on `cocoa` - I have the basics of the `gtk` backend in a local branch but haven't had time to really finish it yet. I wanted to push the repo out to get feedback on API and so on, but this is still very much a silent launch. GUI frameworks are a huge project, so... lol I'll leave this open as both a disclaimer to anyone coming by, as well as a push to get it running on Ubuntu. I'll drop a note here when it's runnable too. :)
Tembocs commented 2019-06-07 14:36:35 -07:00 (Migrated from github.com)

@ryanmcgrath thank you so much a quick response.

@ryanmcgrath thank you so much a quick response.
This repository is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/alchemy#1
No description provided.