Commit graph

119 commits

Author SHA1 Message Date
Sebastian Ullrich
9413f132c0 chore(bin/lean-gdb): terser expr pretty printer 2017-02-21 11:06:39 -08:00
Gabriel Ebner
e03c31d2f9 refactor(gitignore): remove old ignore entries 2016-12-10 08:42:39 -08:00
Leonardo de Moura
a76c2d37a7 chore(bin,src,src/emacs): delete linja 2016-11-29 14:14:42 -08:00
Gabriel Ebner
3c37e3cd25 fix(bin/lean-gdb): support python 2 2016-11-10 15:46:50 -08:00
Sebastian Ullrich
02a6063923 feat(bin/lean-gdb): support pretty-printing rb_map and rb_tree 2016-11-08 08:37:41 -08:00
Gabriel Ebner
38ee100117 chore(bin/lean-gdb): remove lean::name from string output 2016-11-07 14:55:32 -08:00
Gabriel Ebner
dad7de5578 feat(bin/lean-gdb): show expr_cell members 2016-11-07 14:55:32 -08:00
Gabriel Ebner
d4fdea6751 fix(lean-gdb): do not print the u in u"limb" in python 2 2016-11-07 14:55:32 -08:00
Gabriel Ebner
a7fe8cf15c fix(bin/linja): support files with spaces 2016-10-16 14:41:35 -07:00
Gabriel Ebner
ec0aa6d248 refactor(*): integrate emscripten build 2016-10-16 14:41:35 -07:00
Leonardo de Moura
0bb155a427 chore(*): remove .clean support
In Lean2, we used to cache elaborated definitions in .clean files. The
main goal was to optimize each flycheck invocation produced by Emacs.

The Lean3 definition package was not updating this cache. Moreover, it
is not necessary because the new compilation server subsumes it.
2016-10-13 19:58:58 -07:00
Gabriel Ebner
ba74530cc0 chore(*): remove legacy flycheck support 2016-10-13 18:49:10 -07:00
Leonardo de Moura
b2e1e920a9 chore(frontends/lean,library,linja): remove .ilean files 2016-09-20 08:43:45 -07:00
Leonardo de Moura
4c408d20d7 chore(bin): remove broken leantags 2016-09-19 19:57:30 -07:00
Sebastian Ullrich
03b1daa0bf feat(bin): GDB pretty printer for lean::buffer 2016-07-29 23:44:29 -04:00
Sebastian Ullrich
a18440d67e feat(bin): add GDB pretty-printers for lean::name and lean::list 2016-07-24 12:37:05 -07:00
Soonho Kong
994815bc77 fix(bin/linja.in): roll back d8fb6f5
The previous fix d8fb6f5 creates a problem in Linux platform.

Related issue: #986
2016-02-15 14:31:15 -05:00
Soonho Kong
d8fb6f5082 fix(bin/linja.in): wrap args.cache to avoid problems handling fullpath with space
related issue: #986
2016-02-12 13:25:23 -05:00
Leonardo de Moura
df1a847255 feat(bin/leanutil): start "compilation server" 2015-08-16 12:20:48 -07:00
Soonho Kong
8c1cd92add fix(bin/linja.in): recursively find all files in a pattern endswith /
Example: If you have an entry in .project file such as

    - theories/

It will remove all files under 'theories' directory from the project

related issue: leanprover/lean.js#3
2015-07-29 16:44:56 -07:00
Leonardo de Moura
a8f8e7116b feat(bin): add auxiliary scripts that allow us to test lean-emacs mode in the build directory (i.e., without installing Lean) 2015-07-20 16:10:30 -07:00
Soonho Kong
4a03570bf5 fix(bin/linja): reset the output encoding to utf-8 globally
fix #598
2015-05-14 00:44:07 -04:00
Soonho Kong
e6db3ce584 fix(bin/leantags): remove '\r' in ilean input
fix #591
2015-05-10 06:53:26 -04:00
Soonho Kong
5e05a25a5d fix(bin/linja): replace windows newline '\r\n' to unix newline '\n'
This should be handled by Python. However, when we use mingw-python
which acts like Unix Python with Native Windows Emacs, we have a problem
because mingw-python do not handle '\r'. This patch manually replace
'\r\n' with '\n' to solve the problem.

close #573
2015-05-04 05:39:54 -04:00
Soonho Kong
69f3f65ec9 fix(bin/linja): decode communicated result if not None 2015-05-04 04:35:42 -04:00
Sebastian Ullrich
24b00c3a73 fix(bin/linja): don't double-decode Popen output
After 8ca3ee48, `text` is always a `str` instance, which provokes an `AttributeError` in Python 3.
2015-05-03 06:13:38 -04:00
Soonho Kong
fa33f706f8 fix(bin/linja): indentation
close #515
2015-04-04 13:31:35 -04:00
Soonho Kong
8ca3ee4851 fix(bin/linja): decode the results from subprocess.Popen
http://stackoverflow.com/questions/606191/convert-bytes-to-a-python-string

