-
Notifications
You must be signed in to change notification settings - Fork 3
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
Regex exception and other problems on Windows but not on Linux #8
Comments
Illegal/unsupported escape sequence is something to do with slashes and regexes on Windows - no idea where this is failing for you. Can you run a sample in debug mode (e.g.
This shows that the Extend CSS Plugin works
So the |
Hi, thanks for the quick reply. I looked into the code an the only RegEx I could find looked good to me: I attached both debug logs: |
Looks like this is to do with the |
Actually I can add amend the regex to just use the dita uninstall fox.jason.prismjs
dita install https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip |
Hi Jason, I reinstalled the plugin and put the sample files to a less error prone location without any uc letters in the path. After reinstalling, the regex exception is gone but the content is gone too :) for the pdf production. The html5 production work now as it should for the topics but doesn't link the topics in the index file correctly. All the links there just go to "document.html" now. I put a complete debug log and the output for html5 and pdf in the attached zip. Thanks again Christian |
I'm not sure this is the plugin's fault - it could be that the HTML run (yours)
PDF run (yours)
PDF run (mine)
|
Probably just because the sample The assumption is that if you have valid |
I have amended the |
HTML (Warnings, Exception, no output at all)
When I try to build any html output on a Windows machine I get some warnings and an exception that ends the process. The only file that is written to the output is the css file.
Exception: Error: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
Warnings: Mostly Warning about missing files or misspelled file names
PDF (Warnings, missing styles in output)
When I try a pdf production, it will run through with basically the same Warnings (files) but without the Regex exception. But in the pdf output, the styled codes are black-and-white only. But there is a difference between codeblock with and without the output-class attribute
This is the output on Windows
c:\projects\apps\DITA_OT_Prism_POC\dita-ot-3.6.1\plugins\fox.jason.prismjs\sample>dita -i document.ditamap -o out -f html5 [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:4:80: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/prism.dita is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/prism.dita. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:5:89: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:6:94: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/features-full.dita is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/features-full.dita. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:7:95: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/basic-usage.dita is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/basic-usage.dita. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita:9:38: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/prism.js is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/prism.js. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita:14:39: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/style.css is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/style.css. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita:19:40: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/index.html is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/index.html. [filter] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/topics/examples.dita:24:38: [DOTJ083E][ERROR] The resource referenced as file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/logo.svg is capitalized differently on disk, using file:/C:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/src/logo.svg. [move-meta] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:4:80: [DOTX026W][WARN]: Unable to retrieve linktext from target: 'document.ditamap'. Using navigation title as fallback. [move-meta] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:5:89: [DOTX026W][WARN]: Unable to retrieve linktext from target: 'document.ditamap'. Using navigation title as fallback. [move-meta] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:6:94: [DOTX026W][WARN]: Unable to retrieve linktext from target: 'document.ditamap'. Using navigation title as fallback. [move-meta] file:/c:/projects/apps/DITA_OT_Prism_POC/dita-ot-3.6.1/plugins/fox.jason.prismjs/sample/document.ditamap:7:95: [DOTX026W][WARN]: Unable to retrieve linktext from target: 'document.ditamap'. Using navigation title as fallback. Error: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
For testing purposes I used the demo content from dita-ot-3.6.1\plugins\fox.jason.prismjs\sample
I used the following components
On Windows (10pro)
Java:
DITA-OT:
Node:
PlugIn
Master version on 10.06.2021
On Linux (Ubuntu 20.04LTS)
Java:
DITA-OT:
Node:
PlugIn
Master version on 10.06.2021
The text was updated successfully, but these errors were encountered: