JuliaGizmos / Escher.jl

Composable Web UIs in Julia
https://juliagizmos.github.io/Escher.jl
Other
337 stars 63 forks source link

~/.julia/Escher/bin/escher --serve unresponsive and error running tests #30

Closed maacl closed 9 years ago

maacl commented 9 years ago

Nothing is served using:

~/.julia/Escher/bin/escher --serve
http://localhost:5555/plotting.jl

results in:

This webpage is not available
ERR_CONNECTION_REFUSED
julia runtests.jl

in ~/.julia/Escher/bin/escher/test results in:

ERROR: test1 not defined
 in include at /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include at /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at loading.jl:128
 in process_options at /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib
 in _start at /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/mac/.julia/Escher/test/macros.jl, in expression starting on line 5
while loading /Users/mac/.julia/Escher/test/runtests.jl, in expression starting on line 4

I am running OSX, using Julia Version 0.3.9 (2015-05-30 11:24 UTC).

shashi commented 9 years ago

What does running /usr/bin/env julia print in your terminal?

shashi commented 9 years ago

On OSX you can run this from the Julia REPL to serve:

julia> using Escher
julia> cd(Pkg.dir("Escher", "examples"))
julia> escher_serve()
maacl commented 9 years ago

/usr/bin/env julia

produces:

() | A fresh approach to technical computing () | () () | Documentation: http://docs.julialang.org | | | Type "help()" for help. | | | | | | |/ ` | | | | || | | | (| | | Version 0.3.9 (2015-05-30 11:24 UTC) / |_'||_|'_| | Official http://julialang.org/ release |__/ | x86_64-apple-darwin13.4.0

maacl commented 9 years ago

Following the above I get:

julia> using Escher

julia> cd(Pkg.dir("Escher", "examples"))

julia> escher_serve()
ERROR: escher_serve not defined
maacl commented 9 years ago

This might be related to how I am trying running julia from the terminal.

I have only symlinked the julia executable from to usr/local/bin:

ln -s /Applications/Julia-0.3.9.app/Contents/Resources/julia/bin/julia /usr/local/bin/

Do I need to do something more?

shashi commented 9 years ago

My bad, it should have been

Escher.escher_serve()

No your julia binary seems to be in the right place. How long did you wait before deciding escher --serve does not work? it usually takes about a minute for the server to start up. (JIT compilation of dependencies)

maacl commented 9 years ago
julia> Escher.escher_serve()
ERROR: escher_serve not defined

Autocomplete also does not reveal any Escher.escher_serve() function.

I waited 15 mins (MacBook Air mid 2011) on the escher --serve call. First run outputted something about updating Docile cache, but subsequent runs have not.

shashi commented 9 years ago

Oh, well. It should have been:

using Escher
include(Pkg.dir("Escher", "src", "cli", "serve.jl"))
cd(Pkg.dir("Escher", "examples")) # or any other directory
escher_serve()

My bad again :{

maacl commented 9 years ago

I just nuked my julia install and started over. There is no escher_serve() function in the Escher package.

shashi commented 9 years ago

The code shown above worked for me on Linux and Mac... Could you verify again?

shashi commented 9 years ago

I could not reproduce this on OSX. reopen if problem persists.