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

Feature Request: Move into nested module #60

Closed
Ellipse0934 opened this issue Jul 25, 2023 · 1 comment
Closed

Feature Request: Move into nested module #60

Ellipse0934 opened this issue Jul 25, 2023 · 1 comment

Comments

@Ellipse0934
Copy link

The ability to switch into an arbitrary module will be helpful. For example

# In primary julia session
module M
        module N
        """
        Hello
        """
        f(x) = x + 1
        end
end
# In remote repl session
> %module M.N
> f(3)
4

I have been using

function Base.setproperty!(x::RemoteREPL.Connection, f::Symbol, v::Expr)
   x.in_module = Symbol(v)
end

in my startup script for probably a good 4-6 months now and it appears to work. We should figure out the correct (hygienic) method. And the docs search doesn't work when inside a module so we will need to figure that out.

@Ellipse0934
Copy link
Author

Duplicate of #59 😅

@Ellipse0934 Ellipse0934 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2023
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

1 participant