Giter VIP home page Giter VIP logo

Comments (9)

jcs090218 avatar jcs090218 commented on May 28, 2024

It should resolve in #2002.

from flycheck.

bremner avatar bremner commented on May 28, 2024

from flycheck.

jcs090218 avatar jcs090218 commented on May 28, 2024

Interesting... Our CI does not report anything like this. See https://github.com/flycheck/flycheck/actions/runs/4238492328/jobs/7365623154#step:5:878

Edit: How do you invoke the tests? Through Cask, Eask, makem.sh?

from flycheck.

sergiodj avatar sergiodj commented on May 28, 2024

Debian invokes buttercup -L . directly. I'm also investigating this problem and I noticed something interesting. If I get inside the chroot where the package is being built, set HOME to a proper location (e.g., /tmp/), create the .emacs.d directory, and run buttercup again, I see the same error:

...
========================================
Utilities flycheck-buffer-saved-p considers an unmodified buffer with backing file saved

Traceback (most recent call last):
  spy-on(buffer-file-name :and-return-value "test-buffer-name")
  buttercup--spy-on-and-call-replacement(buffer-file-name (lambda (&rest args) nil '"test-buffer-name"))
  comp-subr-trampoline-install(buffer-file-name)
  comp-trampoline-search(buffer-file-name)
  native-elisp-load("/tmp/.emacs.d/eln-cache/28.2-b25a1857/subr--trampoline-6275666665722d66696c652d6e616d65_buffer_file_name_0.eln")
error: (native-lisp-load-failed "file does not exists" "/tmp/.emacs.d/eln-cache/28.2-b25a1857/subr--trampoline-6275666665722d66696c652d6e616d65_buffer_file_name_0.eln")

========================================
Utilities flycheck-buffer-saved-p considers a modified buffer with backing file unsaved

Traceback (most recent call last):
  spy-on(buffer-file-name :and-return-value "test-buffer-name")
  buttercup--spy-on-and-call-replacement(buffer-file-name (lambda (&rest args) nil '"test-buffer-name"))
  comp-subr-trampoline-install(buffer-file-name)
  comp-trampoline-search(buffer-file-name)
  native-elisp-load("/tmp/.emacs.d/eln-cache/28.2-b25a1857/subr--trampoline-6275666665722d66696c652d6e616d65_buffer_file_name_0.eln")
error: (native-lisp-load-failed "file does not exists" "/tmp/.emacs.d/eln-cache/28.2-b25a1857/subr--trampoline-6275666665722d66696c652d6e616d65_buffer_file_name_0.eln")
...

However, if I inspect the contents of $HOME/.emacs.d, I see:

# tree $HOME/.emacs.d/
/tmp/.emacs.d/
└── eln-cache
    └── 28.2-b25a1857
        └── subr--trampoline-66696c652d6578697374732d70_file_exists_p_0.eln

3 directories, 1 file

So there is a .eln file there, but it's a different one than the one expected by the test. I'm still trying to figure out what's going on here.

from flycheck.

sergiodj avatar sergiodj commented on May 28, 2024

After some more investigation, I found that the problem is not with flycheck, but probably with buttercup: jorgenschaefer/emacs-buttercup#230

I'm still puzzled as to why these failures are not reproducible in your CI, though.

from flycheck.

jcs090218 avatar jcs090218 commented on May 28, 2024

May be something went wrong with .eln? I haven't tried native compilation, but I've heard is unstable. 😕 Maybe that was the issue?

from flycheck.

sergiodj avatar sergiodj commented on May 28, 2024

It's a new feature but I wouldn't say it's unstable. However, it seems like the Emacs your CI is using doesn't have native compilation enabled, which explains why the error doesn't manifest there.

from flycheck.

jcs090218 avatar jcs090218 commented on May 28, 2024

It's a new feature but I wouldn't say it's unstable.

That's good to know. :)

Yeah, we don't tested with native compilation. That's indeed true. 😅

from flycheck.

bbatsov avatar bbatsov commented on May 28, 2024

The tests are working for me, both locally and on the CI, so I close the issue for now.

from flycheck.

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.