Giter VIP home page Giter VIP logo

flycheck-elsa's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flycheck-elsa's Issues

Failed install in independence environment

Hi!
Because I attempt to research this package something wrong, I want to run this package in an independent environment.

This file saved at ~/.debug.emacs.d/elsa/init.el and load it with emacs -q -l ~/.debug.emacs.d/elsa/init.el

init.el

;; ~/.debug.emacs.d/elsa/init.el

;; you can run like 'emacs -q -l ~/.debug.emacs.d/{{pkg}}/init.el'
(when load-file-name
  (setq user-emacs-directory
        (expand-file-name (file-name-directory load-file-name))))

(prog1 "prepare leaf"
  (prog1 "package"
    (custom-set-variables
     '(package-archives '(("org"   . "https://orgmode.org/elpa/")
                          ("melpa" . "https://melpa.org/packages/")
                          ("gnu"   . "https://elpa.gnu.org/packages/"))))
    (package-initialize))

  (prog1 "leaf"
    (unless (package-installed-p 'leaf)
      (package-refresh-contents)
      (package-install 'leaf))))



(load (locate-user-emacs-file "../essentials.el"))

(leaf flycheck
  :ensure t
  ;; :custom ((global-flycheck-mode . t))
  :config
  (leaf flycheck-elsa
    :ensure t
    :hook ((flycheck-mode-hook . flycheck-elsa-setup))
    :config
    (leaf elsa-font-lock            ; elsa built-in
      :require t
      :defun (elsa-setup-font-lock)
      :config (elsa-setup-font-lock))))

install log

Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/leaf-20191023.1053’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/leaf-20191023.1053/leaf.el at Tue Nov 12 17:43:23 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/leaf-20191023.1053/’

Compiling no file at Tue Nov 12 17:43:23 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/real-auto-save-20190224.1446’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/real-auto-save-20190224.1446/real-auto-save.el at Tue Nov 12 17:43:23 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/real-auto-save-20190224.1446/’

Compiling no file at Tue Nov 12 17:43:24 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/epl-20180205.2049’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/epl-20180205.2049/epl.el at Tue Nov 12 17:43:24 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/epl-20180205.2049/’

Compiling no file at Tue Nov 12 17:43:25 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/pkg-info-20150517.1143’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/pkg-info-20150517.1143/pkg-info.el at Tue Nov 12 17:43:25 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/pkg-info-20150517.1143/’

Compiling no file at Tue Nov 12 17:43:26 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/dash-20191109.1327’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/dash-20191109.1327/dash.el at Tue Nov 12 17:43:26 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/dash-20191109.1327/’

Compiling no file at Tue Nov 12 17:43:33 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/flycheck-20191108.2129’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/flycheck-20191108.2129/flycheck-ert.el at Tue Nov 12 17:43:33 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/flycheck-20191108.2129/’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/flycheck-20191108.2129/flycheck.el at Tue Nov 12 17:43:33 2019

Compiling no file at Tue Nov 12 17:43:35 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/s-20180406.808’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/s-20180406.808/s.el at Tue Nov 12 17:43:35 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/s-20180406.808/’

Compiling no file at Tue Nov 12 17:43:35 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/ansi-20150703.826’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/ansi-20150703.826/ansi.el at Tue Nov 12 17:43:35 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/ansi-20150703.826/’

Compiling no file at Tue Nov 12 17:43:39 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616/package-build-badges.el at Tue Nov 12 17:43:39 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616/’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616/package-build.el at Tue Nov 12 17:43:39 2019

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616/package-recipe-mode.el at Tue Nov 12 17:43:39 2019

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/package-build-20191010.616/package-recipe.el at Tue Nov 12 17:43:39 2019

Compiling no file at Tue Nov 12 17:43:39 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/shut-up-20180628.1830’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/shut-up-20180628.1830/shut-up.el at Tue Nov 12 17:43:39 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/shut-up-20180628.1830/’

In end of data:
shut-up.el:151:1:Warning: the following functions are not known to be defined:
    shut-up-write-region-original, shut-up-load-original

Compiling no file at Tue Nov 12 17:43:40 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/f-20191110.1357’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/f-20191110.1357/f.el at Tue Nov 12 17:43:40 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/f-20191110.1357/’

Compiling no file at Tue Nov 12 17:43:42 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/cask-20191004.1155’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/cask-20191004.1155/cask-bootstrap.el at Tue Nov 12 17:43:42 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/cask-20191004.1155/’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/cask-20191004.1155/cask.el at Tue Nov 12 17:43:42 2019
cask.el:48:1:Error: Cannot open load file: No such file or directory, /home/conao/.debug.emacs.d/elsa/cask-bootstrap

Compiling no file at Tue Nov 12 17:43:43 2019
Leaving directory ‘/home/conao/.debug.emacs.d/elsa/elpa/flycheck-elsa-20190211.1921’

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/flycheck-elsa-20190211.1921/Elsafile.el at Tue Nov 12 17:43:43 2019
Entering directory ‘/home/conao/.debug.emacs.d/elsa/elpa/flycheck-elsa-20190211.1921/’
Elsafile.el:2:2:Warning: reference to free variable ‘dash’
Elsafile.el:3:2:Warning: reference to free variable ‘eieio’
Elsafile.el:4:2:Warning: reference to free variable ‘cl’
Elsafile.el:5:2:Warning: reference to free variable ‘elsa’
Elsafile.el:6:2:Warning: reference to free variable ‘seq’
Elsafile.el:7:2:Warning: reference to free variable ‘flycheck’
Elsafile.el:11:2:Warning: reference to free variable ‘dead-code’
Elsafile.el:12:2:Warning: reference to free variable ‘style’
Elsafile.el:13:2:Warning: reference to free variable ‘error’
Elsafile.el:14:2:Warning: reference to free variable ‘variables’

In end of data:
Elsafile.el:17:1:Warning: the following functions are not known to be defined:
    register-extensions, register-ruleset

Compiling file /home/conao/.debug.emacs.d/elsa/elpa/flycheck-elsa-20190211.1921/flycheck-elsa.el at Tue Nov 12 17:43:43 2019

This log included error when byte-compile cask.el.
This is not a problem with Cask, and I think this problem should be solved by removing the dependency on Cask.
And I think it should be installed by functions like flycheck-elsa-install-binary like packages with other dependent binaries.

flycheck unable to run cask

(executable-find "cask") returns the path to my cask binary.

but flycheck-verify-setup returns emacs-lisp-elsa under the heading:

"Checkers that are compatible with this mode, but will not run until properly configured:"

like so

  emacs-lisp-elsa
    - may enable: yes
    - may run:    nil
    - executable: Found at /home/mouse/.cask/bin/cask

my cask exec has exec permissions for all users.

i have also used elsa previously, but that was a while back and before updating to 29. i just uncommented the relevant use-package code now and tried again.

Only errors from flycheck are showing

Thanks for this library absolute helpful for writing Elisp code
I have configured Emacs as you say, and I use cask for managing my Emacs dependencies in the .emacs.d, not at the moment in this library, but I have installed elsa and flycheck-elsa adding to my Emacs cask file.

Then I also did and test the setup in the Readme:

*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> emacs-lisp-mode-hook
(flycheck-elsa-setup nameless-mode)

ELISP> (executable-find "cask")
"/usr/local/bin/cask"

But when I open a .el file I only get the errors from normal flycheck

captura de pantalla 2019-02-11 a las 17 55 05 2

Here in the Elsa readme should also show:

Condition always evaluate to non-nil

and In messages I can read this error:

Suspicious state from syntax checker emacs-lisp-elsa: Flycheck checker emacs-lisp-elsa returned non-zero exit code 255, but its output contained no errors: Invalid slot type: elsa-const-type, type, elsa-type, #s(#s(eieio--class elsa-type-keyword nil (#s(eieio--class elsa-type-symbol "Quoted symbol" (#s(eieio--class elsa-type nil nil [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-const-type elsa-type-font elsa-type-overlay elsa-type-keymap elsa-type-stream elsa-type-conditionvariable elsa-type-mutex elsa-type-thread elsa-type-process elsa-type-frameconfiguration ...) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-type-keyword elsa-type-bool) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) nil nil [] [] ...))

Try installing a more recent version of emacs-lisp-elsa, and please open a bug report if the issue persists in the latest release.  Thanks!
Suspicious state from syntax checker emacs-lisp-elsa: Flycheck checker emacs-lisp-elsa returned non-zero exit code 255, but its output contained no errors: Invalid slot type: elsa-const-type, type, elsa-type, #s(#s(eieio--class elsa-type-string nil (#s(eieio--class elsa-type-sequence nil (#s(eieio--class elsa-type nil nil [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-const-type elsa-type-font elsa-type-overlay elsa-type-keymap elsa-type-stream elsa-type-conditionvariable elsa-type-mutex elsa-type-thread elsa-type-process elsa-type-frameconfiguration ...) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-type-vector elsa-type-list elsa-type-string) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-type-short-string) nil [] [] ...))

Try installing a more recent version of emacs-lisp-elsa, and please open a bug report if the issue persists in the latest release.  Thanks!
Q

I do not know what to do, if I use Elsa as showed in the readme of Elsa, without cloinign I get:

cask exec elsa segl.el                    ✓  12.04 Dur  10090  18:03:01
Invalid slot type: elsa-const-type, type, elsa-type, #s(#s(eieio--class elsa-type-string nil (#s(eieio--class elsa-type-sequence nil (#s(eieio--class elsa-type nil nil [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-const-type elsa-type-font elsa-type-overlay elsa-type-keymap elsa-type-stream elsa-type-conditionvariable elsa-type-mutex elsa-type-thread elsa-type-process elsa-type-frameconfiguration ...) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-type-vector elsa-type-list elsa-type-string) nil [] [] ...)) [] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) (elsa-type-short-string) nil [] [] ...)) 

linked to the cask download I get:

cask link elsa .cask/27.0/elpa/elsa-20190110.1457
Apparent cycle of symbolic links for /Users/toni/learn/emacs/svg/segl/.cask/27.0/elpa/elsa-20190110.1457

cask exec elsa segl.el                            255 ↵  10092  18:04:09
cask exec: error: Failed to execute elsa segl.el: [Errno 2] No such file or directory
Did you run cask install?

when I clone it, nothing happens

git clone https://github.com/emacs-elsa/Elsa.git      ✓  10099  18:06:11
Cloning into 'Elsa'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 1833 (delta 4), reused 6 (delta 2), pack-reused 1823
Receiving objects: 100% (1833/1833), 812.52 KiB | 1.81 MiB/s, done.
Resolving deltas: 100% (1208/1208), done.
╭─ ~/bin  2.4.2@learn 
╰─ cd Elsa                                               ✓  10100  18:06:16
╭─ ~/bin/Elsa  2.4.2@learn  master 
╰─ pwd                                                   ✓  10101  18:06:19
/Users/toni/bin/Elsa
╭─ ~/bin/Elsa  2.4.2@learn  master 
╰─ cd -                                                  ✓  10102  18:06:21
~/bin
╭─ ~/bin  2.4.2@learn 
╰─ cd ..                                                 ✓  10103  18:06:31
╭─ ~  2.4.2@learn 
╰─ cd learn/emacs/svg/segl                               ✓  10104  18:06:33
╭─ ~/learn/emacs/svg/segl  2.4.2@learn  master ? 
╰─ cask link elsa /Users/toni/bin/Elsa                   ✓  10105  18:06:41
╭─ ~/learn/emacs/svg/segl  2.4.2@learn  master ? 
╰─ cask exec elsa ./segl.el                              ✓  10106  18:06:59
╭─ ~/learn/emacs/svg/segl  2.4.2@learn  master ? 
╰─ cask exec elsa ./segl.el

The only thing noticiable is that the emacs buffer lost all flychecks comments, no error in messages shown:

Revert buffer from file /Users/toni/learn/emacs/svg/segl/segl.el? (y or n) y

captura de pantalla 2019-02-11 a las 17 55 05 2

this my repo

Stop requiring projects to use Cask

flycheck-elsa requires that a project is described with Cask. I don't understand the reasoning. I see many projects not having a Cask file. Out of the 210 packages I'm currently using, only 67 have a Cask file at the root.

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.