fix #515
2015-04-04 13:30:10 -04:00
Soonho Kong
47c0ae5914 fix(bin/linja): download ninja to a temporary directory
Assume that we have two linja processes running on a system where there
is no ninja installed. Then, the first linja process downloads ninja
from github. If the internet is slow, the second linja process can pick
up the incomplete ninja binary and execute it, which causes an
exception (i.e. "Malformed Mach-o file" error on OSX). An example build
trace is at

    https://s3.amazonaws.com/archive.travis-ci.org/jobs/56366771/log.txt

This commit fixes the problem by downloading ninja to a temporary
directory and copy it to "lean/bin/ninja" when it's completed.
2015-03-30 01:20:24 -04:00
Soonho Kong
93a3ef1447 fix(bin/linja): escape ' ' in depfiles differently
' ' ==> '\\ ' in .d files

fix #515
2015-03-28 22:38:13 -04:00
Soonho Kong
f72f4cf441 fix(bin/linja): add '$' and ' ' cases to escape_ninja_char
This is related to #513
2015-03-28 22:38:13 -04:00
Soonho Kong
0cda3f7cbf fix(bin/linja): only strip flycheck message in linja
Removing empty lines for FlyCheck messages was added by
4266b8c7a3. We had somecases where
Flycheck messages start with an empty line instead of `FLYCHECK_BEGIN
ERROR` in Windows7 + Python2 env. I think it's because of the different
newline character problem (LF, LFCR). My solution was to remove all
empty lines, which was too much. Now, I think striping should be enoguh.

fix #512
2015-03-28 07:56:32 -04:00
Soonho Kong
d39478a028 fix(bin/linja): catch exception when parsing FlycheckItem
fix #452
2015-03-25 13:53:53 -04:00
Soonho Kong
d950338980 fix(bin/linja): which does not look for 'sbin'
Ubuntu-12/14 has two packages which provide a binary file `ninja`:

 1. ninja : http://forkbomb.org/ninja/
 2. ninja-build : http://martine.github.io/ninja/

We had a case where a user has ninja installed instead of ninja-build,
then linja confuses that it has ninja-build and tries to use it.

This commit excludes a directory whose name includes "sbin" in finding a
system program. As a result, `which` will not find ninja[1] which
resides at /usr/sbin.
2015-03-24 11:13:14 -04:00
Soonho Kong
4266b8c7a3 fix(bin/linja.in): filter empty lines at FlycheckItem.fromString
Found this bug while helping Andrew Zipperer. It happened in Windows7/8 + Python 2.7
2015-03-04 16:41:42 -05:00
Leonardo de Moura
c3e7b1f817 fix(bin/linja.in): problems on Python 3.4 for Windows 2015-02-09 18:25:31 -08:00
Leonardo de Moura
daa9bb70b7 fix(bin/linja): bug that only happens when uisng linja on Windows 2015-02-09 16:42:34 -08:00
Soonho Kong
ca16381892 feat(bin): add linja.in and LEAN_BIN_DEP cmake option
see the discussion in issue #422
2015-02-04 15:46:08 -08:00
Leonardo de Moura
87570740e2 feat(bin/leanemacs): allow user to provide arguments (e.g., .lean files) to leanemacs script 2015-01-31 17:41:50 -08:00
Leonardo de Moura
70d62245a6 feat(bin): add script for testing leanemacs without installing Lean 2015-01-31 17:35:20 -08:00
Leonardo de Moura
6456c2b89a feat(CMakeLists.txt): add leanemacs.bat for Windows
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2015-01-30 14:16:57 -08:00
Leonardo de Moura
2c926478dd feat(bin): add leanemacs startup script 2015-01-30 13:05:30 -08:00
Favonia
b643063955 fix(bin/linja): upstream script updated 2015-01-23 17:04:53 -08:00
Favonia
124ebda58c fix(bin/linja): return the new klass
Closes #406.
2015-01-23 13:17:45 -05:00
Soonho Kong
971b602773 fix(bin/linja): prefer local tools over system-wide ones
Close #396

Related issue: #394
2015-01-23 07:16:44 -05:00
Favonia
b66b3a6c58 refactor(six.py): remove six.py 2015-01-22 13:05:56 -08:00
Favonia
20c8bcd3fc fix(bin/linja): python3 compatible without six.py 2015-01-22 13:05:56 -08:00
Leonardo de Moura
12674114a4 feat(shell): set default behavior to "trusted"
closes #402
2015-01-21 16:25:09 -08:00
Soonho Kong
69af6df69d refactor(bin/python_lib): move six.py under bin/python_lib
Following @favonia's suggestion in #393
2015-01-21 17:31:26 -05:00
Soonho Kong
a8f3dcb395 feat(bin/six.py): add six 1.9.0 (Python 2 and 3 compatibility utilities) 2015-01-21 17:13:56 -05:00