Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Management of Project Source FIles
Wed, Oct 27 2021 12:52 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim

I have the following options set.
Project deployment: Deploy into Root Folder
Output path: output
Loader: <project name>.html
Script: <project name>.js

EWB3 does not always update the html and js files in the <project>\output folder. You have made a two changes in response to issues that I raised to address this in the past but there are situations where this does not occur. Sometimes it is sufficient to simply delete the files in the “output folder”. Sometimes it is sufficient to Build the project.

I have a collection of 30 plus small projects (one or two units) in a folder D:\EWB3\Testing. Each project has its own folder, for example D:\DATA\EWB3\Test\Test16 - Authenticate\

Within this folder, there may be folders containing previous versions of the project.

It is not uncommon for the project source files being saved in a previous folder or the new output files being copied to the incorrect output folder.

Below are output messages that show a manifestation of this behaviour.

1: Success (0 hints, 0 warnings, 0 errors)
2: Existing D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.js kept (total size is 1.54 MB)
3; Existing D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.html kept (total size is 550.81 KB)
4: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.html already exists in /Content and hasn't changed
5: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.js already exists in /Content and hasn't changed
6: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvertOLD.html already exists in /Content and hasn't changed
7: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvertOLD.js already exists in /Content and hasn't changed

I do not know where the file name SIUnitsConvertOLD.html in /content folder comes from in line 6. There is no such file in the /content folder of either the IDE or servers.

Another example of the issue is when a project is deployed, the following message is displayed.
* "Application deployment completed successfully: 0 files copied."

Deployment has not being completed successfully as no files have been copied. It would be helpful if the files attempted to be copied and the destination folder was included in the message.

I recently made some minor changes to an existing one unit project. One change involved removing the OnEnterEvent for an edit component, edUnitFrom.

The project was compiled and run successfully in the IDE. After building the project and using FTP to replace the projects .js and .html files to the web host, I received a list of many errors when attempting to view the web page, all starting with the following error.

* "Persistent load error ( Persistent load error ( Persistent load error ( Persistent load error ( Persistent load error ( method edUnitFromEnter not found)))))"

I resolved this by reinstating the OnEnter event for edUnitFrom – using Walter Matte’s Sleep procedure to do nothing for 10ms. (Thank you Walter).

Copied the new .js and .html files and the web page now displays correctly.

The utilities can be viewed from the Utilities menu from https://wisenutritioncoaching.com.au

Richard
Mon, Nov 29 2021 6:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< EWB3 does not always update the html and js files in the <project>\output folder. You have made a two changes in response to issues that I raised to address this in the past but there are situations where this does not occur. Sometimes it is sufficient to simply delete the files in the “output folder”. Sometimes it is sufficient to Build the project. >>

No, this is not the case - files are checked using 32-bit checksums, so it is highly unlikely that EWB is getting the file checks wrong, and we have had 0 reports of anything like this from any other customers.

<< Below are output messages that show a manifestation of this behaviour.

1: Success (0 hints, 0 warnings, 0 errors)
2: Existing D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.js kept (total size is 1.54 MB)
3; Existing D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.html kept (total size is 550.81 KB)
4: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.html already exists in /Content and hasn't changed
5: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvert.js already exists in /Content and hasn't changed
6: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvertOLD.html already exists in /Content and hasn't changed
7: [Internal] D:\DATA\EWB3\Projects\PathologyConv\output\SIUnitsConvertOLD.js already exists in /Content and hasn't changed

I do not know where the file name SIUnitsConvertOLD.html in /content folder comes from in line 6. There is no such file in the /content folder of either the IDE or servers. >>

It sounds like you're getting a little confused as to what is located where:

1) Those "old" output files are being put there when you compile a project.

2) EWB does not automatically remove any existing files unless they correspond to the project output file names set in the project settings, so if you compiled/copied the other files into the same output folder, then EWB won't touch them and will leave them alone.

3) If you can't figure out why something is being indicated in a compiler message, check the deployment server that you have selected in the Server Manager and see what's in the Files/Content folder.  You will then see what EWB is referring to.

<< Another example of the issue is when a project is deployed, the following message is displayed.
* "Application deployment completed successfully: 0 files copied."

Deployment has not being completed successfully as no files have been copied. It would be helpful if the files attempted to be copied and the destination folder was included in the message. >>

If none of the output files have changed, then EWB will not copy them.

<< The project was compiled and run successfully in the IDE. After building the project and using FTP to replace the projects .js and .html files to the web host, I received a list of many errors when attempting to view the web page, all starting with the following error. >>

Please send me an example of this, and I'll take a look.

<< The utilities can be viewed from the Utilities menu from https://wisenutritioncoaching.com.au >>

I'm not sure what you're referring to here.

Tim Young
Elevate Software
www.elevatesoft.com
Image