Skip to content

Issues trying to use local version of a package in a layer #993

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

Closed
codygman opened this issue Nov 20, 2015 · 6 comments
Closed

Issues trying to use local version of a package in a layer #993

codygman opened this issue Nov 20, 2015 · 6 comments

Comments

@codygman
Copy link
Contributor

I had a bug I patched in haskell-mode and wanted to try it out, so I checked out the documentation on layers

After quite a bit of reading I did the following:

# clone haskell-mode
git clone [email protected]:haskell/haskell-mode.git ~/.emacs.d/private/local/haskell-mode

# reset to specific revision so this repro works for everyone
cd ~/.emacs.d/private/local/haskell-mode
git reset --hard a8e924b5138e2ebc767ad60e78d26f5fba219017

# create copy of haskell layer, then modify haskell-mode to use local package
cd ~/.emacs.d/private
cp -R ~/.emacs.d/layers/+lang/haskell/ ~/.emacs.d/private/

# modify haskell layer's packages.el to use local package of haskell-mode
cd ~/.emacs.d/private/haskell/
sed -i '22s/haskell-mode/(haskell :location local)/' packages.el

# fix bug, then recompile haskell-mode
cd ~/.emacs.d/private/local/haskell-mode/
make EMACS=$(which emacs)

restart spacemacs & open eshell

~ λ echo "main = putStrLn \"hello\"" > /tmp/hello.hs
~ λ find-file /tmp/hello.hs 
#<buffer hello.hs>

within hello.hs buffer, SPC h d m, search for haskell mode, click (haskell-mode.el). When it opens haskell-mode.el, press SPC f f

This shows me I'm opening the haskell-mode.el in:

~/.emacs.d/elpa/haskell-mode-20151113.1304/haskell-mode.el

rather than the desired:

~/.emacs.d/private/local/haskell-mode/haskell-mode.el

What is the issue? How can I debug the issue?

Thanks!

@codygman
Copy link
Contributor Author

Just followed my repro instructions again to make sure the steps worked, they do.

@codygman
Copy link
Contributor Author

I then tried SPC f e h and searched for package: haskell and saw this:

1447996388

@ivan-m
Copy link
Contributor

ivan-m commented Nov 20, 2015

This to me sounds more like a spacemacs issue than a haskell-mode one.

@codygman
Copy link
Contributor Author

@ivan-m I think it's an issue of me not using local packages correctly, failing that I think it's a spacemacs issue. It could not be a haskell-mode issue.

@ivan-m
Copy link
Contributor

ivan-m commented Nov 20, 2015

If it isn't a haskell-mode issue, why file it as an issue on haskell-mode?

@codygman
Copy link
Contributor Author

Whoops, please close... Or I can in the morning.
On Nov 20, 2015 12:22 AM, "Ivan Lazar Miljenovic" [email protected]
wrote:

If it isn't a haskell-mode issue, why file it as an issue on haskell-mode?


Reply to this email directly or view it on GitHub
#993 (comment)
.

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

2 participants