You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "JeremyYao (via GitHub)" <gi...@apache.org> on 2025/04/09 17:17:41 UTC

Re: [I] TDML Copy function creates the wrong path in some Windows 10 environments [daffodil-vscode]

JeremyYao commented on issue #1034:
URL: https://github.com/apache/daffodil-vscode/issues/1034#issuecomment-2790435595

   I'm seeing this as well. My auto-generated TDML located at `C:\Users\jeremy.yao\AppData\Local\Temp\generatedTDML.tdml` and contains 
   ```XML
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <ns1:testSuite xmlns:ns1="http://www.ibm.com/xmlns/dfdl/testData" suiteName="Default Test Case" defaultRoundTrip="onePass">
       <ns1:parserTestCase name="Default Test Case" root="file" model="..\..\..\repos/sampleWorkspace/2_pass/read_number.dfdl.xsd" roundTrip="onePass" description="Generated by DFDL VSCode Extension">
           <ns1:document>
               <ns1:documentPart type="file">..\..\..\repos/sampleWorkspace/2_pass/6ints.txt</ns1:documentPart>
           </ns1:document>
           <ns1:infoset>
               <ns1:dfdlInfoset type="file">..\..\..\repos/sampleWorkspace/target/infoset.xml</ns1:dfdlInfoset>
           </ns1:infoset>
       </ns1:parserTestCase>
   </ns1:testSuite>
   
   ```
   
   The relative paths are valid per PowerShell 
   ```PowerShell
   PS C:\Users\jeremy.yao\AppData\Local\Temp> Test-Path ..\..\..\repos/sampleWorkspace/2_pass/6ints.txt
   True
   PS C:\Users\jeremy.yao\AppData\Local\Temp> Test-Path ..\..\..\repos/sampleWorkspace/target/infoset.xml
   True
   ```
   
   When copying the TDML to `C:\Users\jeremy.yao\repos\sampleWorkspace\short_tdml.tdml` and test the paths, they are incorrect
   
   ```
   PS C:\Users\jeremy.yao\repos\sampleWorkspace> Test-Path ..\..\..\AppData\repos\sampleWorkspace\2_pass\6ints.txt
   False
   PS C:\Users\jeremy.yao\repos\sampleWorkspace> Test-Path ..\..\..\AppData\repos\sampleWorkspace\target\infoset.xml                                                     
   False
   ```
   
   
   
   


-- 
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