Comments (6)
Having the same here ! Any news @hnisonoff ?
from conda.el.
I've tried to debug it and for some reason activate-command
is not set after
(activate-command (if (eq system-type 'windows-nt
'("activate")
'("conda" "activate"))))
e.g.:
(message "activate command: %s" activate-command)
yields: activate-command: nil
I've ended up modifying the function conda-env-shell-init
in conda.el
as:
;;;###autoload
(defun conda-env-shell-init (process)
"Activate the current env in a newly opened shell PROCESS."
;; TODO: maintain compatibility with an older Conda version. Do we
;; check the Conda version and cache it?
;; TODO: make sure the shell has been set up for `conda activate`!
;; Do we need to `eval' the conda activation script every time?
(let* ((activate-command (if (eq system-type 'windows-nt
'("activate")
'("conda" "activate"))))
(activate-command (if (not activate-command) '("conda" "activate") activate-command))
(full-command (append activate-command `(,conda-env-current-name "\n")))
(command-string (combine-and-quote-strings full-command)))
(comint-send-string process command-string)
))
from conda.el.
from conda.el.
Hi @necaris,
To me your code should work just fine, ie:
((activate-command (if (eq system-type 'windows-nt
'("activate")
'("conda" "activate"))))
I don't understand why it does not.
So I am happy to submit a PR but I feel my solution is more a plaster than anything else and a more appealing solution would fix the let activate-command
part.
UPDATE: understood the issue in above code and submitted a PR to fix it
from conda.el.
Ok got the issue, it's was a simple parenthesis problem, I've submitted a PR to fix it:
#95
from conda.el.
Closing as fixed by #95
from conda.el.
Related Issues (20)
- Error auto activating base env with custom conda home HOT 4
- conda-env-activate doesn't work but conda-env-list does HOT 6
- conda-env-name-to-dir errors HOT 3
- Error activating env HOT 16
- `conda-env-subdirectory` variable
- Add conda-config (similar to elpy-config) command to re-evaluate cached values HOT 2
- When python-shell-interpreter is set to "jupyter", conda is unable to change the environment of the interpreter. HOT 4
- Prefix is not added in shell prompt in Emacs 29.0.60 HOT 3
- Is there a reason not to get the user's config by default if it exists? HOT 4
- Activating environment when using 'emacs file.py'
- conda-env-activate-for-buffer sets PATH to "", causing "ls" "git" "bash" to fail HOT 9
- Error: `(void-function working-dir)` HOT 2
- Error when running the suggested config
- Eshell Python does not track environment HOT 2
- once conda-env-autoactivate-mode is called for one buffer, it activates for everyfile
- Auto Activate only for Python-mode
- Invalid version syntax HOT 5
- Add support for direct python invocation in the current environment
- Only .yml extension is recognised for activating environment
- conda.el, elpy, and python-mode conflicts
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 conda.el.