This document describes the changes made to the Tools application.
Removed the support for the query keyword from emacs mode (Thanks to Paul Oliver)
Own Id: OTP-11568
Emacs mode improvements (Thanks to Steve Vinoski)
Own Id: OTP-11601
Application upgrade (appup) files are corrected for the following applications:
A new test utility for testing appup files is added to test_server. This is now used by most applications in OTP.
(Thanks to Tobias Schlager)
Own Id: OTP-11744
The emacs erlang mode now match erlang keywords more carefully (Thanks to Steve Vinoski)
Own Id: OTP-11786
The emacs erlang-mode now auto loads for more file types (Thanks to Phil Hagelberg)
Own Id: OTP-11788
Own Id: OTP-11692
Support maps in cover
Own Id: OTP-11764
Erlang-specific compilation error regexp is added in erlang-eunit.el. This defvar was earlier in erlang.el, but was erroneously removed in R15B02, while still used by erlang-eunit.el.
Own Id: OTP-11417 Aux Id: seq12447
Take compiler options from beam in cover:compile_beam. Thanks to Péter Gömöri.
Own Id: OTP-11439
Silence warnings (Thanks to Anthony Ramine)
Own Id: OTP-11517
Add iodata, nonempty_string to built-in type highlighting for emacs. Thanks to Paul Oliver.
Own Id: OTP-11394
Remove trailing spaces in Emacs templates. Thanks to Roberto Aloi.
Own Id: OTP-11198
Fixed the Emacs erlang-mode to accommodate the coding style where lists written across several lines have each line starting with a comma. Thanks to Magnus Henoch.
Own Id: OTP-11242
Make the Emacs Erlang mode TRAMP-aware when compiling. Thanks to Tomas Abrahamsson.
Own Id: OTP-11270
When cover:stop(Node) was called on a non-existing node, a process waiting for cover data from the node would hang forever. This has been corrected.
Own Id: OTP-10979
Make cover smarter about finding source from beam.
In particular, search using the source path in module_info if the current heuristic fails.
Own Id: OTP-10902
Remove Flymake dependency in erlang-pkg.el. Thanks to Magnus Henoch.
Own Id: OTP-10930
Erlang-mode: Add autoload cookies for file extension associations. Thanks to Magnus Henoch.
Own Id: OTP-10999
Postscript files no longer needed for the generation of PDF files have been removed.
Own Id: OTP-11016
Fix a race condition when there're several applications in apps directory. Thanks to Manuel Rubio.
Own Id: OTP-11028
New option for eprof, 'set_on_spawn'. This option was previously always on and is also the default.
Own Id: OTP-11144
Fix a bug in cover when used with no_auto_import. Thanks to José Valim.
Own Id: OTP-10778
Add missing modules in app-file
Own Id: OTP-10439
Make erlang-mode more compatible with package.el (Thanks to Gleb Peregud)
Own Id: OTP-10465
Fix various typos (thanks to Tuncer Ayaz)
Own Id: OTP-10611
Add separate face for exported functions (Thanks to Thomas Järvstrand)
Own Id: OTP-10637
The BIF highlighting in the emacs mode has been updated to correspond with the correct BIFs.
Own Id: OTP-10774
Support for Unicode has been implemented.
Own Id: OTP-10302
A new function, cover:flush(Nodes), is added which will fetch data from remote nodes without stopping cover on those nodes. This is used by test_server and common_test when it is safe to assume that the node will be terminated after the test anyway. The purpose is to avoid processes crashing when re-loading the original beam if the processes is still running old code.
Remote nodes will now continue to count code coverage if the connection to the main node is broken. Earlier, a broken connection would cause the cover_server on the remote node to die and thus any still cover compiled modules would cause process crash when trying to insert cover data in ets tables that used to exist on the cover_server. The new functionality also involves synchronization with the main node if the nodes are reconnected.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-10523 Aux Id: OTP-10427
Where necessary a comment stating encoding has been added to Erlang files. The comment is meant to be removed in Erlang/OTP R17B when UTF-8 becomes the default encoding.
Own Id: OTP-10630
Fix syntax highlighting of $\' in Emacs mode. Thanks to Magnus Henoch.
Own Id: OTP-10766
The last tuple fun call has been removed from fprof.
Own Id: OTP-10091 Aux Id: seq12067
Fix indentation of record fields in Emacs (Thanks to Tomas Abrahamsson)
Own Id: OTP-10120
Documentation fixes (Thanks to Ricardo Catalinas Jiménez )
Own Id: OTP-10121
Remove Erlang-specific compilation error regexp in erlang.el
Own Id: OTP-10168
Fix highlighting of atoms ending with a dollar sign
Like this: 'atom$'. In that example, the last single quote should be recognised as ending the atom. This needs a font-lock workaround similar to the one for strings. Thanks to Magnus Henoch
Own Id: OTP-10178
Xref now accepts filenames with character codes greater than 126. (Thanks to Emile Joubert for reporting the issue.)
Own Id: OTP-10192
Add test_indentation target to lib/tools/emacs/Makefile
Automatically indent test.erl.orig, save to test.erl, and compare to test.erl.intended. Thanks to Magnus Henoch.
Own Id: OTP-10226
Makefiles in erts, hipe and tools have been corrected to enable parallel make, i.e MAKEFLAGS=-jX where X is the parallelity number. As a result of this dependencies were corrected since that is what is needed for parallel make to work.
Own Id: OTP-9857 Aux Id: OTP-9451
Minor suppressions and fixes of compilation warnings
Own Id: OTP-10016
Update system profiling principles to reflect eprof performance improvements.
Own Id: OTP-9656
[cover] fix leftover {'DOWN', ..} msg in callers queue
After stopping cover with cover:stop() there could still be a {'DOWN',...} leftover message in the calling process's message queue. This unexpected leftover could be eliminated if erlang:demonitor/2 with option flush would be used in certain points
Own Id: OTP-9694
Add deps as erlang-flymake include directory.
Update erlang-flymake to recognize the "deps" folder as an include directory. This makes erlang-flymake compatible with the rebar dependency management tool's default folder structure, which puts included dependencies in "deps".(Thanks to Kevin Albrecht)
Own Id: OTP-9791
Variables are now now allowed in '
The representation of '
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-9643
Tuple funs (a two-element tuple with a module name and a
function) are now officially deprecated and will be
removed in R16. Use '
Own Id: OTP-9649
Eliminate use of deprecated regexp module
Own Id: OTP-9810
Teach the emacs mode to compile yecc and leex files
If visiting a .yrl or .xrl file in emacs with erlang-mode, then the `erlang-compile' function (normally bound to C-c C-k), now knows how to compile yecc and leex files, and then, if that compilation succeeds, also compiles the resulting .erl files.
Also introduce a `erlang-compile-command-function-alist' to make it possible to hook in other functions for computing compilation commands/expressions, depending on file name. (Thanks to Tomas Abrahamsson )
Own Id: OTP-9503
Bugs in xref(3) have been fixed. (Thanks to Matthias Lang.)
Own Id: OTP-9416
Change make:files to behave more like erlc
This change removes the unnecessary checks on the files when make:files is called and allows the error checking to be done in compile:file, where the error messages are produced. It does not affect the return value.
(Thanks to Sam bobroff)
Own Id: OTP-9179
add user specified compiler options on form reloading
In order to be able to test non-exported functions from another (test) module it is necessary to compile the specific module (at least during the test phase) with the export_all compiler option. This allows complete separation of testing and productive code. At the moment it is not possible to combine this with a test code coverage using the cover module. The problem is that when cover compiling a module using cover:compile_* the code is reloaded into the emulator omitting/filtering the passed user options. In my example above the export_all option would be removed and the non-exported functions cannot be called any more. (Thanks to Tobias Schlager)
Own Id: OTP-9204
Inhibit electric newline after "->" when inside a type spec
The Erlang mode for Emacs inserts a newline after every "->", which saves you one keystroke when writing a function, but that is inappropriate when writing a type spec, as you'd normally keep the spec on one line. This change inhibits the automatic insertion when the current line starts with "-spec" or "-type".(Thanks to Magnus Henoch)
Own Id: OTP-9255
Add a check logic to prevent file descriptor leak
cover module handle files as raw in export and import. Assert counts of ports are the same at the beginning and at the end of the test case.(Thanks to Shunichi Shinohara)
Own Id: OTP-9300
Declare indentation options as "safe" in erlang-mode for Emacs
Emacs has a facility for setting options on a per-file basis based on comments in the source file. By default, all options are considered "unsafe", and the user is queried before the variable is set. This patch declares the variables erlang-indent-level, erlang-indent-guard and erlang-argument-indent to be safe, if the value specified in the source file is valid.
Such declarations usually look like this:
%% -*- erlang-indent-level: 2 -*-
and appear on the first line of the file. (thanks to Magnus Henoch)
Own Id: OTP-9122
Cover has been improved to take less memory and allow parallel analysis of cover data. Data collection from nodes is now done in parallel and it is now possible to issue multiple analyse and analyse_to_file requests at the same time. A new function call async_analyse_to_file has also been introduced, see the documentation for more details.
Own Id: OTP-9043 Aux Id: seq11771
eprof: API sort mismatch has now been fixed.
Own Id: OTP-8853
eprof: fix division by zero in statistics
Own Id: OTP-8963
Own Id: OTP-8776
A race condition affecting Cover has been removed.
Own Id: OTP-8469
Emacs improvements:
Fixed emacs-mode installation problems.
Fixed a couple of -spec and -type indentation and font-lock problems.
Fixed error messages on emacs-21.
Magnus Henoch fixed several issues.
Ralf Doering, Klas Johansson and Chris Bernard contributed various emacs-eunit improvements.
Klas Johansson and Dave Peticolas added emacs-flymake support.
Own Id: OTP-8530
Xref has been updated to use the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8472
When given the option
Own Id: OTP-8647
Note: The API for the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8706
A bug concerning bit comprehensions has been fixed in Cover. The bug was introduced in R13B03. (Thanks to Matthew Sackman.)
Own Id: OTP-8340
Add lock profiling tool.
The Lock profiling tool, lcnt, can make use of the internal lock statistics when the runtime system is built with this feature enabled.
This provides a mechanism to examine potential lock bottlenecks within the runtime itself.
- Add erts_debug:lock_counters({copy_save, bool()}). This option enables or disables statistics saving for destroyed processes and ets-tables. Enabling this might consume a lot of memory.
- Add id-numbering for lock classes which is otherwise undefined.
Own Id: OTP-8424
emacs: Moved code skeletons to a separate file and and added a configurable variable to choose skeleton. Thanks Dave Peticolas.
Own Id: OTP-8446
The coverage analysis tool
Own Id: OTP-8188 Aux Id: seq11397
When loading Cover compiled code on remote nodes
running code in the loaded module, a
Own Id: OTP-8270 Aux Id: seq11423
The short-circuit operators
Own Id: OTP-8273
Own Id: OTP-7939
xref:start/1 does now allow anonymous XREF processes to be started
Own Id: OTP-7831
A bug in the Xref scanner has been fixed.
Own Id: OTP-7423
A bug in Fprof where the function 'undefined' appeared to call 'undefined' has been corrected.
Own Id: OTP-7509
The documentation has been updated so as to reflect
the last updates of the Erlang shell as well as the minor
modifications of the control sequence
Superfluous empty lines have been removed from code examples and from Erlang shell examples.
Own Id: OTP-6944 Aux Id: OTP-6554, OTP-6911
Own Id: OTP-7009
The coverage analysis tool
Own Id: OTP-7095
The
Own Id: OTP-6758
Missing buffer-local declaration in erlang.el has been added. Before this fix there could arise problems in other emacs modes after visiting a buffer using the erlang mode.
Own Id: OTP-6721
Key-map for 'backward-delete-char-untabif updated to work properly with Xemacs.
Own Id: OTP-6723
Minor updates of Xref.
Own Id: OTP-6586
Minor Makefile changes.
Own Id: OTP-6689 Aux Id: OTP-6742
"C-u C-c C-k" now does a compile with both "debug_info" and "export_all".
Own Id: OTP-6741
Changes due to internal interface changes in the erts application which are needed at compile-time. No functionality has been changed.
Own Id: OTP-6611 Aux Id: OTP-6580
Made change to support the function erlang-find-tag for xemacs and emacs-21.
Own Id: OTP-6512
Minor updates of xref for future compatibility.
Own Id: OTP-6513
Own Id: OTP-6373
Fprof traces could become truncated for the SMP emulator. This bug has now been corrected.
Own Id: OTP-6246
eprof now works somewhat better in the SMP emulator.
Own Id: OTP-6152
Fixed some bugs in
When specifying a file name including the
When specifying a file name including the
Own Id: OTP-6057 Aux Id: seq10299
Now the cover compiled code is unloaded, meaning that
processes lingering in/with references to it will be
killed when
Replaced call to deprecated function
Own Id: OTP-6079
A bug in
Own Id: OTP-5922 Aux Id: seq10203
Emacs:
Own Id: OTP-5746 Aux Id: seq10096
Some compiler warnings and Dialyzer warnings were eliminated in the Tools application.
When tracing to a port (which
Own Id: OTP-5757
The cross reference tool
Own Id: OTP-5653
The
Own Id: OTP-5588
It is now possible to encrypt the debug information in
beam files, to help keep the source code secret. See
The
Own Id: OTP-5460 Aux Id: seq9787
The
Own Id: OTP-5418
The
Own Id: OTP-5071
The
Own Id: OTP-5305