Skip to content

Instantly share code, notes, and snippets.


Jonas Nicklas jnicklas

View GitHub Profile
jnicklas / gist:8708153
Created January 30, 2014 13:20
Scary celluloid test failures
View gist:8708153
1) Celluloid behaves like a Celluloid Actor using Threads exclusive knows when it's in exclusive mode
Failure/Error: Unable to find matching line from backtrace
Shared Example Group: "a Celluloid Actor" called from ./spec/celluloid/actor_spec.rb:4
# java.util.WeakHashMap$HashIterator.nextEntry(
# java.util.WeakHashMap$
# org.jruby.RubyThreadGroup.list(
# org.jruby.RubyThreadGroup$INVOKER$i$0$0$$INVOKER$i$0$0$list.gen)
# org.jruby.internal.runtime.methods.JavaMethod$
View gist:9534477
### Keybase proof
I hereby claim:
* I am jnicklas on github.
* I am jnicklas ( on keybase.
* I have a public key whose fingerprint is 62D7 E86E 9AF3 AC42 94F6 E77D ED52 DD4F 1ACF 9759
To claim this, I am signing this object:
View output.txt
~/Projects/rust_stuff$ rustdoc --test
running 1 test
test max_compressed_length_0 ... FAILED
---- max_compressed_length_0 stdout ----
<anon>:2:1: 2:19 warning: this inner attribute syntax is deprecated. The new syntax is `#![foo]`, with a bang and no semicolon.
<anon>:2 #[deny(warnings)];
View promises.js
function sleep(time) {
return new Promise(function(resolve) { setTimeout(resolve, time) })
function repeat(times, cb) {
var resolved = new Promise(function(resolve) { resolve() });
if(times === 0) {
return resolved;
} else {
View gist:4d3b5735951abdf02405
~/Projects/partners(master)$ cargo test
Fresh toml v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
Compiling partners v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
src/ 11:4 warning: code is never used: `Person`, #[warn(dead_code)] on by default
src/ struct Person {
src/ name: String,
src/ nick: String
src/ }
src/ 9:17 warning: code is never used: `name`, #[warn(dead_code)] on by default
src/ name: String,
View test.html
<!DOCTYPE html>
<script src="bower_components/platform/platform.js"></script>
<link rel="import" href="bower_components/polymer/polymer.html">
<polymer-element name="hello-world" attributes="step" noscript>
<h1>Hello {{name}}</h1>
~/Projects/partners(master)$ cargo build
Fresh toml v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
Compiling partners v0.1.0 (file:/Users/jonasnicklas/Projects/partners)
src/ 40:102 error: mismatched types: expected `&collections::string::String` but found `collections::string::String` (expected &-ptr but found struct collections::string::String)
src/ let name = value.lookup("name").and_then(|v| v.get_str().clone()).unwrap_or_else(|| "".to_str());
src/ 41:46 error: mismatched types: expected `collections::string::String` but found `&collections::string::String` (expected struct collections::string::String but found &-ptr)
src/ Person { nick: nick.clone(), name: name }
error: aborting due to 2 previous errors