Transcrypt
Transcrypt copied to clipboard
Test of standard Transcrypt install fails
After installing transcrypt 3.7.16. I try to test the installation (as described in the doco):
In the directory ../transcrypt/development/automated_tests/transcrypt/
I run transcrypt -b -c -da autotest
. This succeeds.
Then I run transcrypt -r -c autotest
. This succeeds as well (but strangely I have afterwards two autotest
html files: An old autoTest.html
from install time, and a new autotest.html
from the transcrypt run. (Note teh different capitalisation.)
Finally I start the webserver and go to http://localhost:8000/autotest.html
. but I get an empty table and the browser console shows the following error log:
div_issues.issue559.mylib.mylib.js:4 Uncaught ReferenceError: __all__ is not defined
at div_issues.issue559.mylib.mylib.js:4
at div_issues.issue559.mylib.mylib.js:4
at Function.<anonymous> (org.transcrypt.__runtime__.js:3)
at run559 (div_issues.issue559.js:3)
at Object.run (div_issues.js:35)
at org.transcrypt.autotester.js:15
at Function.<anonymous> (org.transcrypt.__runtime__.js:3)
at autotest.js:18
My environment:
Tool | Version |
---|---|
OS | Linux RHEL 7 |
Python | Version 3.7.4 |
Browser | Google Chrome 75.0.3770.142 |
I see this too, its coming from the use of globals() in /transcrypt/development/automated_tests/transcrypt/div_issues/issue559/mylib/mylib.py:
class mylibClass: def init (self, autoTester): self.autoTester = autoTester self.autoTester.check ('Hello World Class')
def checkSymbols (self):
self.autoTester.check (sorted ([x for x in globals () if x.startswith ("my")])) # __: iconv
If I comment that line out all is well (in that all the other tests pass)