JeremyYao commented on PR #1468:
URL: https://github.com/apache/daffodil-vscode/pull/1468#issuecomment-3433102865
Tested on W11 w/ the following tests:
Did a test with the following JSON
```JSON
{
"request": "launch",
"type": "dfdl",
"name": "Wizard Config",
"schema": {
"path": "",
"rootName": null,
"rootNamespace": null
},
"data": "",
"debugServer": 4711,
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
},
"tdmlConfig": {
"action": "none"
},
"trace": true,
"stopOnEntry": true,
"useExistingServer": false,
"openDataEditor": true,
"openInfosetView": false,
"openInfosetDiffView": false,
"daffodilDebugClasspath": [],
"dataEditor": {
"port": 9000,
"logging": {
"file":
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
},
"dfdlDebugger": {
"logging": {
"file": "${workspaceFolder}/daffodil-debugger.log",
"level": "INFO"
}
}
},
```
Two file dialog prompts show up
```JSON
{
"request": "launch",
"type": "dfdl",
"name": "Wizard Config",
"schema": {
"path": "",
"rootName": null,
"rootNamespace": null
},
"data": "${command:AskForDataName}",
"debugServer": 4711,
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
},
"tdmlConfig": {
"action": "none"
},
"trace": true,
"stopOnEntry": true,
"useExistingServer": false,
"openDataEditor": true,
"openInfosetView": false,
"openInfosetDiffView": false,
"daffodilDebugClasspath": [],
"dataEditor": {
"port": 9000,
"logging": {
"file":
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
},
"dfdlDebugger": {
"logging": {
"file": "${workspaceFolder}/daffodil-debugger.log",
"level": "INFO"
}
}
},
```
looks good
### Issues
I ran the following config
```JSON
{
"request": "launch",
"type": "dfdl",
"name": "Wizard Config",
"schema": {
"path": "${command:AskForSchemaName}",
"rootName": null,
"rootNamespace": null
},
"data": "",
"debugServer": 4711,
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
},
"tdmlConfig": {
"action": "none"
},
"trace": true,
"stopOnEntry": true,
"useExistingServer": false,
"openDataEditor": true,
"openInfosetView": false,
"openInfosetDiffView": false,
"daffodilDebugClasspath": [],
"dataEditor": {
"port": 9000,
"logging": {
"file":
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
"level": "info"
}
},
"dfdlDebugger": {
"logging": {
"file": "${workspaceFolder}/daffodil-debugger.log",
"level": "INFO"
}
}
}
```
and it seems to be having a bit odd. I'm getting the following errors in the
output tab:
``powershell
[DEBUG] Detected java homes: [{"path":"C:\\Program
Files\\Java\\jdk-17","version":"17.0.12","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\Program
Files\\Java\\jdk-17\\bin\\java.exe","javac":"C:\\Program
Files\\Java\\jdk-17\\bin\\javac.exe","javap":"C:\\Program
Files\\Java\\jdk-17\\bin\\javap.exe"}}]
[DEBUG] Choosing java home at C:\Program Files\Java\jdk-17, version 17.0.12,
is at least JDK 17: true
[INFO] Using Scala 2.13 + Daffodil 3.11.0 debugger
[INFO] Daffodil CLI JARs already exists. Skipping download.
[DEBUG] Detected java homes: [{"path":"C:\\Program
Files\\Java\\jdk-17","version":"17.0.12","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\Program
Files\\Java\\jdk-17\\bin\\java.exe","javac":"C:\\Program
Files\\Java\\jdk-17\\bin\\javac.exe","javap":"C:\\Program
Files\\Java\\jdk-17\\bin\\javap.exe"}}]
[DEBUG] Choosing java home at C:\Program Files\Java\jdk-17, version 17.0.12,
is at least JDK 17: true
[INFO] Using Scala 2.13 + Daffodil 3.11.0 debugger
[INFO] Daffodil CLI JARs already exists. Skipping download.
[DEBUG] Detected java homes: [{"path":"C:\\Program
Files\\Java\\jdk-17","version":"17.0.12","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\Program
Files\\Java\\jdk-17\\bin\\java.exe","javac":"C:\\Program
Files\\Java\\jdk-17\\bin\\javac.exe","javap":"C:\\Program
Files\\Java\\jdk-17\\bin\\javap.exe"}}]
[DEBUG] Choosing java home at C:\Program Files\Java\jdk-17, version 17.0.12,
is at least JDK 17: true
[INFO] Using Scala 2.13 + Daffodil 3.11.0 debugger
[INFO] Daffodil CLI JARs already exists. Skipping download.
[DEBUG] Detected java homes: [{"path":"C:\\Program
Files\\Java\\jdk-17","version":"17.0.12","security":0,"isJDK":true,"is64Bit":true,"executables":{"java":"C:\\Program
Files\\Java\\jdk-17\\bin\\java.exe","javac":"C:\\Program
Files\\Java\\jdk-17\\bin\\javac.exe","javap":"C:\\Program
Files\\Java\\jdk-17\\bin\\javap.exe"}}]
[DEBUG] Choosing java home at C:\Program Files\Java\jdk-17, version 17.0.12,
is at least JDK 17: true
[INFO] Using Scala 2.13 + Daffodil 3.11.0 debugger
[INFO] Daffodil CLI JARs already exists. Skipping download.
Schema Definition Error: Error loading schema due to
java.nio.charset.MalformedInputException: Input length = 1
Schema context: Location in <REDACTED>/toast.gif, Schema Definition Error:
Error loading schema due to java.nio.charset.MalformedInputException: Input
length = 1
Schema context: Location in <REDACTED>/toast.gif
```
--
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]