GithubHelp home page GithubHelp logo

Comments (8)

gmoutso avatar gmoutso commented on August 20, 2024

;; Package-Version: 20200120.1721
;; Version: 0.4

from conda.el.

necaris avatar necaris commented on August 20, 2024

@gmoutso how are you activating the environment? Are you using conda-env-activate or the autoactivate-mode?

from conda.el.

gmoutso avatar gmoutso commented on August 20, 2024

I was using (conda-env-autoactivate-mode) but I have the wrong exec-path even without autoactivate (after conda-env-activate).

from conda.el.

gmoutso avatar gmoutso commented on August 20, 2024

It works with emacs -Q (setting conda-anaconda-home and conda-env-home-directory to ~/miniconda). I will try to find what the issue is in my configuration.

from conda.el.

gmoutso avatar gmoutso commented on August 20, 2024

After a frantic search, I realised that my init.el works perfectly well when loaded with emacs --daemon or emacs -q -l ~/.emacs.d/init.el where I have:

(require 'conda)
(custom-set-variables '(conda-anaconda-home "/home/moutsopoulosg/miniconda/"))
(conda-env-initialize-interactive-shells)
;; if you want eshell support, include:
(conda-env-initialize-eshell)
;; if you want auto-activation (see below for details), include:
(conda-env-autoactivate-mode)
(setq conda-env-home-directory "/home/moutsopoulosg/miniconda/")

It fails when I run the daemon (as I usually do) with a systemctl unit systemctl start --user emacs where under .config/systemd/user/emacs.service

[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/

[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure

[Install]
WantedBy=default.target

I have no idea why. Close the bug if you think it is not in conda.el's.
In any case, thank you for the package and for your prompt response.

from conda.el.

necaris avatar necaris commented on August 20, 2024

@gmoutso can you confirm if conda-env-activate works if you're not in daemon mode? I'd be happy to look into the daemon issue too but if it's not affecting conda.el functionality I probably won't have any more knowledge than you do on how to start debugging 😄

from conda.el.

gmoutso avatar gmoutso commented on August 20, 2024

Both daemon and non-daemon are working now, but unfortunately I cannot find the critical change I made in my init.el between not working and working (whether daemon or not).

from conda.el.

necaris avatar necaris commented on August 20, 2024

With the changes to JSON activation this should be fixed; closing as inactive for now, but if this is still relevant please reopen!

from conda.el.

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.