Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Tom Cheung
@Tom007Cheung
emmm, how to install rx in emacs
I can't find it
Tom Cheung
@Tom007Cheung
Carlton Henderson
@CarltonHenderson
I'm having trouble getting flycheck to run go-build and golangci-lint despite them both showing up green in flycheck-verify-setup. I'm wondering if it's because go-test is after go-build and before golangci-lint but C-c ! C-c go-test gives: "Cannot use syntax checker go-test in this buffer"
Clément Pit-Claudel
@cpitclaudel
@fmdkdd bazel-mode now requires Emacs 26, which breaks our build on 24.5 and 25 — what's our usual approach in these cases?
Clément Pit-Claudel
@cpitclaudel
OK, build is back to green :)
randomneo
@Randomneo
Hello everyone. I have problem with drop performance (1-2 sec lag that freezes emacs) on big files. Lisp file about 14k lines. I know I can set "on save" flychecking, but is there some way to speedup flycheck?
randomneo
@Randomneo
I founded solution to disable documentation checking it satisfied me
Moritz Bunkus
@mbunkus_gitlab
Hey. Flycheck is not running my Perl syntax check asynchronously. For debugging purposes I've set flycheck-perl-executable to a shell script that simply sleeps for five seconds. Afterwards opening any Perl file and turning on flycheck-mode makes Emacs hang for exactly those five seconds. Aren't the checks supposed to run asynchronously? Meaning that I can continue using Emacs while the syntax checker is doing its thing? (Yes, I've confirmed the behavior with emacs -Q and minimal initialization to get flycheck up and running)
Clément Pit-Claudel
@cpitclaudel
@mbunkus_gitlab I'd love to look at a repro; can you post your example to the Github tracker?
Moritz Bunkus
@mbunkus_gitlab
Sure thing, and thanks for looking into it.
Moritz Bunkus
@mbunkus_gitlab
Meh, I now fail at creating a minimal test case. Will try again in the next couple of days and file an issue on Github if I succeed. Forget about it for the moment, please :)
Clément Pit-Claudel
@cpitclaudel
Sounds good, thanks! :)
Moritz Bunkus
@mbunkus_gitlab
Oooooh I think I know what happens. Please check if the following makes sense:
  1. I'm only setting flycheck-perl-executable, I'm not defining my own checker.
  2. The default Perl checker has :standard-input t set.
  3. My custom executable set in 1. does not read from STDIN, it only uses the file name passed to it as a command-line argument.
  4. flycheck starts my executable in the background.
  5. My executable does its thing & runs the costly check. My executable does not read from STDIN.
  6. flycheck tries to write the current buffer's content to the sub-process's STDIN. This only works with very small buffers (< 512 bytes, maybe?) which are buffered by the C library (or operating system). If the current buffer is larger, though, the C library will block as the sub-process isn't reading its STDIN and Emacs's output buffer is full. Here's where the hang happens.
  7. As soon as my executable ends, Emacs's sub-process terminates, flycheck's attempted write operation fails.
Clément Pit-Claudel
@cpitclaudel
Yep, that makes complete sense
Moritz Bunkus
@mbunkus_gitlab
Yeeaah, simply adding 'cat > /dev/null' at the start of my binary makes this problem go away. Another method might be to really define a generic flycheck checker instead of re-using the existing Perl checker (and disabling that one).
Thanks for the help! And the work on flycheck. I really love it.
Clément Pit-Claudel
@cpitclaudel
Yup, I think defining a new checker is the right way to go :) Thanks for the kind words!
Moritz Bunkus
@mbunkus_gitlab
BTW, one tiny bug I did notice during my tests was that flycheck-compile shell-escapes the binary to execute without running expand-file-name on it. When setting flycheck-perl-executable to ~/bin/myperlcheck or something like that, flycheck-compile will escape that to \~/bin/myperlcheck, and that will fail as there's no such binary.
Clément Pit-Claudel
@cpitclaudel
Good point. I wonder if this was by design when sebastian wrote that part. Is there a good way to just expand ~? The problem otherwise is that if we get python3.5 as the checker name, don't find it in PATH, and expand it to /the/current/directory/python3.5, users will be mightily confused.
chama-chomo
@chama-chomo
hello, I've noticed in my repo some new files generated, starting with flycheck_ in the name . Can I disable this feature, please? I guess flycheck is responsible for it.
Jonathan Leonard
@johanatan
hi, i have flycheck-clj-kondo installed but when i run flycheck-verify-setup on a clojurescript file, it says no checkers are installed which understand that file.
can anyone help me troubleshoot it?
flycheck-clj-kondo is a melpa package and it was installed successfully
Jonathan Leonard
@johanatan
looks like melpa might be down
or hobbling along at reduced capacity
partcularly: elpa.gnu.org apparently
Clément Pit-Claudel
@cpitclaudel
@chama-chomo These are temporary files created to feed to the checker. Flycheck should remove them automatically. If your checker supports input on stdin, these wont be needed. Alternatively you can set flycheck to only check your file upon saving it.
chama-chomo
@chama-chomo
ok thanks
fleimgruber
@fleimgruber
Is there an official way to do what I tried in a .dir-locals.el https://pastebin.com/53XVB4g1, i.e. to disable flycheck for all "wscript" files? Also, what about disabling for "*.suffix" files?
Clément Pit-Claudel
@cpitclaudel
@fleimgruber Your code looks reasonable, though you shouldn't put a lambda in there. Does it work if you remove it?
fleimgruber
@fleimgruber
If I try that, then I get this error File local-variables error: (invalid-function (when (string= (file-name-nondirectory buffer-file-name) wscript) (flycheck-mode 0)))
Alex Brick
@bricka
Hi all. Can anyone help me with the php-phpcs checker? I get an error when I run it with flycheck-compile, but there are no errors in the list:
Compilation started at Wed Nov 20 15:30:05

