flat assembler
Message board for the users of flat assembler.

flat assembler > IDE Development > Bugs in FASMD

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1904
- [critical, data loss]:

Trying to save file (or to compile), while file exists and is read-only,
always runs into a Page Fault Sad

- [minor]

CTL-C works only in cca 1/2 of cases, other 1/2 results in
Code:
^C
^C
    

on the screen instead of copying into clipboard Sad

-- --------------------------------------------------------------------------------

In FASMW saving is better but also not ideal, not necessarily the
example for FASMD.

Suggestion of optimal handling of saving:

When loading file, set Unmodified and calculate MD5.

At first edit, change Unmodified to Modified?

When saving, calculate and compare MD5.

"=" - Change Modified? to Unmodified,
report "Already saved" (only when manually saving, skip if compiling)

"<>" - Find existing file, check attribute READ-ONLY:

SET: report error, ask for new filename

Not-SET: rename it: .ASM -> .BAK,
.BAK -> .BA1 ... .B99, then save.

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 31 Jan 2007, 20:46
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6999
Location: Kraków, Poland
Tried to fix the two reported problems, check it out.

As for the MD5, I would feel a bit concerned if my editor relied on hash to determine the sameness of file contents. Well, even if my editors happen to be unreliable, it's usually caused by bugs, not by design.
Post 31 Jan 2007, 21:27
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904
Quote:
Tried to fix the two reported problems, check it out.


Reported bugs and they are fixed 40 minutes later ? Smile

PF: Fixed Smile
CTL-C: Not fixed, same as before ...

Quote:
As for the MD5, I would feel a bit concerned if my editor relied on
hash to determine the sameness of file contents. Well, even if my editors
happen to be unreliable, it's usually caused by bugs, not by design.


OK, this issue is not a must-fix for today ... this is a problem of all
editors I've seen so far:
- load a text
- accidentally add one char
- remove it
- editor won't quit, persistently asks me to save, although no need Confused Confused

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 31 Jan 2007, 22:06
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6999
Location: Kraków, Poland
NTOSKRNL_VXE wrote:
CTL-C: Not fixed, same as before ...

Please try it now.
What DOS type/version are you working on?

NTOSKRNL_VXE wrote:
OK, this issue is not a must-fix for today ... this is a problem of all
editors I've seen so far:
- load a text
- accidentally add one char
- remove it
- editor won't quit, persistently asks me to save, although no need Confused Confused

When I accidentally add one char I just press the undo, thus I never had such a problem...
Post 31 Jan 2007, 22:44
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2311
Location: Usono (aka, USA)
It won't write to read-only files? It just reports an error and loses all your changes. I think it should ask if you want to write anyways, store the file attributes, clear all attributes, save the file, then restore the attributes. This is what TDE does.
Post 01 Feb 2007, 02:01
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904
Quote:
Please try it now.


Seems fixed. Smile Smile Smile

Quote:
What DOS type/version are you working on?


FreeDOS 1.0 with latest HDPMI32 Idea

Quote:
It just reports an error and loses all your changes


That's what some versions of FreeDOS EDIT do, this is a criminal bug Sad

Quote:
This is what TDE does.


I tested it some time ago and found it nice but unusably buggy Sad

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 01 Feb 2007, 21:57
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2311
Location: Usono (aka, USA)
NTOSKRNL_VXE wrote:


Quote:
This is what TDE does.


I tested it some time ago and found it nice but unusably buggy Sad


Really, which version? I almost immediately assume you mean the 16-bit DOS version (there are also DJGPP and LCC/Win32 versions). If you find a bug in those latter two, report it to the author. I don't use FreeDOS that much, but it mostly seems to behave the same as other DOSes. I use TDE all the time (TDEW on Win XP, TDEP on DR-DOS), and it seems stable to me (except for the low-mem-available, 16-bit TDER). It's public domain C code, too, so anyone can learn from it. Wink
Post 02 Feb 2007, 04:26
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904
Quote:
assume you mean the 16-bit DOS version (there are also DJGPP


I mean the DJGPP version Sad

Quote:
seems stable to me (except for the low-mem-available, 16-bit TDER)


The 16-bit RM editors are frustrating Sad

Quote:
It's public domain C code


A good aspect Smile

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 02 Feb 2007, 09:02
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2311
Location: Usono (aka, USA)
FASMD.TXT wrote:

The editor runs in text mode and it tries to preserve the mode that was set
outside of it


If I do a quick "mov ax,7 int 10h" (aka, "mode mono" on real DOS) then run FASMD, it runs as invisible! (just confirmed again w/ 1.67.20) Laughing

EDIT: Still broken in 1.67.21 (okay, fine, not important I guess).
Post 14 Feb 2007, 03:10
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.