Giter Site home page Giter Site logo

Comments (8)

immerrr avatar immerrr commented on June 5, 2024

Thanks for the report.

I've looked through, it appears that to reproduce that I need to download/install vagrant + travis image of emacs-lisp worker, don't I?

from lua-mode.

swsnr avatar swsnr commented on June 5, 2024

Uhm no. There is no such thing as a “travis image of emacs lisp work”…

You need install Lua mode from MELPA, and non-interactively run a piece of Emacs Lisp, that inserts file contents into a temporary buffer, and attempts to enable Lua mode, e.g. something like the following:

(with-temp-buffer
  (insert-file-contents "foo" t)
  (lua-mode))

That should freeze after printing prefix key set to "C-c" to standard output, as described in the referenced Flycheck issue.

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

I did the following:

  • created new user so that my configuration doesn't alter environment
  • installed carton via wget ... command specified on its github page
  • cloned flycheck
  • ran make deps
  • ran carton exec emacs --no-site-file --no-site-lisp --batch -l tests/testsuite.el -l tests/test-lua/test-lua.el
~/flycheck$ carton exec emacs --no-site-file --no-site-lisp --batch -l tests/testsuite.el -l tests/test-lua/test-lua.el
Running tests on Emacs 24.2.1
prefix key set to "C-c"
~/flycheck$ 

And it ran fine so far. I guess that's the same as you described, locally it runs OK.

from lua-mode.

swsnr avatar swsnr commented on June 5, 2024

You didn't run anything. You have to actually execute the test suite. Take a look at the Makefile to see how.

But as said, you don't need to run the Flycheck test suite. Any kind of Emacs Lisp snippet like the one I sketched up will do.

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

Ok, figured that out, I guess:

~/flycheck$ ~/.carton/bin/carton  exec emacs --no-site-file --batch -l tests/testsuite.el --eval '(ert-run-tests-batch-and-exit "lua")'
Running tests on Emacs 24.2.1
prefix key set to "C-c"
Running 1 tests (2013-03-19 16:36:54+0400)
   passed  1/1  checker-lua-missing-quote

Ran 1 tests, 1 results as expected (2013-03-19 16:36:54+0400)

from lua-mode.

swsnr avatar swsnr commented on June 5, 2024

I guess that means you we're unable to re-produce this issue. I'll promise to check again myself ASAP, but please be patient, I've got a lot of other things to do currently.

from lua-mode.

swsnr avatar swsnr commented on June 5, 2024

I, too, have been unable to re-produce the issue in the latest MELPA packages of Lua mode. I am thus closing this issue. Please excuse the hassle.

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

Sure, no problem, glad it helped.

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