| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Need to track this stuff somewhere that’s not just the source files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Get cargo checker working with non-main source files by making
some assumptions about the crate path we’re given in cargo’s check
output.
* Attempt to fix TRAMP issues in Emacs 28.0.50. These may be due to
bugs in TRAMP, in nativecomp, or maybe I just wrote some broken code
that happens to work in 27.1.
- Simplify output buffer names so they don’t ever have TRAMP paths
* Use a generator for JSON parsing. This makes the code much easier
to read, IMHO.
* Skip past newlines when processing JSON. Now I no longer need to
catch errors from the parser, since end-of-file shouldn’t be
encountered anymore by the parser.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* mapc -> dolist
* cond -> pcase
I find pcase to be easier to read when it can be used, which, in
this case, is everywhere cond was being used.
* use some thread-last.
* Fix URL in comment header.
* Add package version to defcustom strings.
* Have rustc dump build results to /dev/null.
* Fix URL in header comments.
* Tell rustc to send output files to /dev/null
* Add ‘tools’ keyword to package.
* Add autoload for setup, use filename in comment header.
* Get rid of single use macro.
* Calculate flymake proc buffer names from source buffer name, not
file.
* Update comments.
|
|\
| |
| | |
Add support for checking with rustc.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using the rust compiler directly is, in general, weaker than using
cargo because it’s not workspace-aware, and thus can’t tell that the
missing ‘main’ function is actually in a different file somewhere
else.
However, rustc does allow me to pass rust code on standard input,
which means I can run checks between file saves, which is at least
somewhat useful.
Unfortunately, while both rustc and cargo can be told to use JSON, and
the objects roughly match, it has enough deviation to require slight
code rework all over the place, to the point that it honestly probably
would have been easier, and had less code duplication, to just use
regexp on the human readable stuff.
In addition to rustc, this patch also makes the following changes:
* Emacs 27 is required, because I’m using ‘executable-find’ with the
option second argument. This is needed so remote paths can be
found for the checkers if the file being checked is also remote.
* Removed the process filter. Now I’m only checking when everything
is done. This simplified the code quite a lot, and shouldn’t be
any slower.
* Checker output is now processed on the idle timer with a very
short delay. This retains something very close to previous speed
and should prevent issues where a bug in the processing causes
Emacs to appear to lock up.
|
| |
|
|
|