You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "rthomas320 (via GitHub)" <gi...@apache.org> on 2024/05/22 13:36:26 UTC
[I] TDML Copy function creates the wrong path in some Windows 10 environments [daffodil-vscode]
rthomas320 opened a new issue, #1034:
URL: https://github.com/apache/daffodil-vscode/issues/1034
The generate TDML process creates a valid TDML file in my Windows 10 environment, in the users appdata/local/temp directory.

But the copy function adds additional back directory symbols (..\) to the location of the described files.

This causes the TDML execute function to fail to locate the described files.

One thing to note:
My user path is setup as C:\Users\rthomas\, but my user ID is regis.thomas.
The Windows 10 users that the TDML copy process works for have their user path setup like C:\Users\regis.thomas\, matching their user ID. This maybe the cause of the problem.
--
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
Re: [I] TDML Copy function creates the wrong path in some Windows 10 environments [daffodil-vscode]
Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell closed issue #1034: TDML Copy function creates the wrong path in some Windows 10 environments
URL: https://github.com/apache/daffodil-vscode/issues/1034
--
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
Re: [I] TDML Copy function creates the wrong path in some Windows 10 environments [daffodil-vscode]
Posted by "JeremyYao (via GitHub)" <gi...@apache.org>.
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
Re: [I] TDML Copy function creates the wrong path in some Windows 10 environments [daffodil-vscode]
Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell closed issue #1034: TDML Copy function creates the wrong path in some Windows 10 environments
URL: https://github.com/apache/daffodil-vscode/issues/1034
--
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