You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for taking the time to report an issue and improve Flycheck. This template is for actual bugs you observed. If you have trouble setting up Flycheck, or if you have a question, please use the relevant issue template instead.
Checklist
I have checked existing issues for potential duplicates before creating this one.
The latest version of tflint 0.47.0 changed how the command line arguments work such that it no longer accepts a file to lint from the command line. Instead you need to prefix the files with a --filter.
Here's the output from flycheck-compile:
-*- mode: compilation; default-directory: "~/dev/examples/storage/s3/" -*-
Compilation started at Wed Jul 12 12:44:27
/usr/local/bin/tflint --format\=json /Users/arcsteveio/dev/examples/storage/s3/main.tf
{"issues":[],"errors":[{"message":"Command line arguments support was dropped in v0.47. Use --chdir or --filter instead.","severity":"error"}]}
Compilation exited abnormally with code 1 at Wed Jul 12 12:44:27
If I take that same command and put a --filter in front of the file it appears to work fine:
Suspicious state from syntax checker terraform-tflint: Flycheck checker terraform-tflint returned 1, but its output contained no errors: {"issues":[],"errors":[{"message":"Command line arguments support was dropped in v0.47. Use --chdir or --filter instead.","severity":"error"}]}
Try installing a more recent version of terraform-tflint, and please open a bug report if the issue persists in the latest release. Thanks!
Flycheck uses tflint and marks up my buffer with handy errors to fix.
Screenshots
n/a
System configuration
First checker to run:
terraform
- may enable: yes
- executable: Found at /usr/local/bin/terraform
- next checkers: terraform-tflint
Checkers that may run as part of the first checker's chain:
terraform-tflint
- may enable: yes
- may run: t
- executable: Found at /usr/local/bin/tflint
Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled
checkers.
--------------------
Flycheck version: 33snapshot (package: 20230306.414)
Emacs version: 28.2
System: x86_64-apple-darwin22.5.0
Window system: ns
Emacs configuration:
Plain Emacs / Custom configuration
Spacemacs
Doom Emacs
Other shared configuration
Additional notes
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Closes: flycheck#2024
tflint can no longer be run on individual files. With this commit,
tflint is run on all files of the directory of the buffer file.
dod38fr
added a commit
to dod38fr/flycheck
that referenced
this issue
Nov 6, 2023
Closes: flycheck#2024
tflint can no longer be run on individual files. With this commit,
tflint is run on all files of the directory of the buffer file.
Thank you for taking the time to report an issue and improve Flycheck. This template is for actual bugs you observed. If you have trouble setting up Flycheck, or if you have a question, please use the relevant issue template instead.
Checklist
Bug description
The latest version of tflint 0.47.0 changed how the command line arguments work such that it no longer accepts a file to lint from the command line. Instead you need to prefix the files with a
--filter
.Here's the output from flycheck-compile:
If I take that same command and put a
--filter
in front of the file it appears to work fine:Steps to reproduce
Assuming Flycheck and tflint are installed.
Steps to reproduce the behavior:
Expected behavior
Flycheck uses tflint and marks up my buffer with handy errors to fix.
Screenshots
n/a
System configuration
Emacs configuration:
Additional notes
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: