Comments (5)
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.
@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.
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.
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.
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)
- Python 3 support? HOT 18
- Improve documentation page for vim HOT 2
- Enable root conda environment HOT 4
- Suppress Message on Startup HOT 5
- Massive error log on startup HOT 21
- msg_suppress not defined HOT 5
- python 2 & 3 compatibility HOT 2
- E887: Sorry, this command is disabled, the Python's site module could not be loaded. HOT 1
- Issue with Jedi after install vim-condo HOT 3
- Had Error: "UnboundLocalError: local variable 'current_env' referenced before assignment" at line 336 in conda_change_env, fixed it myself, here is what I did. HOT 1
- Showing name Error. I have installed spacevim and anaconda as well, but I don't know why this error is showing. HOT 2
- Set environment in vimrc HOT 1
- How to set default conda env $CONDA_DEFAULT_ENV?
- Startup errors in Neovim on windows HOT 3
- Source conda.sh on startup? HOT 2
- how to set CONDA_EXE on MS Windows? HOT 2
- Activating the environment that was active during vim startup fails HOT 1
- [Window] Not found the CondaChangeEnv command in vim HOT 16
- The Issue about :CondaChangeEnv HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-conda.