IRust: Cannot use two `irust_repl`s at the same time.

I have two object irust_repl: irust_repl1 and irust_repl2. When I call irust_repl1.eval(some_code) and irust_repl2.eval(some_code) at the same time, the latter has a link.exe error. I thought it maybe because that no matter how many irust_repl I have, they all is based on the same temp file, and so manupulating the same main.rs at the same time. So, if I need run the irust_repls at the same time, what should I do?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 27 (16 by maintainers)

Most upvoted comments

Yes thats probably normal, jupyer is not printing it , for debugging we should print to stderr instead so it shows up in the console

Can you try btw run(“cmd”,“/c”,“re”,deps,code) instead of the absolute path of re , does that still work ?

IF you have some feedback /suggestions / new issues on this kernel feel free to add it here https://github.com/sigmaSd/IRust/issues/108

Nice, glad it worked, the repl structs currently doesn’t clean the created paths , though I exposed already a function to do that and irust uses it, I think I’ll just go ahead and make it automatic by implementing it on drop (so it works as you described)

I’ll try to make some time and evaluate jupyter again, did you try https://github.com/sigmaSd/IRust/tree/master/crates/irust_repl#jupyter-kernel btw ? does it do what you expect ? Its just a bare bone implementation, but it should do the basics. I think jupyter support only make sense after fixing https://github.com/sigmaSd/IRust/issues/104 , since after that adding jupyter should be straightforward