Coder Social home page Coder Social logo

Comments (3)

j-fu avatar j-fu commented on August 27, 2024 1

Yes, this indeed seems like a hack.
Did some research: in 1.10, complete_remote_package is in the REPLMode submodule, and not exported. Formally, then it is not part of the public API.

Not sure if it make sense to code a work-around in Pluto now.

IMHO in 1.11 this could be made part of public API using the new public keyword. According to the logic of extensions, once it is public, Pkg.jl somwehre needs to declare

public function complete_remote_package end

Then the extension would extend this function once REPL is loaded.
IMHO this would warrant an issue or a PR with Pkg.jl .

from pluto.jl.

balenamiaa avatar balenamiaa commented on August 27, 2024

I think this is because complete_remote_package is defined in an package extension of REPL now. It's used in _registered_package_completions. Replacing Pkg.REPLMode with REPLExt where

using REPL
const REPLExt = Base.get_extension(Pkg, :REPLExt)

fixes it for me, but this seems like a hack.

from pluto.jl.

j-fu avatar j-fu commented on August 27, 2024

const REPLExt = Base.get_extension(Pkg, :REPLExt)

Well, I just tried this out, the error as described in the gist persists.
The error occurs when calling RegistryInstances.reachable_registries() during precompilation:

_get_registries() = RegistryInstances.reachable_registries()

I can call RegistryInstances.reachable_registries() from the REPL without problems. So there seems to be more to the picture, and we have at least two problems:

  • fix the situation with complete_remote_package
  • figure out what is going on with RegistryInstances.reachable_registries()

from pluto.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.