/home/abrick/bin/phpcs-core --report\=checkstyle -q --stdin-path\=REDACTED/src/Entity/Group.php - < REDACTED/src/Entity/Group.php
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="3.5.0">
<file name="src/Entity/Group.php">
 <error line="6" column="1" severity="error" message="Use statements should be sorted alphabetically. The first wrong one is App\Constant\Role." source="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses"/>
</file>
</checkstyle>

Compilation exited abnormally with code 2 at Wed Nov 20 15:30:05
flycheck-current-errors is a variable defined in ‘flycheck.el’.
Its value is nil
Local in buffer Group.php; global value is the same.

  Automatically becomes buffer-local when set.

Documentation:
A list of all errors and warnings in the current buffer.
Julio Borja Barra
@juboba
how can I check what command flycheck is running to check my current file?
can I see log messages like in Messages somehow?
George Michokostas
@gmichokostas_gitlab

Hello,
I just install flycheck and I am trying to make it work with eslint but I for some reason it can't find the .eslintrc.js in my project

This is what I get when I do verify setup

  javascript-eslint (disabled)
    - may enable:  Automatically disabled!
    - executable:  Found at /usr/local/bin/eslint
    - config file: missing or incorrect

Flycheck Mode is enabled.  Use C-u C-c ! x to enable disabled
checkers.

--------------------

Flycheck version: 32snapshot (package: 20191121.2139)
Emacs version:    26.3
System:           x86_64-apple-darwin18.2.0
Window system:    ns
eslint -v v5.13.0 if that helps
roadrunner1776
@roadrunner1776
Is there a timeline / roadmap for Flycheck 32 available?
hisnawi
@hisnawi
I am using emacs with the setup (lsp/ccls/flycheck). I am also using the option:
flycheck-check-syntax-automatically '(mode-enabled save)
However, flycheck still displays errors in the buffer while editing and before saving the buffer.
Ivan Yonchovski
@yyoncho
@hisnawi check lsp-ui-flycheck-live-reporting
hisnawi
@hisnawi
@yyoncho thank you. will check that out. It worked :)
Lareb Khalil Syed
@larebsyed
Hi
I am new here, I am facing an issue, I have enabled run on save buffer, now whenever I save by typescript buffer, with typescript-tide and typescript-tslint check enabled, the emacs freezes for a couple of second.
Does any one else has this issue?
jaywalkerpaz
@jaywalkerpaz
Hello, I'm getting this error whenever I open emacs:
error while checking syntax automatically wrong-type-argument wholenump, nil
I believe this is related to flycheck? Has anyone seen this before?
jmtoniolo
@jmtoniolo
Can flycheck be used for custom compilers. For example, if my company uses their own compiler can I use that compiler with flycheck? I think the flycheck-define-checker function can do it, but our command line has to be initialized with a special command before our compiler can be run.
James
@lunchboxer
I'm using flycheck with markdown. I have a .markdownlint.json file in project root, but running flycheck-verify-setup reports that markdownlint is disable because the configuration file was not found. what can I do?
Nicolas Gimenez
@nicobao
Hi there! I'm using Spacemacs & Flycheck with Javascript-Eslint. Overall, it works. But at a specific error, when typing flycheck-next-error, it refuses to go on.
I must move the cursor down the file for flycheck-next-error to work again. See the attached .gif. Do you guys have any clue where this comes from?