question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input line too long in a windows system

See original GitHub issue

Expected Behavior

DITA-OT outputs.

Actual Behavior

DITA-OT crashes right away with this error message:

C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI>bin\dita.bat --input=C:\workspace\RDDOC_technical_documentation\DITA\E1007_PI_publi.ditamap --format=pi
La ligne entrée est trop longue.
"C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI\bin\..\config\env.bat" était inattendu.

Which translates to

Input line is too long.
"C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI\bin\..\config\env.bat" was unexpected.

Possible Solution

Use the script closer to C: but it sounds like a regression. Remove the need for env.at by adding the file in the classpath using gradle.

Steps to Reproduce

Launch DITA-OT deep into the filesystem of a windows machine.

Copy of the error message, log file or stack trace

Environment

  • DITA-OT version: 3.0
  • Operating system and version: Windows
  • How did you run DITA-OT? dita command
  • Transformation type: PDF

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:18 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
raducoravucommented, Feb 27, 2018

Using our own class loader in the org.dita.dost.invoker.Main could also be useful if we want to isolate the JAR libraries contributed by a certain transtype. If a certain transtype is invoked, only its jar libraries and the common jar libraries could be loaded + the libraries from extra plugins this particular transtype depends on.

0reactions
thendarioncommented, Jan 21, 2021

or dita.bat could be replaced by dita.ps1 😄 PowerShell has better features than CMD

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Input line is too long" error in BAT File - Stack Overflow
In the updating data bat files there are lot of calls for a command(.cmd file) of my system that is responsible for updating...
Read more >
The input line is too long - cmd.exe - Super User
The problem is not about line too long, because your command has only 1673 characters, and the limit is 8191 characters for commands ......
Read more >
The input line is too long. The syntax of the command is incorrect
While starting Apache Kafka you may get an error like The input line is too long. The syntax of the command is incorrect...
Read more >
The input line is too long - Windows command line error - Digizol
I have set up a variable for classpath which makes my command too lengthy. This message pops up since the command is too...
Read more >
Input line too long error when running Windows batch file
I suspect that it is indeed the repeated call that causes this. Typically such batch files as ipsxe-comp-vars.bat prepend or append all ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found