Mirror of https://github.com/leanprover/lean2 in case it ever disappears
Find a file
Soonho Kong fe638f0ee7 fix(emacs/lean-flycheck): fix bug in advice for lean-flycheck-try-parse-error-with-pattern
I provided an "advice" for 'flycheck-try-parse-error-with-pattern'
function to change its behavior, namely to increase error-columns by
one.

Bug
===

The problem is that it doesn't consider the case where the pattern is
not matched and ends up with "err = nil". For this case,
"(flycheck-error-column err)" generates an exception if executed. The
whole error parsing process stops immediately.

This causes a problem when we have more than one error-patterns, which
is the case when we enable 'error' and 'warning' patterns.

Fix
===

Fix is simple: check err before executing (flycheck-error-column err)

-            (col (flycheck-error-column err)))
+            (col (and err (flycheck-error-column err))))
2014-11-24 05:06:51 -05:00
bin fix(frontends/lean/parser_config): binder(s) rbp was not being saved in .olean file 2014-11-23 17:49:14 -08:00
doc doc(make/osx-10.9.md): update available compilers and required/optional pacakges 2014-10-31 09:48:27 -07:00
images chore(*): add logo 2014-04-29 16:21:17 -07:00
library chore(library/hott) made ua_implies_funext a class instance 2014-11-23 17:43:55 -08:00
script fix(script/demangle_cpptype): process line-by-line, instead of waiting for EOF 2013-09-29 18:36:01 -07:00
src fix(emacs/lean-flycheck): fix bug in advice for lean-flycheck-try-parse-error-with-pattern 2014-11-24 05:06:51 -05:00
tests feat(frontends/lean/find_cmd): add options for controlling find_decl 2014-11-24 00:16:10 -08:00
.gitignore chore(.gitignore): add .lean_options 2014-09-04 15:04:57 -07:00
.travis.osx.yml chore(.travis.osx.yml): add configurations using clang++ 2014-10-06 14:45:28 -07:00
.travis.windows.yml feat(build): add 'CROSS_COMPILE' cmake option 2014-09-26 09:26:40 -07:00
.travis.yml feat(build): add 'CONSERVE_MEMORY' cmake option 2014-09-29 12:44:29 -07:00
LICENSE Add LICENSE file 2013-07-15 18:55:48 -07:00
README.md chore(README.md): add 'issue stat' badges 2014-10-28 17:23:02 -07:00

logo

LicenseWindowsUbuntuOS XCoverageBuilds/TestsStatic Analysis
Coverity Scan Build Status

Issue Stats Issue Stats

About

Requirements

Installing required packages at

Windows

Linux

OS X

Build Instructions

Miscellaneous