mosquito bug

For technical support for all editions of CSE HTML Validator. Includes bug reports.

mosquito bug

Postby roedygr » Tue Nov 15, 2011 4:17 pm

I have have reported this before. I figured it would take all of ten minutes to fix, but it is still there. I don't think I jumped up and down enough about how important a bug it is to fix. Let me explain the problem again.

There are several ways the problem manifests:

1. I load htmlvalidator when I am in directory A.
2. I then leave it running.
3. then I move to another directory B and invoke a command line validation of a file C which lives in dir B.
It won't be able to find it. It looks in the original dir A, not the current dir B.

Another is it asks me if I want to reload because I edited the file with some tool outside of Htmlvalidator, I say yes, but it fails presumably because the current directory has changed since HTMLValidator loaded.

Another case. A script that loads and edits a file will work if HTML validator is not loaded, but will fail it if is already loaded. My workaround is to keep killing HTML validator, knowing perfectly well I will load it a again a few seconds later. By I keep forgetting and my scripts fail.


The fix is simple. Every editor does this. It must track files internally with the absolute filename, not the relative one of any files it has loaded.
When you run an HTMLValidator command line, it must use the CWD, not the CWD when the bulk of it was loaded earlier.

I think simply storing all filenames internally in absolute form will clear up most of the trouble.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 249
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Re: mosquito bug

Postby Albert Wiersch » Tue Nov 15, 2011 4:32 pm

Hello,

Thanks for the report. I think I know what is happening. The command line processor is passing the file to the editor (which may have been run from another CWD) but is not passing the file with the full path, so there may be a conflict of the two CWD's.

I'll try to address this for v11.01 by passing a full filename to the editor or by passing the CWD to use.

In the meantime, I think if you specified full paths with the command line processor that it would address this issue.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: mosquito bug

Postby Albert Wiersch » Mon Feb 06, 2012 6:46 pm

Thanks. I think I have just solved #1 for v11.01, but it needs some testing. I will send you a link to see if you can test.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 3 guests