Skip to content
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

Horrible error message with missing plugin #2247

Closed
Risord opened this issue Mar 2, 2016 · 8 comments
Closed

Horrible error message with missing plugin #2247

Risord opened this issue Mar 2, 2016 · 8 comments
Labels
enhancement Changes to an existing feature preprocess priority/low Low priority issue stale No recent activity. May be closed soon.

Comments

@Risord
Copy link

Risord commented Mar 2, 2016

I tried to run sample file (test.dita) from lightweight project: https://tools.oasis-open.org/version-control/svn/dita/trunk/subcommittees/LightweightDITA/org.oasis.lwdita/samples/

I wasn't installed lightweight dita plugin correctly so it wasn't working but error message was very miss leading:

DOTA069F: Input file '[FILENAME]' cannot be located or read. Ensure that file was specified properly and that you have permission to access it.

And since problem from input file perspective is content related error message is clearly wrong (and caused me to debug filesystem / permissions instead of plugin).

@jelovirt
Copy link
Member

jelovirt commented Mar 2, 2016

Which DITA-OT version? How did you run DITA-OT?

@Risord
Copy link
Author

Risord commented Mar 2, 2016

Version 2.2.2 (most recent one from http://www.dita-ot.org/download). Run: "dita -i test.dita -f pdf" in sample folder. After installing plugin correctly it works fine.

@jelovirt
Copy link
Member

jelovirt commented Mar 2, 2016

So you mean in the error message [FILENAME] part is a placeholder for the path, not exactly that string?

@Risord
Copy link
Author

Risord commented Mar 2, 2016

Yes its place holder.

I just replicated this once more. There is direct copypaste from my console. Compilation works, unistall plugin, compilation give this not so good error.

C:\samples>dita -i test.dita -f pdf

C:\samples>dita -uninstall org.oasis.lwdita

C:\samples>dita -i test.dita -f pdf
Error: Failed to run pipeline: [DOTA069F][FATAL] Input file 'file:/C:/samples/test.dita' cannot be located or read. Ensure that file was specified properly and that you have permission to access it.

@jelovirt jelovirt added priority/low Low priority issue preprocess enhancement Changes to an existing feature labels Mar 2, 2016
@robander
Copy link
Member

robander commented May 4, 2016

I think it's more correct to say "cannot be located or parsed" - this message will show up when the file cannot be parsed because the DTD is not properly integrated. As I understand it, that was the case here. The problem is that I've run into a lot of people who still wouldn't understand what's wrong if we say "parsed" instead of "read". Maybe we should also change the second part of this to "Ensure that the file was specified properly, and that the document type is supported by the toolkit or a toolkit plugin." I have nothing to back this up, but I'd bet missing / invalid plugins result in this message more often than a lack of permission to read the file.

@stale
Copy link

stale bot commented Dec 12, 2018

This issue has been automatically marked as stale because it has not been updated recently. It will be closed soon if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. May be closed soon. label Dec 12, 2018
@raducoravu
Copy link
Member

At some point I think @robander changed the error message and added to it a "Ensure that grammar files for this document type are referenced and installed properly."

@robander
Copy link
Member

Indeed - fixed recently in 3.2 with #3124

I marked that one at the time as fixing another long-open defect - appears to be another case where we didn't realize we had a duplicate report of an issue deep in the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes to an existing feature preprocess priority/low Low priority issue stale No recent activity. May be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants