haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

Please release a new version

Open thkoch2001 opened this issue 3 years ago • 10 comments

There have been a few commits since version 17.2 and no commits since September. Would you like to tag current master e.g. as 17.3. so that I also update the Debian package?

thkoch2001 avatar Jan 04 '22 19:01 thkoch2001

A new version should be released please. The last tag, 17.2, is almost 3 years old and fails to load on Emacs 29.1.

Therefore, we have to use MELPA instead of MELPA Stable, which is not allowed in some organizations.

solna86 avatar Jul 30 '23 00:07 solna86

A bit scrappy, but done: 17.3 is tagged and should build on MELPA Stable shortly.

which is not allowed in some organizations.

@solna86 very curious to hear about organizations that have policies about which elisp package archives are allowed....

purcell avatar Jul 30 '23 07:07 purcell

Thanks @purcell! I have just tested haskell-mode 17.3 on Emacs 29.1. It loads fine, but there's a repeated error whenever I move the cursor into something:

eldoc error: (error Eager macro-expansion failure: (error "Misplaced t or ‘otherwise’ clause"))

This eldoc issue is showing up on other packages when using Emacs 29.1.

very curious to hear about organizations that have policies about which elisp package archives are allowed....

My corporate IT sadly enforces this policy. We are asked not to use any software repositories labelled as unstable.

solna86 avatar Jul 30 '23 19:07 solna86

eldoc error: (error Eager macro-expansion failure: (error "Misplaced t or ‘otherwise’ clause"))

Hmm, I'll take a look at that if I get a few minutes.

My corporate IT sadly enforces this policy. We are asked not to use any software repositories labelled as unstable.

MELPA actually isn't labelled unstable. I think of it "snapshot" MELPA, personally. It's a pity about policies like this: usually "unstable" relates to the fact that packaging might be broken at times, but usually banning "unstable" repositories leads to the use of more insecure old packages.

purcell avatar Jul 31 '23 08:07 purcell

eldoc error: (error Eager macro-expansion failure: (error "Misplaced t or ‘otherwise’ clause"))

This eldoc issue is showing up on other packages when using Emacs 29.1.

Are you running ghci or similar? Unsure how to trigger this eldoc error. And can you toggle-debug-on-error before triggering it, to see if there's an instructive backtrace?

purcell avatar Jul 31 '23 14:07 purcell

I had a similar error occur with Emacs 29.1 when requiring 'haskell-mode except that it did not involve eldoc. It was caused by haskell-mode-commands.el. Upgrading to 17.4 fixed the error but it still shows up as a warning in *Warnings*.

error: Eager macro-expansion failure: (error "Misplaced t or ‘otherwise’ clause")

This doesn't seem like a big issue (I don't think it is currently breaking anything for me) but I mention this in case it is useful.

djr7C4 avatar Aug 08 '23 05:08 djr7C4

It's weird because that error is one produced by cl-case, but all the uses of cl-case in the haskell-mode files are compliant.

purcell avatar Aug 08 '23 05:08 purcell

Some old bytecode may have been loading before or something. I'm no longer getting this error from haskell-mode with 17.4.

djr7C4 avatar Aug 08 '23 18:08 djr7C4

Yeah, that's the most likely explanation. Personally I do the following to avoid incompatible bytecode resulting from old package installations: https://github.com/purcell/emacs.d/blob/master/lisp/init-elpa.el#L9-L12

purcell avatar Aug 09 '23 06:08 purcell

Thanks. I guess maybe the eldoc error others experienced was due to eldoc causing some old bytecode to get autoloaded.

djr7C4 avatar Aug 09 '23 23:08 djr7C4