Closed alistair closed 7 years ago
Works for me
running :flycheck-verify-setup results in
Syntax checkers for buffer run-docker-app.sh in sh-mode:
There are no syntax checkers for this buffer!
The following syntax checkers are not registered:
- ada-gnat
- asciidoc
- asciidoctor
- c/c++-clang
- c/c++-cppcheck
- c/c++-gcc
- cfengine
- chef-foodcritic
- coffee
- coffee-coffeelint
- coq
- css-csslint
- css-stylelint
- d-dmd
- dockerfile-hadolint
- elixir-dogma
- emacs-lisp
- emacs-lisp-checkdoc
- erlang
- eruby-erubis
- fortran-gfortran
- go-build
- go-errcheck
- go-gofmt
- go-golint
- go-test
- go-unconvert
- go-vet
- groovy
- haml
- handlebars
- haskell-ghc
- haskell-hlint
- haskell-stack-ghc
- html-tidy
- javascript-jscs
- javascript-jshint
- javascript-standard
- json-jsonlint
- json-python-json
- less
- less-stylelint
- lua
- lua-luacheck
- markdown-mdl
- perl
- perl-perlcritic
- php
- php-phpcs
- php-phpmd
- processing
- protobuf-protoc
- pug
- puppet-lint
- puppet-parser
- python-flake8
- python-pycompile
- python-pylint
- r-lintr
- racket
- rpm-rpmlint
- rst
- rst-sphinx
- ruby
- ruby-jruby
- ruby-rubocop
- ruby-rubylint
- rust
- rust-cargo
- sass
- sass/scss-sass-lint
- scala
- scala-scalastyle
- scheme-chicken
- scss
- scss-lint
- scss-stylelint
- sh-bash
- sh-posix-bash
- sh-posix-dash
- sh-shellcheck
- sh-zsh
- slim
- slim-lint
- sql-sqlint
- systemd-analyze
- tex-chktex
- tex-lacheck
- texinfo
- typescript-tslint
- verilog-verilator
- xml-xmllint
- xml-xmlstarlet
- yaml-jsyaml
- yaml-ruby
Try adding these syntax checkers to `flycheck-checkers'. Flycheck Mode is
disabled. Use SPC u M-x flycheck-disable-checker to enable disabled checkers.
--------------------
Flycheck version: 31snapshot (package: 20170324.340)
Emacs version: 24.5.1
System: x86_64-pc-linux-gnu
Window system: x
@CeleritasCelery might be interesting if you gave some context as to your setup so that we could compare why it works for you and not me. I actually raised this as it wasnt working for a mate which I was able to reproduce.
I have no setup for shellcheck. It literally worked out of the box because it was on my path. Does your file have a she-bang and is it one of the supported shells? I know shellcheck won't work when I try to use it with tcsh.
Though I have not updated my packages in a while, so something might be broken.
@alistair it looks like you don't have the shell-scripts
layer enabled in your .spacemacs
.
@beta1440 hawks's eye!
I have shell-scripts enabled in my .spacemacs
config but I still don't get flycheck working. My config: https://github.com/maticko/dotfiles/blob/master/.spacemacs
what language are you trying to check?
Bash
Do you have shellcheck installed?
I do
~ which shellcheck /usr/local/bin/shellcheck
.
If I manually select SPC e s sh-shellcheck
, it's working. But it's not picked automatically.
What is your files shebang?
standard #!/bin/bash
and #!/usr/bin/env bash
do you see [bash]
in your modeline? and does it work if you call sh-set-shell
?
No change if I call sh-set-shell
Probably should open a new issue then. Or ask this over at flycheck.
@maticko did you ever resolve this issue, i'm having the same problem?
@AntonOrlovAmbulnz never worked for me.
@UtaAmb @maticko lsp problem? https://github.com/syl20bnr/spacemacs/issues/14719
Description :octocat:
flycheck mode is not enabled with shell-scripts layer
Reproduction guide :beetle:
Observed behaviour: :eyes: :broken_heart: No flycheck warning or errors display running the following does cause flycheck to work
Expected behaviour: :heart: :smile: Flycheck warnings or errors display
System Info :computer: