Menu

#16 Error when running via cli in same directory as whc file

v1.0 (example)
closed
nobody
None
5
2014-03-16
2013-06-15
stinos
No

I have a whc files with relative output paths set to the same directory as where the whc file is, for example

<SourceFiles>
<string>.\MagScope_UserManual.docx</string>
</SourceFiles>

There seems to be a small bug in how the absolute paths are calculated since running this from the commandline with "ChmProcessor.exe" my.whc /g /y" results in an error, see below. Workaround is to invoke it from another directory, so ""ChmProcessor.exe" path/to/my.whc /g /y" works just fine.

"Path cannot be the empty string or all whitespace."

Stack trace:
at System.IO.Directory.SetCurrentDirectory(String path)
at ChmProcessorLib.ChmProject.MakePathsAbsolute(String filePath)
at ChmProcessorLib.ChmProject.Open(String filePath)
at ChmProcessor.ChmProcessorForm.AbrirArchivo(String archivo)
at ChmProcessor.ChmProcessorForm..ctor(String filePath)

Class:
System.ArgumentException

Data:
System.Collections.ListDictionaryInternal

Source:
mscorlib

Target site:
Void SetCurrentDirectory(System.String)

Discussion

  • Antonio Fco. Bennasar Obrador

    Right. Will be fixed on 1.7 version. Thank you

     
  • Antonio Fco. Bennasar Obrador

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
    
     I have a whc files with relative output paths set to the same directory as where the whc file is, for example
    
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.