MikeInnes / DataFlow.jl

Other
122 stars 12 forks source link

Can't display any Flow types in 0.5 #3

Closed iamed2 closed 8 years ago

iamed2 commented 8 years ago
julia> @flow function foo(x)
       2 * x
       end
Flow.SyntaxGraph([:x],Flow.DVertex{Any}
Error showing value of type Flow.SyntaxGraph:
ERROR: UndefVarError: alias_gensyms not defined
 in show(::IOContext{Base.Terminals.TTYTerminal}, ::Flow.DVertex{Any}) at /Users/ericdavies/.julia/v0.5/Flow/src/syntax.jl:123
 in show_default(::IOContext{Base.Terminals.TTYTerminal}, ::Any) at ./show.jl:99
 in showcompact(::Base.Terminals.TTYTerminal, ::Flow.SyntaxGraph) at ./show.jl:1490
 in writemime(::Base.Terminals.TTYTerminal, ::MIME{Symbol("text/plain")}, ::Flow.SyntaxGraph) at ./replutil.jl:4
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Flow.SyntaxGraph) at ./REPL.jl:114
 in display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Flow.SyntaxGraph) at ./REPL.jl:117
 in display(::Flow.SyntaxGraph) at ./multimedia.jl:151
 in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Void, ::Bool, ::Bool, ::Void) at ./REPL.jl:134
 in print_response(::Base.REPL.LineEditREPL, ::Any, ::Void, ::Bool, ::Bool) at ./REPL.jl:121
 in (::Base.REPL.##18#19{Bool,Base.REPL.##29#38{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:630
 in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1570
 in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:881
 in run_repl(::Base.REPL.LineEditREPL, ::Function) at ./REPL.jl:166
 in _start() at ./client.jl:364

Seems like this package depends on a particular build of 0.5 from before the gensym stuff was removed.

iamed2 commented 8 years ago

NVM, looks like alias_gensyms was a MacroTools function