Bug 14640

Summary: Madedit-Mod text editor
Product: Mageia Reporter: nikos papadopoulos <nikos769>
Component: New RPM package requestAssignee: All Packagers <pkg-bugs>
Status: REOPENED --- QA Contact:
Severity: enhancement    
Priority: Normal CC: micheelsen, minggang.li
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/projects/madedit-mod/
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: backtrace for madedit-mod-0.3.4-1.x86_64_GTK3_Mageia5.rpm
as previous attachment
file encoding window, too small, not "resizable"
backtrace when choosing Menu->Tools->Options (Mageia 5, 64bit, madedit-mod 3.4.1
backtrace when choosing Menu->Tools->Word Count

Description nikos papadopoulos 2014-11-22 10:22:56 CET
Description of problem:
Madedit-Mod text editor.

Some of the features that set it apart from other text editors
- it can, easily, handle really large files
- ... and really long strings
- easy change of text encoding 
- support for "exotic" text encodings
- unusual text highlighting (interface) (the initial developer was Japanese or Korean)
- lightweight, feature rich
- HEX viewer, editor

Madedit-Mod is a fork of Madedit.

I still use an old rpm of Madedit
(http://sourceforge.net/projects/madedit/files/MadEdit/MadEdit-0.2.9/)
I mainly use xfw and bluefish. But, for some things I use Madedit.


Reproducible: 

Steps to Reproduce:
Comment 1 Minggang Li 2015-06-16 16:59:43 CEST
Hello, MadEdit-Mod has rpm build now(0.3.2). You can download it at its official site.

Resolution: (none) => FIXED
CC: (none) => minggang.li
Status: NEW => RESOLVED

Comment 2 Samuel Verschelde 2015-06-17 11:53:01 CEST
Having the RPM available outside our repositories doesn't end the package request. Reopening.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 3 nikos papadopoulos 2015-06-17 15:50:14 CEST
... and unfortunately they only provide a 64bit rpm.
Comment 4 Minggang Li 2015-06-24 17:35:56 CEST
What's the platform you are working on? I can release a 32 bit package for you.


However, integrate it into the release is beyond mine.
Comment 5 Minggang Li 2015-06-24 17:40:17 CEST
(In reply to Minggang Li from comment #4)
> What's the platform you are working on? I can release a 32 bit package for
> you.
> 
> 
> However, integrate it into the release is beyond mine.

BTW: 0.3.3 was released with bug fix and two new features(Markdown/HTML conversion and review, crash dump support)
Comment 6 Minggang Li 2015-06-24 17:42:41 CEST
I need a VMware VM to do it. Not sure if I could find a VM on osboxes.org
Comment 7 Minggang Li 2015-06-24 17:45:42 CEST
Got a Mageia 4.1 32bit VM. Will working on it and update you guys if done.
Comment 8 Samuel Verschelde 2015-06-24 17:51:22 CEST
(In reply to Minggang Li from comment #6)
> I need a VMware VM to do it. Not sure if I could find a VM on osboxes.org

You know, becoming a Mageia packager is not that hard and it's perfectly ok to only maintain one package, provided you maintain it well (bug fixes, security updates, etc.) 

https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
Comment 9 Minggang Li 2015-06-24 18:18:24 CEST
OK. Added a row in the Packaging apprentice candidates table.
Comment 10 nikos papadopoulos 2015-06-25 20:35:01 CEST
(In reply to Minggang Li from comment #4)
> What's the platform you are working on? I can release a 32 bit package for
> you.
> 

Now, that Mageia 5 was released, I use both 32bit and 64bit Mageia.
Of course it is not worth it making a package for just one person, but, hey,thanks for the thought.

----

Again, now, that I use Mageia 64bit, I tried to install the generic 3.2 rpm of Madedit-mod, and the fedora21 3.3 rpm. In both cases urpmi complaints about missing dependency
   libpng16.so.16(PNG16_0)(64bit))

and the installation is not possible.
Comment 11 nikos papadopoulos 2015-06-26 01:08:22 CEST
...although libpng is installed:

[bash 4.3]$ locate libpng16.so.16
/usr/lib64/libpng16.so.16
/usr/lib64/libpng16.so.16.17.0
Comment 12 Minggang Li 2015-06-26 14:08:38 CEST
Just released RPM for Mageia 4.1 32bit. The libpng is introduced by wxWidget. I think it might be better to statically link it(wxWidgets's one) instead of use the one released with different Linux distributions.

Will update the RPM of 0.3.3.
Comment 13 Minggang Li 2015-06-26 14:10:12 CEST
Different GTK is next one to be resolved.
Comment 14 Minggang Li 2015-06-26 16:52:01 CEST
(In reply to nikos papadopoulos from comment #11)
> ...although libpng is installed:
> 
> [bash 4.3]$ locate libpng16.so.16
> /usr/lib64/libpng16.so.16
> /usr/lib64/libpng16.so.16.17.0

I opened a bug https://bugs.mageia.org/show_bug.cgi?id=16219 for Mageia 5 x86 while trying to setup developing env.

I COULD NOT install gcc correctly. So, I will try X64 first.
Comment 15 Minggang Li 2015-06-27 05:03:11 CEST
x86_64 for Mageia 5 was done with builtin png/zlib.
Comment 16 Minggang Li 2015-06-30 18:16:12 CEST
0.3.3.1 released with bug fixes. x86_x64 rpm for Mageia 5 was done
Comment 17 nikos papadopoulos 2015-07-10 13:37:44 CEST
Created attachment 6832 [details]
backtrace for madedit-mod-0.3.4-1.x86_64_GTK3_Mageia5.rpm

I installed Madedit-mod 3.4-1 on Mageia 5, 64 bit. When starting the application from the command line, a pop up window shows these messages.
Comment 18 nikos papadopoulos 2015-07-10 13:39:15 CEST
Created attachment 6833 [details]
as previous attachment

After the previous pop-up, a second one shows this.
Comment 19 Minggang Li 2015-07-12 13:18:59 CEST
Did not reproduce the issue. I'll review the newly added code to see if there was any bug.
Comment 20 Minggang Li 2015-07-12 13:41:12 CEST
Hi, nikos, is it possible to try a debug build based on latest code? It will generate backtrace with line numbers. So, I can narrow down the issue. I could not reproduce it on my own VM.
Comment 21 Minggang Li 2015-07-12 17:22:43 CEST
nikos, did you set your language to anyone other than English? Would you please try to set your default language to English and run again? I doubt if it was something related to translation.
If so, I'll fix it and release 0.3.4.2 for it and other minor issues found since 0.3.4.1.
Comment 22 nikos papadopoulos 2015-07-12 19:45:38 CEST
I started again madedit-mod after I set the language to English.
It's the same behavior and back-trace.

One more issue, when choosing (Menu ->) Tools -> Change Encoding ,
the window that comes up, is smaller than it should be 
(like in the original Madedit) 
but in Madedit-mod is not "resizable" any more.
Comment 23 nikos papadopoulos 2015-07-12 19:49:39 CEST
Created attachment 6836 [details]
file encoding window, too small,  not "resizable"
Comment 24 nikos papadopoulos 2015-07-12 19:55:27 CEST
Created attachment 6838 [details]
backtrace when choosing Menu->Tools->Options (Mageia 5, 64bit, madedit-mod 3.4.1

After choosing  Menu->Tools->Options (in Mageia 5, 64bit, madedit-mod 3.4.1),
a pop up shows this backtrace,
then options window seems to work fine
Comment 25 nikos papadopoulos 2015-07-12 19:58:24 CEST
(In reply to Minggang Li from comment #20)
> Hi, nikos, is it possible to try a debug build based on latest code? 

Where can I find such an rpm?
Does it work in a normal installation of Mageia?
(note: I know nothing about coding or building rpms)
Comment 26 nikos papadopoulos 2015-07-12 20:02:11 CEST
Created attachment 6839 [details]
backtrace when choosing Menu->Tools->Word Count

Again, after choosing (Menu->)Tools->Word Count(in Mageia 5, 64bit, with madedit-mod 3.4.1)
a pop up show this message.
After that, the word count window works alright.
Comment 27 nikos papadopoulos 2015-07-12 20:18:38 CEST
Well, I just noticed that the version of the rpm package that I have been using is
   3.4-1   and not
   3.4.1   as I was declaring above!
Comment 28 Minggang Li 2015-07-13 04:58:39 CEST
(In reply to nikos papadopoulos from comment #23)
> Created attachment 6836 [details]
> file encoding window, too small,  not "resizable"

Yes. I set the size to un-resizable since the GUI looks weired and failed to re-layout after resize.
I'll look into the issue.
Comment 29 Minggang Li 2015-07-13 06:10:36 CEST
Hi, nikos,

I'll duplicate the issues to the development forum in order no to mess here. Please check the updates there.

BTW, I did not do much changes to the functions you listed here except that I added Astyle to MadEdit and add menu and config for it. So, the backtrace should be env issues since GTK3 is the first time introduced by me.

Don't be scared. :-P. I'll try to reproduce it by myself. Thanks for reporting the issues.

The debug build would be a binary that do not need to install since I've changed madedit for linux to an all in one(GTK is the only one need, which should be available on almost all linux distribution) like windows release.
Comment 30 Minggang Li 2015-07-13 06:18:38 CEST
The assertion failures are bugs of wxWidgets for GTK3. I found same complaint in other open source projects.

Eg, wxHexEditor.
https://sourceforge.net/p/wxhexeditor/discussion/648351/thread/e79380f0/

So, please don't use the GTK3 build anymore. And I'll not release it for GTK3 until wxWidgets fixed the issue.
Comment 31 Minggang Li 2015-07-13 07:58:59 CEST
nikos,

Sorry for missing the build for GTK2. I'll upload the GTK2 build which is actually 0.3.4.2 which fixed several GUI issue for Astyle.

The Astyle C/C++/C# formatter is ported from CodeBlocks. So, its mature. I just re-invented the configuration GUI which is a copycat of CB's.


Did anyone here has suggestion or features that you think MadEdit-Mod should have?

I'll continue working on enhancement for Astyle, eg, format all opened files and format all filtered files under a directly recursively.

And it's easy to integrate Html tidy into the editor but I'm not sure if anyone think it's a good idea.

Currently, it does not support plugin and maybe it's better to treat Astyle, html tidy as plugin instead of a single binary.
Comment 32 Minggang Li 2015-07-13 18:58:19 CEST
Uploaded x86_x64 for Mageia 5 and fixed almost all GUI issues.
Comment 33 nikos papadopoulos 2015-07-14 09:27:30 CEST
(In reply to Minggang Li from comment #32)
> Uploaded x86_x64 for Mageia 5 and fixed almost all GUI issues.

 attachment 6832 [details] and  attachment 6833 [details] are still valid.

The Convert File Encoding window is fixed.
There is no pop up message for Options window, and Word Count window.

Thanks
Comment 34 Minggang Li 2015-07-14 13:07:34 CEST
(In reply to nikos papadopoulos from comment #33)
> (In reply to Minggang Li from comment #32)
> > Uploaded x86_x64 for Mageia 5 and fixed almost all GUI issues.
> 
>  attachment 6832 [details] and  attachment 6833 [details] are still valid.
> 
> The Convert File Encoding window is fixed.
> There is no pop up message for Options window, and Word Count window.
> 
> Thanks

It will not do harm to your system. It said it got an empty menu name to create the menu.

So, did you see any weired menu name? Eg, blank one----with no text on it? If so, please sent me the capture of the screen.

Otherwise, I need your help to run a debug one to see what happened on your linux box because I could not reproduce it with my VM and MS Windows.
Comment 35 Samuel Verschelde 2016-10-11 20:56:07 CEST
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might want to integrate it to the distribution and maintain it for bug and security fixes.

You might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs

Comment 36 Hans Micheelsen 2024-02-03 11:35:13 CET
This bugreport is old and the project on sourceforge and on github has not been touched for nine years.

Resolution: (none) => OLD
CC: (none) => micheelsen
Status: REOPENED => RESOLVED

Comment 37 sturmvogel 2024-02-03 16:43:12 CET
madedit-mod is actively maintained on sourceforge and github. Latest release madedit-mod-0.4.20 is from June 2023

https://github.com/LiMinggang/madedit-mod
https://sourceforge.net/projects/madedit-mod/files/0.4.20/

Status: RESOLVED => REOPENED
Resolution: OLD => (none)