Coder Social home page Coder Social logo

Comments (10)

purcell avatar purcell commented on June 17, 2024 1

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....

from haskell-mode.

solna86 avatar solna86 commented on June 17, 2024

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.

from haskell-mode.

solna86 avatar solna86 commented on June 17, 2024

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.

from haskell-mode.

purcell avatar purcell commented on June 17, 2024

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.

from haskell-mode.

purcell avatar purcell commented on June 17, 2024

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?

from haskell-mode.

djr7C4 avatar djr7C4 commented on June 17, 2024

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.

from haskell-mode.

purcell avatar purcell commented on June 17, 2024

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.

from haskell-mode.

djr7C4 avatar djr7C4 commented on June 17, 2024

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

from haskell-mode.

purcell avatar purcell commented on June 17, 2024

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

from haskell-mode.

djr7C4 avatar djr7C4 commented on June 17, 2024

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

from haskell-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.