You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "michael-hoke (via GitHub)" <gi...@apache.org> on 2023/04/04 16:45:15 UTC

[GitHub] [daffodil-vscode] michael-hoke opened a new issue, #565: TDML Generation on Windows creates bad paths

michael-hoke opened a new issue, #565:
URL: https://github.com/apache/daffodil-vscode/issues/565

   When using the `TDML Generate` command on Windows, paths are sent to the server with different cases on the drive names in the path. This is causing the absolute to relative path conversion to fail because it is case sensitive.
   
   The data and program paths have lowercase drive names. The data file is populated via an open file dialog, and the program file is populated automatically based on which dfdl schema is opened when the `TDML Generate` command is run.
   
   The TDML path and Infoset path use the default values, which include ${workspaceFolder}. This path is being replaced by the actual workspace path somewhere, and it has an uppercase drive name.
   
   The easiest solution for the TDML feature would probably be to make the drive name lowercase from the ${workspaceFolder}, but we would need to make sure that doesn't adversely affect something else.
   
   Example TDML File - note the model and document paths:
   
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <ns1:testSuite xmlns:ns1="http://www.ibm.com/xmlns/dfdl/testData" xmlns:ns2="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext" xmlns:ns3="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ns4="http://www.ogf.org/dfdl/dfdl-1.0/extensions" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns6="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:int" suiteName="Default Test Case" defaultRoundTrip="onePass">
       <ns1:parserTestCase name="Default Test Case" root="file" model="..\/c:/Users/nolanm/Documents/GitHub/daffodil-vscode/src/tests/data/txttest.dfdl.xsd" roundTrip="onePass" description="Generated by DFDL VSCode Extension">
           <ns1:document>
               <ns1:documentPart type="file">..\/c:/Users/nolanm/Documents/GitHub/daffodil-vscode/src/tests/data/test.txt</ns1:documentPart>
           </ns1:document>
           <ns1:infoset>
               <ns1:dfdlInfoset type="file">txttest-infoset.xml</ns1:dfdlInfoset>
           </ns1:infoset>
       </ns1:parserTestCase>
   </ns1:testSuite>
   
   As a workaround, you can use a launch config with ${workspaceFolder} in all 4 paths.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [daffodil-vscode] shanedell closed issue #565: TDML Generation on Windows creates bad paths

Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell closed issue #565: TDML Generation on Windows creates bad paths
URL: https://github.com/apache/daffodil-vscode/issues/565


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org