-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unparseable command line argument: 'to'. #105
Comments
Can you give your whole invocation line and also the full path of the directory from which you invoke it? In addition, the output of You can try to invoke it from a directory that has no space or special characters, and also avoid these characters in the file name. |
The docx2tex directory is located in C:/ and the file that I want to convert is in C:/docx2tex. I tried:
After that, the terminal showed the following messages:
The log says:
C:\docx2tex>java -version outputs:
|
Did you tried to replace the whitespace with an underscore in the filename? Does this work? |
Yes, I tried again with the file named "01.docx". However, the errors still occur. |
Can you send us the Word file? You can email it to [email protected] |
This is an error that is caused by Calabash 1.5.7. I addressed this error only in our mirror of the Calabash/Saxon10 repo, https://subversion.le-tex.de/common/github-mirror/calabash_saxon_10/, by reverting to Calabash 1.4.1. I fixed another bug only in the mirror: Saxon 10.8 that was bundled had another issue, therefore I reverted to Saxon 10.7 (disguised as Saxon-HE-10.8.jar because the Calabash distro apparently has the jar name baked into it). The relevant commits are r11405 for the Saxon jar and r10707 for the Calabash downgrade (plus today’s r11791 for calabash.bat because I forgot to refer to Calabash 1.4.1 instead of 1.5.7 in calabash.bat – we usually pay more attention to calabash.sh; calabash.bat often comes second wrt testing or bug fixing):
@mkraetke, you can either use the mirror or we can downgrade our calabash repos on Github to reflect the downgrades to Calabash and Saxon that I did in the mirror. Calabash 1.5.7 is the most recent version on https://github.com/ndw/xmlcalabash1/releases @XtrumE, may we forward the docx that you sent us to Norman Walsh so that he may look into the issue? I’d file a Calabash issue then. But a fix might take a long time. For the time being, I don’t see an alternative to the downgrades that I did in the mirror repo, either by using the mirror repo itself or by applying them to the Github repo, too. @XtrumE, if you need a quick fix and if you have an svn client, you can delete the calabash directory in docx2tex and instead
|
Hi @XtrumE, I've downgraded Calabash from 1.5.7 to 1.4.1. Please update to the latest version and confirm whether this resolves the issue. Best, Martin |
Thanks for your efforts. @gimsieke, please feel free to forward the file. I'd appreciate a solution in Calabash. I have now updated to the latest version with the downgraded Calabash using git (I don't use svn at the moment). The error now does not occur anymore. But, I am afraid that another Calabash error arose. The log says:
So, I need your help once more. Best wishes! |
... one additional remark: I have now tried it using an Ubuntu VM where it worked perfectly! |
Martin prepended the '1.5.' to the line by accident I guess. I removed it in the master branch. |
The line was reintroduced because of the downgrade mentioned above. Perhaps these mirrors should be also synced with our GitHub mirror to avoid these issues. |
Facing the same issues unfortunately, but then the other way around ;-). Cloned the full repo today, so everything should be up-to-date. OS: Windows 10
Resolved this by installing Java 17:
Now I'm faced with:
Log file:
When checking Calabash the version file says 1.3.2-100, which differs from the suggested 1.4.1 here. The docx file is just a few words scribbled down, nothing special. |
Reverted to the initial 1.9 release (https://github.com/transpect/docx2tex/releases/tag/v.1.9) and everything works fine. Tried this as the errors seemed to have to do with Saxon or Calabash versions being too old. Maybe trying to fix this issue made it worse? :P |
While cloning the repository, do you added $ git clone https://github.com/transpect/docx2tex --recursive |
Yes, I did exactly as the documentation stated on the initial installation. Did the same for reverting to the January release.
|
Thank you for the report. I've changed the entry for the reference to the resolver in the |
Used Master and that seems to work without errors now. |
Hello!
On Win11 running d2t.bat the error "Unparseable command line argument: 'to'." occurs.
The log says further:
What can I do to fix this?
The text was updated successfully, but these errors were encountered: