错误:LoadError:UndefVarError:TCPServer未定义Julia

时间:2018-12-04 10:30:27

标签: julia

以下是代码。

using JEMSS
# println(2+3)
filename = selectXmlFile()
sim = initSim(filename);

simulate!(sim) # run the simulation
printSimStats(sim) # some basic statistics

在运行此程序时,收到以下错误消息:

[ Info: Precompiling JEMSS [24979329-2a3d-50cf-82e3-05af2f1830ac]
┌ Warning: Deprecated syntax `@doc call with ->` at /Users/jack/.julia/packages/HttpServer/ZGldt/src/HttpServer.jl:229.
│ Use `a line break` instead.
└ @ ~/.julia/packages/HttpServer/ZGldt/src/HttpServer.jl:229
WARNING: importing deprecated binding Base.listen into HttpServer.
ERROR: LoadError: UndefVarError: TCPServer not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include(::Module, ::String) at ./sysimg.jl:29
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:319 [inlined]
 [8] eval(::Expr) at ./client.jl:399
 [9] top-level scope at ./none:3
in expression starting at /Users/nanal/.julia/packages/HttpServer/ZGldt/src/HttpServer.jl:31
ERROR: LoadError: Failed to precompile HttpServer [58cfbd8c-6b7d-5447-85c1-563540e28d27] to /Users/jack/.julia/compiled/v0.7/HttpServer/SC4ql.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1185
 [4] _require(::Base.PkgId) at ./logging.jl:311
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:399
 [14] top-level scope at ./none:3
in expression starting at /Users/jack/.julia/dev/JEMSS/src/JEMSS.jl:20

我试图搜索以找出这"ERROR: LoadError: UndefVarError: TCPServer not defined"的确切含义,但找不到任何内容。谁能告诉我在哪里可以找到它的参考资料?非常感谢!

0 个答案:

没有答案