-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning and Message when opening a ruby file #4098
Comments
The warning probably means that a hook in The other message has to do with Flycheck encountering some errors. I don't know Ruby, but Flycheck (the package that provides syntax checking) has some commands for detecting errors. Try hitting |
I can replicate the System Info
((auto-completion :variables auto-completion-enable-sort-by-usage t auto-completion-enable-snippets-in-popup t)
clojure colors common-lisp emacs-lisp evil-commentary extra-langs eyebrowse git github gtags
(haskell :variables haskell-enable-ghc-mod-support t haskell-enable-ghci-ng-support t)
html java javascript markdown
(org :variables org-enable-github-support t)
puppet racket react restclient ruby ruby-on-rails scala scheme search-engine semantic
(shell :variables shell-default-term-shell "/bin/bash" shell-default-height 30 shell-default-position 'bottom)
shell-scripts spell-checking
(syntax-checking :variables syntax-checking-enable-tooltips nil)
sql themes-megapack unimpaired version-control yaml) |
Here is mine: System Info
(auto-completion emacs-lisp git html javascript markdown org osx python ruby
(shell :variables shell-default-shell 'ansi-term shell-default-term-shell "/usr/local/bin/zsh" shell-default-height 30 shell-default-position 'bottom)
syntax-checking) Hitting SPC e v gives the following output:
|
Here's my
|
Same issue here opening ruby files via terminal emacs:
|
The About the other issue, Spacemacs uses Flycheck for the syntax checking functionality. Flycheck checks the syntax by running an external checker and checking its return code and output. IIRC Flycheck expects the checker to produce some error output when returning a non-zero return code. In @gguimaraesbr's case the checker didn't print any errors. If I understand the message correctly, the output of the checker was "no Ruby script found in input (LoadError)". @gguimaraesbr according to your
So I guess you should install rubocop or rubylint. I don't use Ruby myself, so I can't really help you much more. If you want to look further into this problem you should check out http://www.flycheck.org/resources.html and Flycheck questions in stackoverflow and https://emacs.stackexchange.com. @wamaral I see you have rubocop. Does syntax checking work for you, or do you get the same "Suspicious state" message? |
@bmag syntax checking, as well as linting, works perfectly for me with rubocop. I will check out the develop branch later today and report back. |
@bmag Installing rubocop and running on develop solved both issues. Thank you! |
I can confirm, no errors shown while using the develop branch. Thanks! |
It happens everytime I open a ruby file:
Warning:
Error (use-package): enh-ruby-mode :config: Symbol's function definition is void: sp-with-modes
Message:
Suspicious state from syntax checker ruby: Checker ruby returned non-zero exit code 1, but no errors from output: ruby: no Ruby script found in input (LoadError) Checker definition probably flawed.
Any idea?
The text was updated successfully, but these errors were encountered: