JeremyYao opened a new issue, #1246:
URL: https://github.com/apache/daffodil-vscode/issues/1246

   ### Description
   
   - Windows 10
   - 1.4.1 Snapshot
   
   Snippet of configuration JSON item
   ```JSON
           {
               "request": "launch",
               "type": "dfdl",
               "name": "Cat_DFDL",
               "schema": {
                   "path": 
"${workspaceFolder}/src/main/resources/com/mitre/jpeg/xsd/jpeg.dfdl.xsd",
                   "rootName": null,
                   "rootNamespace": null
               },
               "data": "${workspaceFolder}/test_images/curious-cat-thumb.jpg",
               "debugServer": 4712,
               "infosetFormat": "xml",
               "infosetOutput": {
                   "type": "file",
                   "path": "${workspaceFolder}/target/infoset.xml"
               },
               "tdmlConfig": {
                   "action": "generate",
                   "name": "a",
                   "description": "a",
                   "path": "C:/repos/test"
               },
               "trace": true,
               "stopOnEntry": true,
               "useExistingServer": false,
               "openDataEditor": true,
               "openInfosetView": true,
               "openInfosetDiffView": true,
               "daffodilDebugClasspath": [],
               "dataEditor": {
                   "port": 9000,
                   "logging": {
                       "file": 
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
                       "level": "info"
                   }
               },
               "dfdlDebugger": {
                   "logging": {
                       "file": "${workspaceFolder}/daffodil-debugger.log",
                       "level": "INFO"
                   }
               }
           }
   ```
   
   When launching a DFDL debugging session, if there's a path specified in the 
`tdmlConfig` portion of the configuration, it causes the debugging session to 
not run and the following error message to pop up: 
   
   
![Image](https://github.com/user-attachments/assets/904a9b2d-8beb-49b9-8596-7ae344e2c14c)
   
   What seems to be happening is that the `path` value under `tdmlConfig` is 
being substituted in for the infoset output path. 
   
   ### How to replicate 
   
   Some sample files one could use:
   
   - 
https://github.com/DFDLSchemas/GIF/blob/master/src/main/resources/com/mitre/gif/xsd/gif.dfdl.xsd
   - https://tenor.com/bw7gZ.gif
   
   Steps
   
   1. Open up the command pallete w/ `Ctrl` + `Shift` + `P` and start typing in 
Daffodil until you see the option to configure launch.json
   
   
![Image](https://github.com/user-attachments/assets/dc6affd7-5fc9-43be-9932-d27e35447a60)
   
   2. Configure the launch.json as needed. Be sure to specify a TDML file path 
   
   
![Image](https://github.com/user-attachments/assets/41e55790-bdf6-4b90-946e-554f8e61d8f6)
   
   3. Save the launch.json
   4. Start debugging
   
   
![Image](https://github.com/user-attachments/assets/450faec0-55d6-4ee6-8b07-412dcdb3b302)
   
   5. The error message pictured above should pop up


-- 
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-unsubscr...@daffodil.apache.org.apache.org

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

Reply via email to