Git Product home page Git Product logo

Comments (5)

cjrh avatar cjrh commented on June 12, 2024 1

If you submit a pull request to fix this I will likely merge it. I don't use Conda anymore, so we should also check with: @jfishe @hstarmans @ryanfreckleton

from vim-conda.

cjrh avatar cjrh commented on June 12, 2024 1

@Nikasa1889 If you submit a PR that fixes this problem, I will merge it and make you a contributor to this repo.

from vim-conda.

Nikasa1889 avatar Nikasa1889 commented on June 12, 2024

I've got the same exception. It seems like if I activate the base environment by running

conda activate base

before opening vim, everything works fine. Of course, adding the old export PATH=... like @DigitalPig said also solves the problem.

I want to contribute but have never coded vimscript before, so not sure if I can do anything.

from vim-conda.

zhiyuanzhai avatar zhiyuanzhai commented on June 12, 2024

Maybe the solution would be changing the activating operation from this:

let PATH = ...

to something like this:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/path/to/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/path/to/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/path/to/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/path/to/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

which is the lines that conda currently puts in bashrc.

I have no experience writing vim-script. Is this going to help?

from vim-conda.

bdrum avatar bdrum commented on June 12, 2024

If you submit a pull request to fix this I will likely merge it. I don't use Conda anymore, so we should also check with: @jfishe @hstarmans @ryanfreckleton

Hey! Just for interesting: why don't you use conda anymore and what do you use now?

from vim-conda.

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.