You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "arosien (via GitHub)" <gi...@apache.org> on 2024/01/10 17:36:36 UTC
[I] Launch error messages are not helpful [daffodil-vscode]
arosien opened a new issue, #931:
URL: https://github.com/apache/daffodil-vscode/issues/931
For example, if a required sub-schema isn't loaded, like from the classpath, you get a popup like:

I understand we don't want to directly return stack traces, but we could produce better messages. In this particular case we have the actual error message from Daffodil that is useful:
```
org.apache.daffodil.debugger.dap.Compiler$CompilationFailed: Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; DaffodilXMLLoader: Unable to resolve schemaLocation='com/owlcyberdefense/dfdl/xsd/basicByteBinary.dfdl.xsd'.
Schema context: file:/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd Location in file:/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd
```
--
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] Launch error messages are not helpful [daffodil-vscode]
Posted by "arosien (via GitHub)" <gi...@apache.org>.
arosien commented on issue #931:
URL: https://github.com/apache/daffodil-vscode/issues/931#issuecomment-1933165013
Here's an idea: rather than the user having to scroll through the mess of the backend debugger log in the Terminal, we can send the exception message along with the event type back to the extension, which then logs it in a distinct "Daffodil" Output tab:
<img width="1087" alt="Screen Shot 2024-02-07 at 4 24 08 PM" src="https://github.com/apache/daffodil-vscode/assets/31163/1f7e02e1-197d-4087-ae31-ede7a3ce2320">
The user then clicks the "show logs" to switch to that tab:
<img width="1087" alt="Screen Shot 2024-02-07 at 4 24 08 PM" src="https://github.com/apache/daffodil-vscode/assets/31163/ee869d5c-121f-47c6-820c-a7f70aebc9fc">
--
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] Launch error messages are not helpful [daffodil-vscode]
Posted by "arosien (via GitHub)" <gi...@apache.org>.
arosien closed issue #931: Launch error messages are not helpful
URL: https://github.com/apache/daffodil-vscode/issues/931
--
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