Coder Social home page Coder Social logo

[Support]: `flymake-json` elpaca--check-version: (error "Invalid version syntax: ‘DEV’ (must start with a number)") about elpaca HOT 3 CLOSED

deadcombo avatar deadcombo commented on August 20, 2024
[Support]: `flymake-json` elpaca--check-version: (error "Invalid version syntax: ‘DEV’ (must start with a number)")

from elpaca.

Comments (3)

deadcombo avatar deadcombo commented on August 20, 2024 1

from elpaca.

progfolio avatar progfolio commented on August 20, 2024

That's due to the version declaration in flymake-json's dependency flymake-easy:

https://github.com/purcell/flymake-easy/blob/de41ea49503f71f997e5c359a2ad08df696c0147/flymake-easy.el#L7

You can work around this by adding a declaration for flymake-easy which uses the :version recipe keyword

e.g. (flymake-easy :version (lambda (_) "0.1")) as shown in the following test case:

Test Case

How to run this test?

(elpaca-test
  :early-init (setq elpaca-menu-functions '(elpaca-menu-melpa))
  :init
  (elpaca (flymake-easy :version (lambda (_) "0.1")))
  (elpaca (flymake-json :wait t))
  (princ (elpaca-log "#unique")))
Host Env
elpacabc685f5 HEAD -> master, origin/master, origin/HEAD
installer0.7
emacsGNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-05-14
gitgit version 2.45.1
Output
Elpaca menu item cache discarded due to version change.
  INFO     Scraping files for loaddefs... 
  INFO     Scraping files for loaddefs...done
  GEN      ../elpaca-autoloads.el
Cloning into '/tmp/elpaca.tnp75X/elpaca/repos/elpaca'...
Your branch is up to date with 'origin/master'.
Checking /tmp/elpaca.tnp75X/elpaca/repos/elpaca...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-info.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-log.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-manager.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-menu-elpa.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-menu-melpa.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-menu-org.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-process.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-test.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca-ui.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/elpaca.el...
Checking /tmp/elpaca.tnp75X/elpaca/repos/elpaca/doc...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/doc/early-init.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/doc/init.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/doc/installer.el...
Checking /tmp/elpaca.tnp75X/elpaca/repos/elpaca/extensions...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/extensions/elpaca-use-package.el...
Checking /tmp/elpaca.tnp75X/elpaca/repos/elpaca/images...
Checking /tmp/elpaca.tnp75X/elpaca/repos/elpaca/test...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/test/elpaca-test.el...
Compiling /tmp/elpaca.tnp75X/elpaca/repos/elpaca/test/elpaca-tests.el...
Done (Total of 12 files compiled, 4 skipped in 4 directories)

Downloading MELPA recipes...
Downloading MELPA recipes...100%

flymake-easy                   finished             ✓ 0.529 secs                                                                     03.388690
elpaca                         finished             ✓ 0.656 secs                                                                     03.493926
flymake-json                   finished             ✓ 0.783 secs                                                                     03.620557

Does that help?

from elpaca.

progfolio avatar progfolio commented on August 20, 2024

I'll consider this closed for now, but feel free to comment if you run into any issues with the above advice. Thanks.

from elpaca.

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.