lean2/src
Leonardo de Moura 11fbee269b fix(frontends/lean/parser): must save state of name_generator in parser snapshot
To provide typing and auto-completion information, we create a
background process by starting lean with the option --server.
In "server" mode, we create snapshots of the parser state.
The idea is to be able to quickly reprocess a file when the user makes a
modification. This commit fixes a bug in the snapshot operation.
It was not saving in the snapshots the unique name generator used by the parser.
By creating a fresh name generator, we may accidentally
assign the same internal name to two different constants.
This bug triggered the crash described in issue #593.

This commit fixes the test in the comment
https://github.com/leanprover/lean/issues/593#issuecomment-101768484

This commit also adds a smaller version of the problem to the test suite
2015-05-13 12:28:23 -07:00
..
cmake fix(cmake/Modules/cpplint.py): python3 compatible without six 2015-01-22 13:05:56 -08:00
emacs feat(library/tactic): add 'induction' tactic skeleton 2015-05-12 20:21:25 -07:00
frontends fix(frontends/lean/parser): must save state of name_generator in parser snapshot 2015-05-13 12:28:23 -07:00
init feat(kernel/hits): add two builtin HITs: type_quotient and trunc 2015-04-23 15:32:31 -07:00
kernel feat(kernel): transparent theorems 2015-05-09 11:42:29 -07:00
library fix(library/user_recursors): warning 2015-05-13 10:04:38 -07:00
shell feat(library): export environment in textual format 2015-05-04 18:05:00 -07:00
tests chore(tests/library/blast/union_find): fix style 2015-05-12 06:24:58 -07:00
util feat(util/sexpr/format): add check_system at formatter 2015-04-27 14:21:25 -07:00
CMakeLists.txt feat(library/blast): add union-find datastructure 2015-05-11 16:19:51 -07:00
CTestConfig.cmake chore(ctest): fix typo in CTEST_DROP_LOCATION 2013-11-25 03:14:35 -05:00
CTestCustom.cmake.in Exclude 'style_check' from MemCheck list 2013-09-13 20:27:35 -07:00
Doxyfile Add EXCLUDE_PATTERNS to src/Doxyfile 2013-09-15 20:31:15 -07:00
githash.h.in fix(build): githash generation 2013-12-29 14:41:28 -08:00
memcheck.supp chore(memcheck.supp): another suppression for awk 2013-12-25 13:56:50 -08:00
version.h.in feat(CMakeLists.txt): use bin/package_version if needed 2014-10-07 16:58:44 -07:00