Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior from include when running remote process #288

Closed
fredcallaway opened this issue Apr 8, 2019 · 1 comment
Closed

Comments

@fredcallaway
Copy link

I've successfully connected to a remote process running inside of a tmux session. Everything seems to be working fine, but I get weird behavior from include. In particular, when I execute an include statement from the editor (but not the Juno REPL) the path is assumed to be relative to my local Juno working directory.

It seems to me that include should always be relative to the working directory of the julia interpreter (i.e. the output of pwd()). And it was very counterintuitive for me that the result was different when I ran in the Juno REPL vs by the "Run Block" command.

I'm thinking now that the intention is for you to open a remote file with Ftp Remote Edit, and then start the remote process. When I do this, I get the expected behavior. What I would like to do is edit my local files, but execute on a remote process. Is there a more appropriate way to accomplish this?

I'm using Juno 0.8.2

@pfitzseb
Copy link
Member

pfitzseb commented Apr 9, 2019

As per the documentation, include is always relative to the file you execute it in. So yes, it may be counterintuitive, but we can't really do anything about that. You can however just use include(joinpath(pwd(), ...)), which should work the same in the REPL and in a file.

@pfitzseb pfitzseb closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants