hdalsania opened a new issue, #1035:
URL: https://github.com/apache/daffodil-vscode/issues/1035
TDML Copy, Execute and Append functionality is broken since inception of the
TDML GUI editor (PR# 936).
Fix the default settings for test case name, description and path as it is
showing as "Undefined" in Launch.json file.
The _Copy TDML File_ button exists but will not save the `.tdml` file
anywhere once the data debugger is finished and I attempt to save.
<h3>VSCode Debug Output</h3>
```
simulatorDirPath: undefined
deviceFilePath: undefined
simulatorDirPath: undefined
deviceFilePath: undefined
detected java homes:
[{"path":"/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home","version":"11.0.16","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home/bin/java","javac":"/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home/bin/javac","javap":"/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home/bin/javap"}},{"path":"/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home","version":"11.0.16","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/java","javac":"/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/javac","javap":"/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/javap"}},{"path":"/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home","version":"1.8.0","security":302,"isJDK":true,"is64Bit":true,"executables":{"java":"/
Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/bin/java","javac":"/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/bin/javac","javap":"/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/bin/javap"}}]
choosing java home at
/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home, version
11.0.16, is at least JDK 17: false
No test suite found in source XML buffer
```
The output line: `No test suite found in source XML buffer` gets outputted
every time I attempt to save the generate `.tdml` file via _Copy TDML File_.
_Originally posted by @stricklandrbls in
https://github.com/apache/daffodil-vscode/issues/1022#issuecomment-2135799767_
@stricklandrbls did a little digging and running the extension in debug mode
w/ breakpoints. It looks like this is coming from this scope of code:
https://github.com/apache/daffodil-vscode/blob/5bd426e1dbdf25b40193ba0a2eb17dbc9d861ba1/src/tdmlEditor/utilities/tdmlXmlUtils.ts#L277-L295
I think it has something to do with this function being `async` but not
returning a `Promise` because this block of code throws with _all_ of the
scoped variables being `undefined` or uninitialized.
_Originally posted by @stricklandrbls in
https://github.com/apache/daffodil-vscode/issues/1022#issuecomment-2136309539_
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]