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

rpncomp fails on .import on Windows System #2

Open
mjakuipers opened this issue May 7, 2022 · 2 comments
Open

rpncomp fails on .import on Windows System #2

mjakuipers opened this issue May 7, 2022 · 2 comments

Comments

@mjakuipers
Copy link

A short RPN program will compile correctly. When adding a .import 41CX (actually all modexport files fail). Using a non-existing .modexport file gives another error. Issue seen under Windows 10, rpncomp is run is a CMD window.

RPN file: 
; test program for failing .import
.import 41CX
 01  LBL "TEST"
 02  END

Command line and error message:

C:\Users\mkuipers\Documents\Development\CalypsiNut\example\Mein>rpncomp -l test.rpn

fatal error: unsupported protocol in URI "C:\\Program Files (x86)\\Calypsi-nut\\module-export\\41CX.modexport"

fatal error: document unpickling failed
no more contents to be read
context:    element "/"
attributes:  status="3" module="getContentsFromDoc" transfer-URI="C:/Program%20Files%20(x86)...
cannot parse XROM export file "C:\Program Files (x86)\Calypsi-nut\module-export\41CX.modexport"
Terminating due to errors
@hth313
Copy link
Owner

hth313 commented May 8, 2022

This problem is caused by the XML parser confusing an absolute Windows path for a protocol. To work around it use the -I option and a path what does not contain a drive letter. If you are on the same drive you can use -I \Program Files (x86)\Calypsi-nut\module-export. If you are on another drive, copy the module-export directory to the same drive and use a suitable path to it without a drive letter.

To fix it for real I will need to fork and path the XML parser and patch it, but that is a bit of work so it may take some time.

References:
UweSchmidt/hxt#76
jgm/pandoc#4836

@mjakuipers
Copy link
Author

mjakuipers commented May 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants