-
Notifications
You must be signed in to change notification settings - Fork 3
Validation Dialog #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…d an unpopulated dialog for standalone ConfigValidation.
…ate object attribute vectors for the lists of XML/XSD [TODO: accessor to those lists, and use xmlNames to populate combobox]
…n interface, so switching files will clear the error list; VALIDATE will populate error list, and double-clicking an error will go to a specific line in the active file.
…y working, as far as I can tell.
…ere, and just calling it; include a recursive directory creator to make sure all parent directories exist before attempting to create the file.
|
@Ekopalypse, since you mentioned in chat that you were interested in using this plugin for validating the themes, I first added a validation during the Update Config Files action in #16 (to resolve #1). However, per #14, that interface wasn't really condusive to fixing the errors, so I have added a separate action/dialog in the plugin to do the validation. I believe it's working now, though it could probably use some external verification that it's as usable as I think it is. ;-) And, while testing it out, I decided that I personally don't like the validation from PR #14, since it just interrupts the config-file update. I am leaning toward just deleting the validation calls from those, and just relying on this new action. If you disagree, and think it should still do the validate-during-update, let me know. Otherwise, I'll probably end up removing validate-during-update before merging this PR. |
|
I have compiled and tested the plugin from the validDlg branch. If the user is not using current model.xml files, then the corresponding files are only updated to the old version. At the moment, however, I don't see how you could intercept this with the plugin. Perhaps a note in the resulting update.log? As for validation during the update, perhaps it would be useful to only capture this in the update and not give the user the option to interrupt it during the update!? Maybe with highlighted colors? The dialog font size of 8 is a bit too small for me, even though I only use a standard FullHD (1920x1080) monitor with 100% scaling. What do you intend to do if a StyleID has been assigned twice Please do not take this as a new feature request, it is more intended as an exchange of ideas, |
…he scroll width based on the longest error text in the listbox.
|
Easy fixes done: bigger font, and horizontal scroll proportional to text width. That should go a long way toward making it better, but I will still spend some time investigating the other improvements. |
I think that's a reasonable assumption.
Not for me, I use different lexers for different log files.
Yes, works as well. |
The plugin sends the NPPM_SETBUFFERLANGTYPE to L_ERRORLIST right after opening the file and just before it turns on the monitoring (tail-f) mode for the logfile. My guess is that your extension-based on-activated-or-similar checks are happening after I set the L_ERRORLIST for the file. I guess I need to consider not using the .log extension. It's not just errors, so I didn't want it to be |
…ion results to not interrupt updating; change logfile from ConfigUpdater.log to ConfigUpdaterLog, to avoid conflict with extension-based alternate .log stylers/UDL/etc
Ah, sorry it does what it's supposed to, the problem was that I didn't have an ErrorList lexer with the theme I was using and after the update and restart the default colors are set, which of course makes sense.
In my case I check the filename and not just the extension but yes, it is possible that there are scripts that respond to .log. Hmm ... without extension or custom extension, that will behave the same, I think. Can't think of a scenario right now where one would be preferable to the other. |
…on in model as the problematic XML. TODO = langs.model.xml version; TODO = see if I can prefer scroll-to-top
…or-vs-model side-by-side; also, update the README to include the *.model.xml behavior (and preview the download-model-files)
…(and preview the download-model-files)
|
I decided I have added a button to the Validation dialog (*.model.xml, though it renames to stylers.model.xml or langs.model.xml depending on selected file). If you click that button while an error is selected in the list, it will open the appropriate model file into the other View, and will do its best to align the model file with the same section as the error occurs in the failing XML. (Because the simplest interface it will involve a new menu command, I have decided to put the download-model-files feature in a separate Issue #19, which will get a separate PR) |


Create a separate dialog to make a better interface for doing XSD-based validation of the Stylers/Themes/Langs XML files.
The README includes a section on Validation to explain how to use it.
resolves #14