google / google/closure-compiler
ERROR - Cannot read: homepagetrans.js 1 error(s), 0 warning(s)
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
This is a very simple reproduction of the problem.
I have the latest version of the closure compiler,
This worked in an older version of the closure compiler.
If I shorten the string length of the first parameters to the function then I can run closure.
However, the closure compiler does not like these really long strings.
Resulting is a messages that does not make any sense "ERROR - Cannot read: "
Thanks,
Peter
These were my parameters
/java/jdk1.7.0_141/bin/java -Xms128m -Xmx512m -jar closure-compiler-v20170521.jar --js homepagetrans.js --js_output_file homepagetrans.js_out --warning_level=DEFAULT --language_in ECMASCRIPT5 --compilation_level WHITESPACE_ONLY
function homepagetransTable()
{
var homepagetrans = new ibihash(mapIbiUrl);
homepagetrans.put("To run utilities and see sample application, click below.","To run utilities and see sample application, click below.");
homepagetrans.put("New Century Corp is a consumer electronics manufacturer that provides quality products and services to their customers. Go to the self-service intranet site designed by their Web master to run Key Performance Indicator reports, sales trends reports, and detailed order analysis reports.","New Century Corp is a consumer electronics manufacturer that provides quality products and services to their customers. Go to the self-service intranet site designed by their Web master to run Key Performance Indicator reports, sales trends reports, and detailed order analysis reports.");
homepagetrans.put("New Century Corp. UAS Description","Run this alternate version of the New Century Corp application, which leverages Information Builders own user interface called User Administrative Services (UAS). UAS provides out-of-the-box file storage and security as well as a ready-to-go user interface.");
homepagetrans.put("Use this page to run a stored procedure. WebFOCUS stored procedures are FOCEXECs written using the FOCUS 4GL language. The procedure must be saved in a file on your reporting server. Enter the file name of the procedure in the text box below. In addition, you can pass parameters to the procedure. Parameters are passed using the syntax name=value, name=value. For the reporting server to locate your procedure, you must either check the Application path box and supply the name of the application below, or put its location in the servers cataloged path.","Use this page to run a stored procedure. WebFOCUS stored procedures are FOCEXECs written using the FOCUS 4GL language. The procedure must be saved in a file on your reporting server. Enter the file name of the procedure in the text box below. In addition, you can pass parameters to the procedure. Parameters are passed using the syntax name=value, name=value. For the reporting server to locate your procedure, you must either check the Application path box and supply the name of the application below, or put its location in the servers cataloged path.");
return homepagetrans;
}
Contributor guide
Assessment
This issue has not been assessed yet.