ViewError - HMG building utility

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

Moderator: Rathinagiri

RPC
Posts: 54
Joined: Fri Feb 10, 2017 4:12 am
Has thanked: 18 times
Been thanked: 1 time

Re: ViewError - HMG building utility

Post by RPC » Sun Feb 12, 2017 9:09 pm

Hi Pablo
Trying to run ViewError. Installed at c:\ViewError but it doesn't show errors as in screenshots provided by you.
It is neither getting uninstalled by selecting uninstall checkbox.
There is ViewError icon at taskbar and when i click it the ViewError screen and Source code editor preence dialog box appears but uninstall doesn't work
Pls guide.
Thanks

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

ViewError - HMG building utility

Post by Pablo César » Sun Feb 12, 2017 9:54 pm

Hi Rajeev,

Thanks for your interest and report your difficulties.

ViewError when run for the first time will create one .INI file in the current location of the executable. It will also create an environment variable where it will register where the application is located. This "if" you confirm in button "SAVE" (see picture below):

Image

In this way Build.bat will recognize that there is an ERROR.LOG viewer application.
It is therefore recommended that you store this application in a more appropriate folder than the main directory.
I've stored it in a sub folder called HMGTools. (together with Call_IDE app) ;)

The uninstall option will only work if the application is actually configured. Hence it will delete the environment variable and will no longer work as ERROR.LOG viewer.

When you save the application, that is, configure the application. Take advantage of it and set it with the text editor "Notepad ++" (* #1) and leave the parameter "-n" that will go straight to the line where the error is occurring. This application makes a lot of progress in my compilations. Be it on the command line as well as in builds through the IDE.

Notes:
  • #1: Use Notepad++ option in ViewError only if you have installed already the Notepad++ in your computer, as your favorite source codes editor.
  • #2: You can install and configure another text editor. But configure it if this editor has the parameterization feature that when opening the editor can position itself in line # <nNumber_of_line> where the error occurs.
    If your favorite editor does not have this feature: let viewError working only through the "Grid as editor" option.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

RPC
Posts: 54
Joined: Fri Feb 10, 2017 4:12 am
Has thanked: 18 times
Been thanked: 1 time

Re: ViewError - HMG building utility

Post by RPC » Mon Feb 13, 2017 2:40 pm

Thanks Pablo It is working now.

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

ViewError - HMG building utility

Post by Pablo César » Mon Feb 13, 2017 3:47 pm

Good ! :D

Thank you for your feedback.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

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

ViewError - HMG building utility

Post by Pablo César » Wed Mar 01, 2017 1:44 am

Hi all,

As I explained earlier, this application is intended to show and position itself in the line of your source code where the compilation error occurred.
This is working FINE ! :D

However, there are other types of errors that can occur during compilation and are often not related to the line of your code.
It is errors coming from HBMK2, WINDRES and even the operating system (permissions or memory errors, among others).

Now these errors can be viewed more comprehensively and in your code page of your current language (I believe), because these error messages were saved in OEM by HBMK2 (STD out) in my case in CP850.
 
Screen105.png
Screen105.png (54.61 KiB) Viewed 70 times
 
This caused the non-display of accents in the Portuguese language (which is my case). Since this application can be used in several countries, in several languages I had to find a way to use hb_Translate with the correct and not fixed CodePage, then be able to find a function in harbour.
For those who want to know about this go to: viewtopic.php?f=7&t=5142
 
ViewError.rar
Source files
(22.18 KiB) Downloaded 14 times
ViewError (Exe).rar
Executable file
(1.29 MiB) Downloaded 16 times
 
Just to remind you, save ViewError at same folder/place that you had before.
If you have not tried this app yet ... you're missing out on a great opportunity to improve and streamline your builds. :roll:

A TIP: I usually put ViewError.exe in a folder called: HMGTools

Resizing window/control is handled in order to improve your visualization. :)

I hope you enjoy it !   :P
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest