After a package update, transcrypt produces incomplete JS:
__target__/OOMAnalyser.js (147:15)
145: }
146: if (cols_to_strip) {
147: var line = ;
^
148: }
149: if (line.startswith ('kernel:')) {
instead of
146 if (cols_to_strip) {
147 var line = __getitem__ ((function () {
148 var __accu0__ = line;
149 return __call__ (__accu0__.py_split, __accu0__, ' ', cols_to_strip);
150 }) (), __neg__ (1));
151 }
152 if (line.startswith ('kernel:')) {
A temporary pinning of Transcrypt to Python 3.7 solves this issue.
Program names in Posix can contain all characters expect the null byte.
The code allows \S (all non-whitespaces) and spaces in program names.
This excluded some allowed characters like \n, \r and \t. No negative
effects should arise from this.
The Python string formatting mini language isn't enabled by default.
"{}".format(42) works fine but "{0:x}.format(42)" returns "{0:x}"
instead of "2a" if the mini language isn't enabled.
Newer Red Hat 7 releases changes the output of the OOM a little bit. The
last output line "Killed process" contains the process UID now.
Old:
Killed process 6576 (java) total-vm:33914892kB, \
anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB
New:
Killed process 6576 (java), UID 12345, total-vm:33914892kB, \
anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB
Transcrypt 3.7 generates multiple JS files in __target__ directory. All
output files will be bundled into one single file with the rollup
module bundler (rollup.js). Unfortunately the information of the
original sourcemap file will be lost.
Units have been placed with the ::after selector. Content showing with
this pseudo-element can't be selected and copied.
Now the units are automatically added when the value is set.
Prior this change items are set to html elements with id of the same
name. Now OOMDisplay._set_item() searches for elements with same-named
id or with item name listed in class attribute.
This allows to set one value to several places to once.
Additional suffixes for pages and kbytes are added in the singular or
plural automatically.