Code Monkey home page Code Monkey logo

Comments (4)

habemus-papadum avatar habemus-papadum commented on September 27, 2024

The issue seems to be triggered here:

meta.load_path == load_path || return false

The C drive has different capitalization in the first entry, see below:

meta.load_path
["C:\\Users\\nehal\\src\\julia-fun\\warpsnwefts\\Project.toml", "C:\\Users\\nehal\\.julia\\environments\\v1.9\\Project.toml", "C:\\Users\\nehal\\.julia\\juliaup\\julia-1.9.3+0.x64.w64.mingw32\\share\\julia\\stdlib\\v1.9"]
load_path
["c:\\Users\\nehal\\src\\julia-fun\\warpsnwefts\\Project.toml", "C:\\Users\\nehal\\.julia\\environments\\v1.9\\Project.toml", "C:\\Users\\nehal\\.julia\\juliaup\\julia-1.9.3+0.x64.w64.mingw32\\share\\julia\\stdlib\\v1.9"]

from condapkg.jl.

habemus-papadum avatar habemus-papadum commented on September 27, 2024

I haven't gotten to the bottom, but my guess it is something to do with a difference in how vscode and the julia command line specify the project on startup

from condapkg.jl.

cjdoris avatar cjdoris commented on September 27, 2024

Well isn't that fun! You've got to love case-insensitive filesystems...

This particular issue should be a straightforward fix - just needs a more nuanced load_path comparison than ==.

However, I'm surprised it's actually reinstalling everything - resolve_can_skip_1 just provides a quick check. If the set of packages to install hasn't actually changed, then it should still take a fast route, namely it executes

CondaPkg.jl/src/resolve.jl

Lines 510 to 532 in baa6132

# the state is sufficiently clean that we can modify the existing conda environment
changed = false
if !isempty(removed_pip_pkgs) && !shared
dry_run && return
changed = true
_resolve_pip_remove(io, removed_pip_pkgs, load_path)
end
if !isempty(removed_pkgs) && !shared
dry_run && return
changed = true
_resolve_conda_remove(io, conda_env, removed_pkgs)
end
if !isempty(specs) && (!isempty(added_pkgs) || !isempty(changed_pkgs) || (meta.channels != channels) || changed)
dry_run && return
changed = true
_resolve_conda_install(io, conda_env, specs, channels)
end
if !isempty(pip_specs) && (!isempty(added_pip_pkgs) || !isempty(changed_pip_pkgs) || changed)
dry_run && return
changed = true
_resolve_pip_install(io, pip_specs, load_path)
end
changed || _log(io, "Dependencies already up to date")
but each inner if block is a no-op because the set of packages hasn't changed. Is this not the case?

from condapkg.jl.

habemus-papadum avatar habemus-papadum commented on September 27, 2024

That makes sense; the packages should have not changed. I will try to revisit this in a few days to isolate futher

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