You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "shanedell (via GitHub)" <gi...@apache.org> on 2023/07/14 20:56:17 UTC
[GitHub] [daffodil-vscode] shanedell opened a new pull request, #704: Multiple Launch Wizard updates
shanedell opened a new pull request, #704:
URL: https://github.com/apache/daffodil-vscode/pull/704
Multiple Launch Wizard updates:
- Rename dataEditorConfig attribute to dataEditor to be more consistent.
- Fix issue caused by the tdmlAction being an empty string. When its empty set it to 'none'
- Update setting of dataEditor config for launch wizard to match new config.
- Add dfdlDebugger (logging.level and logging.file) to the launch wizard.
- Clear out daffodil debugger classpath items when switching config.
- This fixes an issue where the debugger classpath would have duplicate items or just wouldn't be proper for the config.
Closes #678
Closes #693
--
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] shanedell commented on a diff in pull request #704: Multiple Launch Wizard updates
Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell commented on code in PR #704:
URL: https://github.com/apache/daffodil-vscode/pull/704#discussion_r1265450561
##########
src/launchWizard/launchWizard.js:
##########
@@ -298,15 +322,22 @@ async function updateConfigValues(config) {
document.getElementById('useExistingServer').checked =
config.useExistingServer
document.getElementById('dataEditorPort').value = parseInt(
- config.dataEditorPort
+ config.dataEditor.port
)
- document.getElementById('dataEditorLogFile').value = config.dataEditorLogFile
+ document.getElementById('dataEditorLogFile').value =
+ config.dataEditor.logging.file
document.getElementById('dataEditorLogLevel').value =
- config.dataEditorLogLevel
+ config.dataEditor.logging.level
+
+ document.getElementById('dfdlDebuggerLogFile').value =
+ config.dfdlDebugger.file
+ document.getElementById('dfdlDebuggerLogLevel').value =
+ config.dfdlDebugger.level
updateInfosetOutputType()
updateTDMLAction()
+ await clearClasspathList()
Review Comment:
So, whenever a user selects an already made config if it has the `daffodilDebugClasspath` it will automatically add those entries to the UI. It does this by splitting the entries by delimeter `:`, then each item has it own `<li>` inside of the table. So every time the config selected is updated the `daffodilDebugClasspath` list is cleared out and then if `daffodilDebugClasspath` is set it will add the entries otherwise leave it blank. The clearing makes sure that items from a previous config won't still in the list for a different config and when new config is selected that the list is empty instead of container the same items from the previous config.
--
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] shanedell commented on a diff in pull request #704: Multiple Launch Wizard updates
Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell commented on code in PR #704:
URL: https://github.com/apache/daffodil-vscode/pull/704#discussion_r1265450561
##########
src/launchWizard/launchWizard.js:
##########
@@ -298,15 +322,22 @@ async function updateConfigValues(config) {
document.getElementById('useExistingServer').checked =
config.useExistingServer
document.getElementById('dataEditorPort').value = parseInt(
- config.dataEditorPort
+ config.dataEditor.port
)
- document.getElementById('dataEditorLogFile').value = config.dataEditorLogFile
+ document.getElementById('dataEditorLogFile').value =
+ config.dataEditor.logging.file
document.getElementById('dataEditorLogLevel').value =
- config.dataEditorLogLevel
+ config.dataEditor.logging.level
+
+ document.getElementById('dfdlDebuggerLogFile').value =
+ config.dfdlDebugger.file
+ document.getElementById('dfdlDebuggerLogLevel').value =
+ config.dfdlDebugger.level
updateInfosetOutputType()
updateTDMLAction()
+ await clearClasspathList()
Review Comment:
So, whenever a user selects an already made config if it has the `daffodilDebugClasspath` it will automatically add those entries to the UI. So every time the config selected is updated the `daffodilDebugClasspath` list is cleared out and then if `daffodilDebugClasspath` is set it will add the entries otherwise will leave it blank. The clearing makes sure that items from a previous config won't still in the list for a different config and when new config is selected that the list is empty instead of container the same items from the previous config.
--
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 a diff in pull request #704: Multiple Launch Wizard updates
Posted by "mbeckerle (via GitHub)" <gi...@apache.org>.
mbeckerle commented on code in PR #704:
URL: https://github.com/apache/daffodil-vscode/pull/704#discussion_r1265388259
##########
src/launchWizard/launchWizard.js:
##########
@@ -298,15 +322,22 @@ async function updateConfigValues(config) {
document.getElementById('useExistingServer').checked =
config.useExistingServer
document.getElementById('dataEditorPort').value = parseInt(
- config.dataEditorPort
+ config.dataEditor.port
)
- document.getElementById('dataEditorLogFile').value = config.dataEditorLogFile
+ document.getElementById('dataEditorLogFile').value =
+ config.dataEditor.logging.file
document.getElementById('dataEditorLogLevel').value =
- config.dataEditorLogLevel
+ config.dataEditor.logging.level
+
+ document.getElementById('dfdlDebuggerLogFile').value =
+ config.dfdlDebugger.file
+ document.getElementById('dfdlDebuggerLogLevel').value =
+ config.dfdlDebugger.level
updateInfosetOutputType()
updateTDMLAction()
+ await clearClasspathList()
Review Comment:
Add comments explaining what you are doing here.
It looks like you are clearing the table of debug classpath entries,
then if the config.daffodilDebugClasspath, which is a string, is Non empty, you are reinitializing the table of classpath entries from it? But why? In what situation would this be necessary?
The relationship of the classpath, concatenated into a string with ":" separators, and this daffodilDebugClasspathTable is not clear. Which takes priority over the other?
You could rename some functions to make it clear these are all talking about the debugClasspath, and you currently have clear and update, when really I think you have only one public operation: set the table to match the current stringified debug classpath, which involves clearing the table then setting it to match the string.
But I'm not even sure why you are doing that. The user fills in the table from the UI.
Is this hedging so that if they edit the launch.json themselves and update the daffodilDebugClasspath that you can detect that and use it as the starting point?
If so, please say so explicitly. Also, is it possible for the user to modify the launch.json debug classpath table also, in which case those changes would be lost. Or is that not visible to them?
--
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] shanedell merged pull request #704: Multiple Launch Wizard updates
Posted by "shanedell (via GitHub)" <gi...@apache.org>.
shanedell merged PR #704:
URL: https://github.com/apache/daffodil-vscode/pull/704
--
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