dimitri / el-get

Manage the external elisp bits and pieces upon which you depend!
http://tapoueh.org/emacs/el-get.html
1.65k stars 456 forks source link

The custom interface to el-get-sources is broken #253

Closed rileyrg closed 13 years ago

rileyrg commented 13 years ago

When I elect to "customise this variable" it say the value is nil.

dabrahams commented 13 years ago

What is the actual value?

rileyrg commented 13 years ago

non nil... A typical el-get-sources list. Did you try it?

dabrahams commented 13 years ago

Of course I tried it; I wrote the customization code. If you tell me the actual value I can try to reproduce the problem here. Otherwise I don't think I can help you.

rileyrg commented 13 years ago

Hi, did you get my reply I sent via email?

dabrahams commented 13 years ago

Nope. Why not put it in a gist and link to it here?

rileyrg commented 13 years ago

ah I the notificiation came via email and I just replied. But basically any value. Dimitri has reproduced it too. Mine is currently :

(setq el-get-sources

  '(nognus notify cssh el-get nxhtml xcscope org-mode
       elscreen auto-complete xclip
       bbdb sml-mode sml-modeline js2-mode babel clibpc
       color-moccur c-eldoc
       erc-highlight-nicknames edit-server flymake-cursor
       flymake-extension google-weather
       goto-last-change grep+ pastebin growl
       highlight-symbol htmlize keychain-environment
       lazy-search lazy-set-key lazy-search-extension
       rainbow-mode identica-mode

       (:name magit
          :after (lambda () (define-key mode-specific-map [?g] 'magit-status)))

       (:name mo-git-blame
          :after (lambda () (global-set-key (kbd "C-c b") 'mo-git-blame-current)))

       (:name nxhtml :after (lambda()(load "~/.emacs.d/nxhtml/autostart.el")))

       (:name boxquote :type http :url "http://www.davep.org/emacs/boxquote.el" :after (lambda () (define-key mode-specific-map [?q] 'boxquote-region)) :features "boxquote")
       (:name eproject :type git :url "https://github.com/jrockway/eproject.git" :features "eproject-extras")
       (:name jquery-doc :type git :url "https://github.com/ananthakumaran/jquery-doc.el" :features "jquery-doc")

       (:name auto-complete-etags :features "auto-complete-etags")

       ))

Of more concern is that none of the recipes work anymore at startup (here!;)) if you allow el-get to save to custom.el. That said it could be anything since el-get is so silent where there are other issues such as duplicate entries for the same module in el-get-sources. I'm continuing to try and get it working (onyl bbdb and gnus (unsurprisingly) are causing me grief at the moment with regard to autoloads and load order) so if you wan more info or me to test something let me know. Probably better via email : rileyrg@gmail.com

dabrahams commented 13 years ago

Well, I don't know what to tell you. It works for me with emacs 23.3.1 and with a recent build of Emacs 24. It works for me with emacs -Q and with my personal setup. It works for me with my value of el-get-sources

((:name bbatsov-zenburn :depends
        (color-theme)
        :type git :url "https://github.com/bbatsov/zenburn-emacs" :build
        (let
            ((default-directory
               (el-get-package-directory "bbatsov-zenburn")))
          (mkdir "site-lisp")
          (copy-file "color-theme-zenburn.el" "site-lisp" t)
          nil)
        :load-path
        ("site-lisp")
        :compile
        ("site-lisp")))

and with your value. Please give me more information about your environment so I can try harder to reproduce the problem.

Of more concern is that none of the recipes work anymore at startup (here!;)) if you allow el-get to save to custom.el.

What are you doing at startup to get the recipes to work and what do you mean by "work?"

That said it could be anything since el-get is so silent where there are other issues such as duplicate entries for the same module in el-get-sources. I'm continuing to try and get it working (onyl bbdb and gnus (unsurprisingly) are causing me grief at the moment with regard to autoloads and load order) so if you wan more info or me to test something let me know. Probably better via email

Now that we have the history of this issue in the issue tracker, I'd rather keep it there if you don't mind. You can always respond by email, as I am.

Dave Abrahams BoostPro Computing http://www.boostpro.com

rileyrg commented 13 years ago

"What are you doing at startup to get the recipes to work and what do you mean by "work?"

What do I mean by work? Recipes do things. When I save the custom data when el-get prompts me then on restart they dont work. ie are ignored. The recipe attibutes like "features" etc are not processed.

My start up is nothing more than defining el-get-sources and calling el-get.

I've decided to stop migrating to el-get for now. It started well enough but theres simply not enough error information given when there are errors to help someone new to it progress.

Possibly my el-get-sources is corrupt or more complicated I dont know.

dabrahams commented 13 years ago

Okay, I tried to reproduce this problem and I think I know what the issue is

I made an empty directory in /tmp/test and put this .emacs in it:

<---schnipp---> (setq el-get-sources '(cmake-mode)) (add-to-list 'load-path "/Users/dave/src/el-get") (require 'el-get) (el-get 'sync) (cmake-mode) ;; test the installation to make sure it worked <---schnapp--->

The problem, of course, is that el-get is being called before the customization of el-get-standard-packages. That's what I get for testing this with a complicated set-up like mine instead of the standard trivial arrangement. I have some ideas about how to fix it but I need a few minutes to do the research. In the meantime, if you do a `M-: (el-get) RET' after you start emacs, I think everything will work for you.

Sorry about this one, I should have caught it.

Dave Abrahams BoostPro Computing http://www.boostpro.com

rileyrg commented 13 years ago

Yes, always keep a noob test harness ;) Thanks a lot! We make some progress! ;)

dimitri commented 13 years ago

applied, thanks