Giter VIP home page Giter VIP logo

Comments (4)

dmolina avatar dmolina commented on July 20, 2024 1

Yes, you are right. I have checked now and fixed it in the current master version. I am adding a few new functionality, when I will have I submit a new version. However, now in the master version it is fixed.
Thank you a lot for your feedback!

from daemonmode.jl.

dmolina avatar dmolina commented on July 20, 2024

It seems that the juliaserver is not running, have you do the following?

λ julia --startup-file=no --project=. -e "using DaemonMode; serve()" 

previously in another term? The idea is that there is running the server in one process or terminal, and them you run several times runargs() with the file[s] to run. The server is actually which run these files, to accelerate the time, because all functions and packages have been previously run.

from daemonmode.jl.

chris-b1 avatar chris-b1 commented on July 20, 2024

Thanks for the reply @dmolina.

Yes, the server is running. When it's not running I get a graceful exit and error message, when it is running it hangs after running repro.jl

I'll take a closer look - given that this happens only with a print and not println I wonder if there's an assumption of a newline somewhere in the stdout handling

from daemonmode.jl.

chris-b1 avatar chris-b1 commented on July 20, 2024

server

m = Module()
add_include = Meta.parse("include(arg)=Base.include(@__MODULE__,arg)")
Base.eval(m, add_include)
run(m)
end
println(sock, token_end)

client

while (line != token_end)
println(output, line)
line = readline(sock)
end

The issue is that if run doesn't end outputting a newline, the last line of the program output will also contain the token_end.

from daemonmode.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.