Wish list
-
- Rank VI - Professional
- Posts: 726
- Joined: Mon Dec 13, 2004 1:50 pm
- Location: Tannhauser Gate
Re: Wish list
I'm happy with what it does at present.
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Re: Wish list
OK, good. I thought that was it but I wanted to confirm.MikeGale wrote:I'm happy with what it does at present.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
-
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
Re: Wish list
Albert Wiersch wrote:Code: Select all
function onTargetProcessed() [/code>[/quote] Works great! thanks.
-
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
Re: Wish list
Albert Wiersch wrote:Code: Select all
function onTargetProcessed() [/code[/quote] This works most of the time. But sometime is gets into a snit and does not load any of the error files.
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Re: Wish list
Can you provide more details? Do you get any error messages? Are there any screenshots that would show the problem?roedygr wrote:This works most of the time. But sometime is gets into a snit and does not load any of the error files.
Note that if the files are already loaded, then it may seem like it's not working because the editor won't open the files if they're already opened. Also note that it only opens up to 50 files. This can be changed in the code, but opening too many files could potentially be problematic.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
-
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
Re: Wish list
It would be nice to also have a variant of this code to treat warnings as errors.Albert Wiersch wrote:Code: Select all
function onTargetProcessed()
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Re: Wish list
Hello,roedygr wrote:It would be nice to also have a variant of this code to treat warnings as errors.
Please try this:
Code: Select all
function onTargetProcessed() {
if (getValueInt(1)>0) // if # of errors > 0
|| (getValueInt(2)>0) // or # of warnings > 0
{
if ($_JOB.openineditor.arrayLength()<50) {
$_JOB.openineditor[]=getValueString(5);
}
}
}
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
-
- Rank V - Professional
- Posts: 367
- Joined: Fri Feb 17, 2006 5:22 am
- Location: Victoria BC Canada
Re: Wish list
The new feature to load up documents with errors only works about 1/5 the time. Otherwise it loads nothing. I have not seen a pattern when it fails other than perhaps long running validates.
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Re: Wish list
Hello,
Sorry, I don't know why it would only work 1/5 of the time. I'd need more information in order to diagnose.
Could you be processing more than one target list? If so, then you'll need to set the 'User functions file' for each target list file that you want to use your TNPL function. Perhaps this was only done for some of your target lists but not all?
Also, in the Batch Wizard Options, please go to the 'When Running' page and check (enable) the 'Display verbose messages...' option. When the Batch Wizard tries to open files, it should then display messages like this in the Progress tab:
Please let me know whether or not you see those progress messages.
Sorry, I don't know why it would only work 1/5 of the time. I'd need more information in order to diagnose.
Could you be processing more than one target list? If so, then you'll need to set the 'User functions file' for each target list file that you want to use your TNPL function. Perhaps this was only done for some of your target lists but not all?
Also, in the Batch Wizard Options, please go to the 'When Running' page and check (enable) the 'Display verbose messages...' option. When the Batch Wizard tries to open files, it should then display messages like this in the Progress tab:
Code: Select all
Opening in editor (#1 of 10): "<filename>"
Opening in editor (#2 of 10): "<filename>"
Opening in editor (#3 of 10): "<filename>"
...
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial