NetTalk Central

Author Topic: The Web Folder appears to be out of date  (Read 7053 times)

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
The Web Folder appears to be out of date
« on: December 21, 2011, 03:33:12 PM »
Since updating to Nettalk 6, my web folder always appears to be out of date. Also, it runs GZipall each make.

Any way to get rid of these 2 errors and just have it DO it and go on instead of popping up these errors and having to continue?

Using Clarion 6
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: The Web Folder appears to be out of date
« Reply #1 on: December 21, 2011, 11:32:46 PM »
Hi Tom,

The Gzip running each time is a side effect of it copying each time. Fix the first and you fix them both.

the process for deciding to run copyall is simple. it looks in \web\scripts\netweb.js for the version number near the top of that file.
If it doesn't match the template version number, then it copies. So check that number, and check the number on the global extension. What are they both set to?

report back.

also, which build of NT6 did you most recently install?

cheers
Bruce



HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #2 on: December 22, 2011, 08:51:09 AM »
Nettalk v6.10 (Just updated to see if that solved the problem)

Hmm. My scripts folder is empty. Should I copy from one of the example apps, or isn't the template supposed to do this when it does the error?

Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: The Web Folder appears to be out of date
« Reply #3 on: December 22, 2011, 09:24:30 PM »
Hi Tom,

look at copyall.bat, and see if it's wrong.
It should be copying the files from \clarion6\3rdparty\libsrc\netweb\web or \clarion8\accessory\libsrc\win\netweb\web
Firstly check that it's got the correct "root" folder - ie it's copying from the "correct place".

Secondly check that correct place to make sure the web folder is there, and contains the correct files. You can look in \web\scripts\netweb.js to see the version number of the set.

Thirdly (assuming you haven't spotted the error yet) run the copyall.bat from the command line and see if it returns any errors.

Which version of Clarion are you using?

cheers
Bruce



HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #4 on: January 10, 2012, 09:26:47 AM »
Alas: Clarion 6.3

Hmm. I think I've found the problem. Where should it find the "copyall.bat"? I don't seem to have one.
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

bruce2

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #5 on: January 10, 2012, 12:28:14 PM »
In the app folder.

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #6 on: January 11, 2012, 10:56:43 AM »
Nope. Don't have any such bat file. How do I get one?
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

bruce2

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #7 on: January 11, 2012, 12:40:38 PM »
It should be generated as part of the compile. If it's not being generated at all, but gzipall is, the I expect clarion is not correctly installed on this computer. If you open \windows\win.ini is there a clarion 6 section in the file?

Probably your best step is to specify the web folder location directly. For example
C:\clarion6\3rdparty\libsrc\netweb
This is done on the global extension, advanced tab.

Cheers
Bruce

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #8 on: January 12, 2012, 07:24:02 AM »
Found it!

To avoid clogging up the backup with clw's, map's, lib's obj's and other files that are easily regenerated, my .red file says:

*.*   =c:\Cstuff;.; %ROOT%\libsrc; %ROOT%\images; %ROOT%\template; %ROOT%\examples; %ROOT%\convsrc;%ROOT%\CPCS600;%ROOT%\CPCS600\IMAGES; C:\Clarion6\3rdParty\LibSrc

and the .bat files, both of them, land there. I think they don't run when the template tries.

So I added *.bat = .\ to my red file and the bat file runs and copies files and the gzip gzips.

It still always thinks the web folder is out of date, but it does its work, I think.

« Last Edit: January 12, 2012, 07:52:50 AM by HalfBubble »
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

bruce2

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #9 on: January 12, 2012, 11:51:56 AM »
You shouldn't see it copy every time. It does open one dos box very quickly on each compile, but that is too fast to see what's in it. The copy and gzip by contrast are open for much longer.

If in doubt run the batch files manually and check for errors.


Cheers
Bruce

HalfBubble

  • Newbie
  • *
  • Posts: 13
    • Yahoo Instant Messenger - torby77
    • View Profile
    • Email
Re: The Web Folder appears to be out of date
« Reply #10 on: February 08, 2012, 12:06:19 PM »
I modified your template to just do it if it needs doing and forget the Errors:


    #if((%ok=0) and (%linenumber >0))
      #!Error('The "Web" folder appears to be out of Date...Starting CopyAll batch file.')
      #Run('cmd.exe /c "call copyall.bat"'),WAIT
      #! need to remake these because themes list may have changed.
      #!Error('Now running Gzipall.Bat file to compress scripts, styles and themes.')
        #Insert(%MakeThemeList)
        #Insert(%MakeGZipAll)
        #Run('cmd.exe /c "call gzipall.bat"')
      #!insert(%RunGzipall)

Still not sure why it thinks it always needs to be done.
Tom Ruby
Clarion since Clarion for Windows 1.0
Available for short or long projects

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: The Web Folder appears to be out of date
« Reply #11 on: February 08, 2012, 09:43:42 PM »
suppressing the #error is ok, but the copy and zip takes time, so having that happen each time will get old quickly.

perhaps the real solution here is to figure out why it wants to update all the time.

a) take a look inside copyall.bat to see where it thinks the source directory is
b) take a look in that folder, \web\scripts\netweb.js file and
c) see what version number is set near the top of that file.

In my current (internal) build it says
;var NetTalkVersion = 6.19;

yours should match the version of the template that is installed. You can see the version number of the template on the global extensions.

cheers
Bruce