Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(conda-env-initialize-interactive-shells) messes up 'M-x shell' on my Windows box #10

Closed
JoshOBrien opened this issue Oct 30, 2017 · 4 comments

Comments

@JoshOBrien
Copy link

Hello,

I've just recently discovered conda, and have gotten it mostly set up and working. I really appreciate the package, but no matter what I do, including (conda-env-initialize-interactive-shells) in my init file seems to kill my ability to launch a shell by doing M-x shell. (Commenting it out fixes the problem.)

I am running Vincent Goulet's distribution of the following version of Emacs: GNU Emacs 25.2.1 (x86_64-w64-mingw32) of 2017-04-24 on a Windows 7 laptop. I experience the problem when I launch emacs by doing emacs -q --load /path/to/my-init.el where my-init.el is a pared down init file containing just the following:

;; "my-init.el"
(package-initialize)
(elpy-enable)

;; Temp fix for problem whose fuller solution is referenced here:
;; https://github.com/jorgenschaefer/elpy/issues/887
(setq python-shell-completion-native-enable nil)

(custom-set-variables
  '(conda-anaconda-home "C:/Users/Josh/Anaconda3"))
(require 'conda)
;; Unfortunately, this kills my ability to launch
;; into a shell with `M-x shell`. In buffer, I get:
;; "Symbol’s value as variable is void: buffer"
(conda-env-initialize-interactive-shells)
@respatialized
Copy link

I've also experienced this issue on Ubuntu 17.04.

@monomon
Copy link
Contributor

monomon commented Nov 9, 2017

Did some searching and this is the breaking commit c61b35e

Perhaps instead of buffer the author meant to use args. Or alternatively we could add an optional argument buffer. But I could be missing something in the implementiation.

Either way, it's a bug. I have a patch that works, but not sure if it doesn't break something else or contradict some intention.

@monomon
Copy link
Contributor

monomon commented Nov 9, 2017

I created a pull request for this issue. The change also addresses a couple other bugs that were breaking the shell in windows.

If anyone wants to review the change it would be great. elisp newbie here.

@necaris
Copy link
Owner

necaris commented Nov 22, 2017

As #11 is confirmed to fix this I'm closing this. Please do reopen if something's still broken.

@necaris necaris closed this as completed Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants