You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "lrbarber (via GitHub)" <gi...@apache.org> on 2025/12/10 19:20:08 UTC

[I] Variable not found error (in launch.json) should not be catastrophic [daffodil-vscode]

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

   ## Description
   
   If a variable definition has been added to the launch.json file, but that variable does not exist in the schema the debugger will not start.
   
   ## Steps to Reproduce
   
   1. Add a viarable defintion to the launch.json file:
   
   <img width="258" height="373" alt="Image" src="https://github.com/user-attachments/assets/835ed41e-4860-46dd-b309-18070a349e4a" />
   
   2. Launch debugger with launch.json file
   3. See pop-up error   
   
   ## Expected Behavior
   
   This should probably just generate a warning. Definitely does not need to be an error that prevents debugger from running.
   
   ## Actual Behavior
   Catastrophic error that aborts debugger.
   <img width="362" height="140" alt="Image" src="https://github.com/user-attachments/assets/295d3761-1e6b-4603-aa96-4ca41cf4d042" />
   
   
   ## Environment
   - Found on Windows 11 (but probably NOT OS dependent)
   - Extension version 1.5.0 RC 1
   


-- 
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] Variable not found error (in launch.json) should not be catastrophic [daffodil-vscode]

Posted by "lrbarber (via GitHub)" <gi...@apache.org>.
lrbarber commented on issue #1555:
URL: https://github.com/apache/daffodil-vscode/issues/1555#issuecomment-3656120045

   It does seem that this error is coming from Daffodil itself...
   
   2025-12-10 14:12:07,472 [io-compute-4] ERROR o.a.d.d.d.DAPSession - couldn't launch, request #2 launch {"request":"launch","type":"dfdl","name":"Wizard Config","schema":{"path":"C:\\Users\\larry.barber\\OneDrive - Nteligen\\Documents\\PaxRiver\\rdds.dfdl.xsd","rootName":null,"rootNamespace":null},"data":"C:\\Users\\larry.barber\\OneDrive - Nteligen\\Documents\\PaxRiver\\rug.rdds","debugServer":4715,"infosetFormat":"xml","infosetOutput":{"type":"file","path":"C:\\Users\\larry.barber\\OneDrive - Nteligen\\Documents\\PaxRiver/target/infoset.xml"},"tdmlConfig":{"action":"generate","name":"undefined","path":"C:\\Users\\LARRY~1.BAR\\AppData\\Local\\Temp\\generatedTDML.tdml"},"trace":true,"stopOnEntry":true,"useExistingServer":false,"openDataEditor":true,"openInfosetView":true,"openInfosetDiffView":false,"variables":{"foo":"bar"},"tunables":{"maxOccursBounds":"256"},"daffodilDebugClasspath":[],"dataEditor":{"port":9000,"logging":{"file":"C:\\Users\\larry.barber\\OneDrive - Nteligen\\Docu
 ments\\PaxRiver/dataEditor-${omegaEditPort}.log","level":"info"}},"dfdlDebugger":{"daffodilVersion":"4.0.0","timeout":"10s","logging":{"level":"INFO","file":"C:\\Users\\larry.barber\\OneDrive - Nteligen\\Documents\\PaxRiver/daffodil-debugger.log"}},"__configurationTarget":6,"__sessionId":"f4911bfd-a149-4c62-9a0c-11e344dbef7f"}
   org.apache.daffodil.runtime1.processors.ExternalVariableException: Variable definition not found: foo
           at org.apache.daffodil.runtime1.processors.VariableMap.setExtVariable(VariableMap1.scala:553)
           at org.apache.daffodil.runtime1.processors.VariableUtils$.setExternalVariables$$anonfun$1(VariableMap1.scala:147)
           at println @ com.monovore.decline.effect.CommandIOApp$.addVersionFlag(CommandIOApp.scala:67)
           at ensureOr$extension @ org.apache.daffodil.debugger.dap.DAPCompiler$$anon$1.compile(Compiler.scala:44)
           at map @ org.apache.daffodil.debugger.dap.DAPCompiler$$anon$1.compile(Compiler.scala:45)
           at map @ org.apache.daffodil.debugger.dap.Parse$.apply(Parse.scala:85)
           at flatMap @ org.apache.daffodil.debugger.dap.Parse$.apply(Parse.scala:83)
           at println @ com.monovore.decline.effect.CommandIOApp$.addVersionFlag(CommandIOApp.scala:67)
           at map @ org.apache.daffodil.debugger.dap.Parse$Debugee$LaunchArgs$Manual.data(Parse.scala:259)
           at flatMap @ org.apache.daffodil.debugger.dap.Parse$.debugee$$anonfun$2$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(Parse.scala:700)


-- 
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] Variable not found error (in launch.json) should not be catastrophic [daffodil-vscode]

Posted by "CoverRyan (via GitHub)" <gi...@apache.org>.
CoverRyan closed issue #1555: Variable not found error (in launch.json) should not be catastrophic
URL: https://github.com/apache/daffodil-vscode/issues/1555


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