ViewError - HMG building utility

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
mol
Posts: 2853
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 124 times
Been thanked: 65 times
Contact:

Re: ViewError

Post by mol » Sun Dec 21, 2014 8:56 pm

Thanks for sharing!

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Sun Dec 21, 2014 9:38 pm

Thank you Marek for you interest ! :)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Thu Jan 15, 2015 2:12 am

Hola Pablo César,

Muy excelente Herramienta!, no habrá una forma de que vaya incluido en HMG, para que se ejecute en automático cuando haya un error al compilar?

Saludos

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Thu Jan 15, 2015 10:13 am

Gracias Javier por tu opinion e interés. :D
Javier Tovar wrote:... no habrá una forma de que vaya incluido en HMG...
Lo veo un tanto dificil, ya que seria un ejecutable más para ser anexado al programa de instalación. A no ser que algun dia, la instalacion del HMG sea con items selecionables, es decir que permita bajar y actualizar los archivos que solo fueron modificados. De esta forma tendríamos apenas una sola instalacion de version de HMG. Porque a cada instalacion tenemos archivos repetidos entre una version y otra. Pero esto es algo, que todavia no há sido discutido aqui en el forum de forma profunda. Esta es apenas mi opinion personal. Tambien para que sea o pueda ser incorporado al paquete de instalacion HMG, tendriamos que juntar la aprobacion manifestada de muchos usuários y obtener la aprobacion del "HMG Development Team".
Javier Tovar wrote:...para que se ejecute en automático cuando haya un error al compilar?
Por las razones que hé mencionado, creo que lo conveniente, sea hacer uso de esta herramienta a critério de cada uno. Quien quiere lo baja y lo instala en su ambiente HMG.

Disculpame, ahora me tengo que ir a atender un cliente, pero voy presentar una solución con respecto al Build.bat.

Saludos cordiales,

Image

Thanks Javier for your opinion and interest. :D
Javier Tovar wrote: ...there would be a way to be included in HMG...
I see a such difficult because it would be more one executable to be attached to the installer. Unless someday, the installation of HMG could be as selectable items installer, ie allowing download and update only the files that were just modified. In this way we would have just a single installation version of HMG. Because in each installation we are duplicating files from a version to another. But this is something that has not deeply been discussed here in the forum. This is just my personal opinion. Also to be or may be incorporated into the installation package HMG, we had to raise the approval expressed by many users and obtain the "HMG Development Team" approval too.
Javier Tovar wrote:... so that it could runs automatically when there is an error when compiling?
For the reasons I have mentioned, I think it advisable, being use this tool at the user option. Who wants it can download it and install it on your HMG environment.

Sorry, now I have to go meet a client, but I'll present a solution with respect to Build.bat.

Best regards,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Thu Jan 15, 2015 5:23 pm

Gracias Pablo César por compartir!

Saludos

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Thu Jan 15, 2015 8:43 pm

Hi All ! :D

I have been preparing (not 100% finnished) but the ViewError app is workable and works perfectly with this listed Build.bat below of our last HMG version released.

But I wish to clear something before. This use is optional, is not official use yet and I do not know if this it will be considered as part of HMG or not. Any way the use of it is for your own risk ( :lol: I'm kidding ).
It's good to read this before, please.

As you must know, ViewError is an app which helps to visualize the source code when happen an error at source code during build. This building can be by IDE or by prompt command. Some runtime errors and some errors which harbour could not identify by lines of source code, will not be display the source codes.

This is the Build.bat (Build64.bat can also be adapted), and it works in both ways (with ViewError app and without). Previously at this last HMG release (HMG 3.3.1 and older) when we tried to compile and the app was running, was displaying a non very well defined message to user giving an error. But now one message will be displaying saying that app must be closed before building.

Here in this topic you can find and access the newest version of Build.bat.
It was improved, revised and tested. This batch can work with follwing options:

Without ViewError app:
  • Run in IDE and thru Prompt Command
  • It will check if executable is running and give vbs message (MessageBox in VBScript)
  • In case of error at IDE. IDE will display the error as ever done
    Screen2.png
    Screen2.png (78.19 KiB) Viewed 446 times
  • In case an error at Prompt Command, will make TYPE and PAUSE
    Screen1.png
    Screen1.png (12.78 KiB) Viewed 446 times
With ViewError app:
  • Run in IDE and thru Prompt Command
  • It will check if executable is running and give app message
  • In case of error at IDE. App will display the error showing source code at line in conflict
    Screen3.png
    Screen3.png (62.84 KiB) Viewed 444 times
  • In case an error at Prompt Command, app will also display the error showing source code at line in conflict
    Screen4.png
    Screen4.png (16.03 KiB) Viewed 444 times
This Build.bat, will check and take the variable ViewError at your enviroment variables system and see if is defined with folder or if it's empty one.
When is defined the path of ViewError, will execute it. But if is deleted (not find executable) will proceed without ViewError app on compiling procedure.

When you run for first time, ViewError check if this variable is setted or not. And will set the variable with the folder where ViewError is installed. The only problem that need to reboot to take effect of installation.
But you can test without any problem at all. If you do not want to reboot just to make tests, you can re-edit this Build.bat at line # 72 and put full path of ViewError is installed in you hard disk. ;)

When be completed/finnished the app will offer two ways to re-edit source codes when an error happen: one be done by the GRID and other by your favorite source Editor installed (using new HMG_GetFileAssociatedWithExtension function).

Gentlemen, I know you are busy at this moment, but I would like to know your opinion about this.

I hope you enjoy, you will see it works perfectly without any prejudice.

Best regards guys and I hope you enjoy it ! :D

Note: Source and executable files were removed due there is a updated version more ahead for you downloading.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Thu Jan 15, 2015 9:45 pm

Bien Pablo César, en un rato lo veo!

Saludos

User avatar
quartz565
Posts: 465
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 111 times
Been thanked: 11 times
Contact:

Post by quartz565 » Fri Jan 16, 2015 3:18 am

Ευχαριστώ Παύλο !!
Πολύ καλό !!
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Fri Jan 23, 2015 10:42 pm

There were a bug saying all the time to be installed and indicating to reboot your PC.

Have been fixed on these lines:
Screen1.png
Screen1.png (52.03 KiB) Viewed 365 times
Note: Source codes and executable files were removed due there is a updated version more ahead for you downloading.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
serge_girard
Posts: 1862
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 292 times
Been thanked: 67 times
Contact:

Post by serge_girard » Sat Jan 24, 2015 9:21 am

Excellent Pablo!

Serge

Post Reply