Skip to content

Instantly share code, notes, and snippets.

View jaredonline's full-sized avatar

Jared McFarland jaredonline

View GitHub Profile
@jaredonline
jaredonline / Console Output
Created November 21, 2015 13:07
Error installing Relay example
jared@Jareds-MacBook ~/code/js$ cd relay/examples/todo && npm install
> babel-relay-plugin@0.4.2 prepublish /Users/jared/code/js/relay/scripts/babel-relay-plugin
> npm run build
> babel-relay-plugin@0.4.2 build /Users/jared/code/js/relay/scripts/babel-relay-plugin
> scripts/build-lib
module.js:339
$ valgrind --leak-check=yes ./php ~/code/php/ext/rust_a_star/src/rust_a_star.php
==15950== Memcheck, a memory error detector
==15950== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==15950== Using Valgrind-3.11.0.SVN and LibVEX; rerun with -h for copyright info
==15950== Command: ./php /Users/jmcfarland/code/php/ext/rust_a_star/src/rust_a_star.php
==15950==
--15950-- ./php:
--15950-- dSYM directory is missing; consider using --dsymutil=yes
--15950-- UNKNOWN host message [id 412, to mach_host_self(), reply 0x30f]
--15950-- UNKNOWN host message [id 222, to mach_host_self(), reply 0x30f]
$ cpp -I. -I/Users/jmcfarland/code/php/ext/rust_fib -DPHP_ATOM_INC -I/Users/jmcfarland/code/php/ext/rust_fib/include -I/Users/jmcfarland/code/php/ext/rust_fib/main -I/Users/jmcfarland/code/php/ext/rust_fib -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 rust_fib.c
#### OUTPUT
# 1 "rust_fib.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 169 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
#![feature(core)]
extern crate rand;
extern crate core;
use std::sync::{Arc, Mutex};
use std::thread;
use std::fmt::{Display, Formatter, Result};
use core::ops::Deref;
src/game.rs:110:32: 110:61 error: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:32: 110:61 note: first, the lifetime cannot outlive the expression at 110:31...
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:32: 110:61 note: ...so that reference is valid at the time of borrow
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:9: 110:97 note: but, the lifetime must be valid for the method call at 110:8...
Compiling dwemthys v0.0.1 (file:///Users/jmcfarland/code/rust/dwemthys)
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:53 error: cannot infer an appropriate lifetime for autoref due to conflicting requirements
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:41 note: first, the lifetime cannot outlive the expression at 22:17...
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:41 note: ...so that auto-reference is valid at the time of borrow
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
Compiling http v0.1.0-pre (https://github.com/chris-morgan/rust-http.git#3f442dee)
src/http/client/sslclients/openssl.rs:22:27: 22:51 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
src/http/client/sslclients/openssl.rs:22 let stream = try!(TcpStream::connect(addr));
^~~~~~~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 8:2 note: in expansion of try!
src/http/client/sslclients/openssl.rs:22:22: 22:53 note: expansion site
src/http/server/mod.rs:29:34: 29:72 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
src/http/server/mod.rs:29 let mut acceptor = match TcpListener::bind(config.bind_address).listen() {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/http/server/mod.rs:136:33: 136:71 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
[30-Sep-2014 14:22:10 EST5EDT] [x1oRjQFVyc6LgPAHVwDD4re8KsPZ] [error] [API] [/home/jmcfarland/development/Etsyweb/phplib/Api/ErrorHandler.php:142] [0] Cannot access empty property in /home/jmcfarland/development/Etsyweb/phplib/Feed/Story.php on line 83
structs.rs:48:23: 48:28 error: mismatched types: expected `Box<State+'a>`, found `Box<BadState>` (expected trait State, found struct BadState)
structs.rs:48 self.state = state;
^~~~~
error: aborting due to previous error
pub struct Game<'a> {
pub exit: bool,
pub window_bounds: Bound,
pub rendering_component: Box<RenderingComponent>,
pub stats_window: Box<WindowComponent>,
pub map_window: Box<WindowComponent>,
pub input_window: Box<WindowComponent>,
pub messages_window: Box<WindowComponent>
}