You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/02/02 16:40:49 UTC
[GitHub] [daffodil-vscode] arosien opened a new issue #76: Support loading and breakpoints of schemas on classpath
arosien opened a new issue #76:
URL: https://github.com/apache/daffodil-vscode/issues/76
(This issue is extracted from part of #66.)
Schemas may be included as resources on the classpath, which supports both file-system directories and jar files. The debugger extension, however, doesn't currently know about these resources in order to view them or set breakpoints within them.
One way to supply the classpath schemas to the editor, to view and to let the user set breakpoints there, is to send [`LoadedSource` DAP events](https://microsoft.github.io/debug-adapter-protocol/specification#Events_LoadedSource) from our backend to VS Code when we notice any referenced schema outside of the initial schema. We can do this eagerly (scan the XML, etc.) or lazily (as the schema is processed we notify when a new schema is encountered). The editor then will request the source content, and the backend can send it (since we can access the data of the jar file on the classpath), and the editor will display the (read-only) content. Implementation-wise, we need to re-enable the `supportsLoadedSourcesRequest` initialization parameter that was disabled in #25, decide the schema source discovery strategy, and handle the appropriate events and requests.
Additionally, I suspect the default [`pathFormat` parameter of the `Initialize` request](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Initialize) needs to change from `path` to `uri`, since the loaded source will have a `jar` URI scheme (because it is loaded from a jar on the classpath).
--
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
[GitHub] [daffodil-vscode] mbeckerle commented on issue #76: Support loading and breakpoints of schemas on classpath
Posted by GitBox <gi...@apache.org>.
mbeckerle commented on issue #76:
URL: https://github.com/apache/daffodil-vscode/issues/76#issuecomment-1029178015
ProcessorFactory has an sset member that gives access to the SchemaSet object, which has allSchemaFiles.
Each is a DFDLSchemaFile object, which has public member uriString.
--
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
[GitHub] [daffodil-vscode] mbeckerle commented on issue #76: Support loading and breakpoints of schemas on classpath
Posted by GitBox <gi...@apache.org>.
mbeckerle commented on issue #76:
URL: https://github.com/apache/daffodil-vscode/issues/76#issuecomment-1029172123
Hmmm. Not a published supported API, but I believe there is an
allSchemaFiles thing. Let me look.
On Thu, Feb 3, 2022 at 10:18 AM Adam Rosien ***@***.***>
wrote:
> @mbeckerle <https://github.com/mbeckerle> @stevedlawrence
> <https://github.com/stevedlawrence>, are there any APIs within Daffodil
> that provide the tree of schema dependencies?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/daffodil-vscode/issues/76#issuecomment-1029096176>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AALUDAY3L3GR76D2S6G6PXLUZKME3ANCNFSM5NMRT4JQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
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
[GitHub] [daffodil-vscode] arosien commented on issue #76: Support loading and breakpoints of schemas on classpath
Posted by GitBox <gi...@apache.org>.
arosien commented on issue #76:
URL: https://github.com/apache/daffodil-vscode/issues/76#issuecomment-1029096176
@mbeckerle @stevedlawrence, are there any APIs within Daffodil that provide the tree of schema dependencies?
--
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