From: Jeff Allen <report@bu...> - 2014-06-15 08:47:33
New submission from Jeff Allen:
Launching a sub-process is unreliable and fails during regression tests. A simple example is:
>>> import subprocess, sys, os
>>> subprocess.call([sys.executable, '-V'])
The input line is too long.
was unexpected at this time.
The message is from cmd.exe. The label is mostly a red herring, but it is a bit of the jython.bat script just after the java command. This command is very long, and it's mostly to do with JAR files:
This doesn't yet fail in my integration spot, which has a shorter path, but I don't accept that the path to my Eclipse workbench is abnormally long. Users will have the same problem I think.
We get the class path in this command by enumerating dist/javalib. The regrtest runs ok if I delete from there those JARs I suspect are superfluous (old ANTLR JARs, other platform JFFI JARs). However, I worry there may be some tool that needs them. But we could be smarter building the javalib directory.
Nowadays, Java accepts a wildcard in its class path: but we'd need Jython to catch up with that idea, wouldn't we?
keywords: test failure causes
title: Line too long in in jython.bat launcher
versions: Jython 2.7
Jython tracker <report@...>