Giter Club home page Giter Club logo

alchemy's People

Contributors

ryanmcgrath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alchemy's Issues

Unable to compile example - cannot infer type, consider giving `result` a type

Setup

  • Git clone master
  • cargo run

Versions

Default host: x86_64-apple-darwin
rustup home: /.../.rustup

installed toolchains

stable-x86_64-apple-darwin
1.35.0-x86_64-apple-darwin
1.39.0-x86_64-apple-darwin

active toolchain

1.35.0-x86_64-apple-darwin (overridden by '/.../alchemy/rust-toolchain')
rustc 1.35.0 (3c235d560 2019-05-20)

What are you trying to accomplish?

Running example

What is the actual output?

error[E0282]: type annotations needed
  --> cocoa/src/app.rs:42:13
   |
42 |             msg_send![&*inner, setDelegate:delegate];
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |             |
   |             cannot infer type
   |             consider giving `result` a type
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused import: `Component`
  --> cocoa/src/window.rs:16:46
   |
16 | use alchemy_lifecycle::traits::{AppDelegate, Component};
   |                                              ^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.
error: Could not compile `alchemy-cocoa`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Checklist

  • I have already looked over the issue tracker for similar issues.
  • This issue can be reproduced on Rust's stable channel. (Your issue will be
    closed if this is not the case)

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.