emacs-elsa / Elsa

Emacs Lisp Static Analyzer and gradual type system.
GNU General Public License v3.0
640 stars 26 forks source link

Scan error with "Containing expression ends prematurely" #167

Closed conao3 closed 1 year ago

conao3 commented 4 years ago

Hi! I interested this project and use it but Elsa was exited with Scan error.

There is little information available (I don't even know which file is the cause) from the error message and I tried to debug, but I didn't know why it didn't work. Do you know why Elsa failed?

Work log

conao-macbook:~/.emacs.d/site-lisp/flylint conao
$ cat Cask 
;; -*- mode:lisp -*-

(source gnu)
(source melpa)

(package "flylint" "0.0.1" "Asynchronous on-the-fly inspection framework")

(package-file "flylint.el")

(development
 (depends-on "cort-test"
             :git "https://github.com/conao3/cort-test.el"
             :ref "0d5820c"
             :files ("*.el" (:exclude "cort-tests.el")))
 (depends-on "elsa")
 ;; (depends-on "ecukes")
 ;; (depends-on "ert-runner")
 ;; (depends-on "el-mock")
 )

conao-macbook:~/.emacs.d/site-lisp/flylint conao
$ cask
Loading package information... done
Package operations: 4 installs, 0 removals
  - Installing [ 1/4] async-await (1.0)... already present
  - Installing [ 2/4] emacs (26)... already present
  - Installing [ 3/4] elsa (latest)... already present
  - Installing [ 4/4] cort-test (latest)... already present

conao-macbook:~/.emacs.d/site-lisp/flylint conao
$ cask exec elsa flylint.el 
analyzer: updating variable promise--last-error, old type nil
analyzer: updating variable promise--is-error, old type nil
analyzer: updating variable promise--on-handle, old type nil
analyzer: updating variable promise--on-reject, old type nil
Scan error: "Containing expression ends prematurely", 6492, 6493
conao3 commented 4 years ago

The header of flylint.el as below.

$ cat flylint.el | head
;;; flylint.el --- Asynchronous on-the-fly inspection framework  -*- lexical-binding: t; -*-

;; Copyright (C) 2019  Flylint Community

;; Author: Naoya Yamashita <conao3@gmail.com>
;;         USAMI Kenta <tadsan@zonu.me>
;; Version: 0.0.1
;; Keywords: tools
;; Package-Requires: ((emacs "26") (async-await "1.0"))
;; License: GPL-3.0

and a full project located in http://github.com/flylint/flylint .

Fuco1 commented 1 year ago

I tried to run analysis on the project and it passes now.