-
Notifications
You must be signed in to change notification settings - Fork 99
Generation of tags #39
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
Comments
I have the same problem. |
Be careful that you only have one custom-set-variables in your .emacs file. I had the same issue initially, and this was the problem. |
@tmbull I don't understand. What do you mean? |
custom-set-variables can only be defined once. For example: (custom-set-variables Rather than two separate instances of custom-set-variables. |
@paldepind Did the solution by @tmbull work for you? If so, I can add it to the tutorial. |
No. I only have one I am still under the impression that one needs to have an open session in order for the on save tag generation to work. That is what I am experiencing. And I guess that is why the haskell-mode wiki page on the topic is titled "Haskell Interactive Mode Tags". Thus I believe the coverage of tags should be moved to the interactive part of the tutorial. I also think suggesting the following binding to the tutorial would be a great idea:
Then a GHCi session will automatically be started and a tags file generated if it is missing. |
It seems so. Take a look here: https://github.com/haskell/haskell-mode/blob/master/haskell.el#L341-L350 |
Is there an agreement that this part of the documentation is in the wrong section? If so, I can move it across to the correct part of the docs. |
I'm following along the tutorial. I'm stuck in the section on settings up tags. No
TAGS
file is being generated when I save.Related to haskell-mode I have this in my
.emacs
If I do
M-: (getenv "PATH")
then the correct path to.cabal/bin
appears. Hasktags is installed and a binary file exists in the Cabal bin directory.As I mentioned a tags file is not being generated on save. Thus
M-.
does not work. If however I dohaskell-mode-tag-find
then a GHCi session is being started and aTAGS
file is generated. From then on theTAGS
file is also being updated on save.In the haskell-mode documentation tags appears as belonging to the interactive mode.
I'm unsure if I'm doing something wrong of if the tags part shouldn't have been included in the non interactive part of the tutorial.
The text was updated successfully, but these errors were encountered: