IDE - Delete files

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

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 3812
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 81 times
Been thanked: 130 times

IDE - Delete files

Post by Pablo César » Tue Dec 30, 2014 10:30 pm

In the HMG IDE at menu option Project/Delete File when we execute for DBFs, this deletes DBF but not DBT files. Which is letting a orfan file.
Screen2.png
Screen2.png (17.22 KiB) Viewed 614 times
IMHO must also deletes same name with extension DBT or FPT or SMT.

Also when deletes fmg and any other file, should deletes to the recycle bin not remove phisically. In that way, there is a chance to recover it.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
quartz565
Posts: 383
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 73 times
Been thanked: 7 times
Contact:

Post by quartz565 » Tue Dec 30, 2014 11:59 pm

Γεια σου Παύλο!

I think that when we choose to delete a fmg or a dbf file from project this should simple be removed from project and not delete from the disk.
I don’t think that this is IDE’S job. :(
IDE also reads all fmg and dbf files located in the same folder with the project when we open it, without we have inserts then in the project! :!:
In my opinion they should change :?:
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: 3812
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 81 times
Been thanked: 130 times

Post by Pablo César » Wed Dec 31, 2014 12:13 am

Γεια σου Νίκο! :)

Thanks for your interest in this subject !
quartz565 wrote:I think that when we choose to delete a fmg or a dbf file from project this should simple be removed from project and not delete from the disk.
I don’t think that this is IDE’S job.
Yes, you're right !
quartz565 wrote:IDE also reads all fmg and dbf files located in the same folder with the project when we open it, without we have inserts then in the project!
These files are listed just to give a chance to use it. But I think would be shown in different color just to know if it is in use or not.

Any way, you are right. IDE should not delete files, phisically I mean.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
danielmaximiliano
Posts: 1971
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 10 times
Been thanked: 8 times
Contact:

Post by danielmaximiliano » Wed Dec 31, 2014 5:51 pm

Hace mucho mucho comente esto, la particularidad del IDE de eliminar fisicamente los archivo "no" pudiendo ser recuperado ya que no queda alojado en la papelera o/u otra carpeta de recuperacion ya que el borrado es a bajo nivel por el lenguaje C en el que esta hecho en IDE,
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp / Telegrams To cel +54 011 690 26 142

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

Post by Pablo César » Wed Dec 31, 2014 8:40 pm

Gracias Daniel, por tu interés en este asunto.
danielmaximiliano wrote:Hace mucho mucho comente esto, la particularidad del IDE de eliminar fisicamente los archivo "no" pudiendo ser recuperado
Si Daniel, tenés razón ! Este asunto es antiguo. Si bien recuerdo el principal defecto creo que fué corregido, que era al excluir PRGs y que hacia exclusion fisicamente. Pero ahora, cuando excluimos el PRG, está apenas removiendolo del archivo HBP, es decir, no lo remueve fisicamente.
Los FMGs tambien los está excluyendo (fisicamente me refiero) y no hay como recuperarlos.
Los PRGs, apenas los está removiendo de exibicion en el IDE. Por eso tiene la opcion de "Actualizar Ventana de Proyecto", que es justamente para recargar el listado de los archivos PRGs, FMGs, DBFs...

Lo que demandoo ahora es que el IDE al deletar archivos DBFs, no deje el archivo DBT (con el mismo nombre) o entonces mejor seria que el IDE, no borre NINGUN archivo, pues es como muchos colegas ya lo dijieron: esto no es función del IDE.

Me gustaría que el IDE lo quitase de exibicion apenas y no borrar el archivo. Pero si el IDE tuviera que deletar archivos, que lo hiciera pero atravéz de la papelera de reciclaje (que se pueda recuperar).

Feliz año nuevo !

Image
Thanks Daniel for your interest in this matter.
danielmaximiliano wrote:At long long timne I made this same comment about this particularity of IDE remove physically files that can "not" be recovered
Yeah Daniel, you're right ! This matter is very old. If I recall in my mind, I flaw different kind of files and that was corrected. Which was to exclude PRGs (physically exclusion). But now, when we are excluding the PRGs, it just removes from HBP file, ie not physically removed.
FMGs also being excluded (physically I mean) and there is no way to recover it.
PRGs is just removing from the exhibition within the IDE. By this reason, there is an option to "Refresh Project Window", which is precisely to reload the list of files PRGs, FMGs, DBF...

What I demand now is IDE not leaving any DBT when excludes DBF or better say, do not deletes any files, as many colleagues already said: this is not function of IDE.

I would like to be done by taking off of exhibition at IDE and non erase the file. And if IDE still need to remove it phisically, I wish to be done by Recycle Bin.

Happy new year !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

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

Post by Pablo César » Wed Mar 01, 2017 5:26 pm

I'm teaching HMG to my computer mentor. He does not speak English. In a short time it is already developing in GUI and uses a lot of IDE.

Regrettably, it was in the option of "Delete File" and erased a form that was so well done... :evil: (the form it was so pretty).

Him, like any of us, thought he'd just remove the file from the project and not delete the file.
The worst that IDE erases forever. This type of delete files function should leave for Windows Explorer or another deletion.
It is not up to the IDE to do this kind of thing...

If only IDE would erase files and put it available at RECYCLE it would be less serious.

UNFORTUNATE !! :x :x :x :x
 
Please dear Rathinagiri. Could you move this topic for HMG Bug Reports section, please ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

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

Post by serge_girard » Wed Mar 01, 2017 5:54 pm

With priority high ... !

Serge

User avatar
quartz565
Posts: 383
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 73 times
Been thanked: 7 times
Contact:

Post by quartz565 » Thu Mar 02, 2017 12:28 pm

serge_girard wrote:
Wed Mar 01, 2017 5:54 pm
With priority high ... !

Serge
+ 1000
Best Regards,
Nikos.

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

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

Post by serge_girard » Thu Mar 02, 2017 2:09 pm

Can't be that hard to realise? Or am I wrong?
Serge

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest