FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Lister for Krusader
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Krusader Forum Index -> News
View previous topic :: View next topic  
Author Message
ckarai
Developer


Joined: 17 Sep 2003
Posts: 512

PostPosted: Mon Jun 22, 2009 8:31 pm    Post subject: Lister for Krusader Reply with quote

Now Krusader in KDE SVN contains a lister module for viewing the huge files.

Please reinstall Krusader to be able to use Lister's most functionality.

How it works:
- checks whether a text file is bigger than 10 MB (configurable), and if
yes, then Lister is used instead of KDE's default viewer
- the old hex viewer was decomissioned, Krusader calls Lister to view
hex files as well
- lister never loads the whole file into memory, just a little part of
it, and uses caching for faster scrolling
- remote files are downloaded, but during the download, viewing the
downloaded part is possible
- if a file constantly changes, then it can also be viewed, lister will
always see its current state

Please test is, as Lister is huge (>= 2400 lines), so there can be many
bugs in it.

Lister also provides searching (hex, regexp, as well), printing,
changing the encoding,...

Thanks,

Csaba
Back to top
View user's profile Send private message
sysitos



Joined: 16 Jul 2008
Posts: 77
Location: Germany

PostPosted: Tue Jun 23, 2009 11:21 pm    Post subject: Reply with quote

Hi,

the KDE SVN does mean, that the old command:
svn co http://krusader.svn.sourceforge.net/svnroot/krusader/trunk/krusader_kde4 doesn't work anymore to get the actual SVN version?

So please can somebody help me, what must I do to get only the new SVN of krusader without the other KDE extragear stuff

Thanks. Sysitos
Back to top
View user's profile Send private message
sysitos



Joined: 16 Jul 2008
Posts: 77
Location: Germany

PostPosted: Wed Jun 24, 2009 1:34 am    Post subject: Reply with quote

And I do it again, answer my question

Krusader is now in KDE4 extragears repo and the new command to get the SVN is:

svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/utils/krusader

The new svn builds with some warning messages.

It seems, that the svn is now complete in english, no more german translations anymore (yet?).

Found a bug in the listener. Trying to search the new line with regexp (\n, but same problem for other regexps like ^) in a file, but Krusader crashes instantly:(

Btw, thanks for the new quick listener.
CU sysitos
Back to top
View user's profile Send private message
ckarai
Developer


Joined: 17 Sep 2003
Posts: 512

PostPosted: Wed Jun 24, 2009 7:09 am    Post subject: Reply with quote

Hi,

the translations are separated in the KDE repository. I don't know how to get them.

I can't reproduce the crash in Lister. Can you please send the trace?
Or please try building Krusader from scratch.

BTW you'll never be able to search '\n'. Krusader splits the file by new lines, and searches in the lines (which no longer contain \n).

Use abc$ instead.
Back to top
View user's profile Send private message
sysitos



Joined: 16 Jul 2008
Posts: 77
Location: Germany

PostPosted: Wed Jun 24, 2009 11:16 am    Post subject: Reply with quote

Hi Csaba,

it was my hope to search for new lines with \n (but that's another story )
Rebootet the system (there were some kde updates) to ensure no other problems. Krusader was built from scratch. (Removed the old svn from krusader page before do a new svn from kde page).

Reproduced the bug while searching for \n in listener module. No such problem with the other modules.

To reproduce this, try to search for \n (I known now, doesn't make sense for regexp, but shouldn't crash Krusader, even If I search without regexp) and hit the next button. Ok, I've tested some different text files and Krusader does only crash, if the background of the search field (with "\n" typed in) is still white and than crashs with hitting the next button (or I press Enter). For smaller files, I see some kind of progression bar for searching the file, for bigger files Krusader does crash. Have here a 700kB and a 10 MB file, both do crash, but smaller files (680 KB and smaller tested) don't crash at all.

Here is some output from the KDE Crashmanager. I don't have all the debug packages installed at the moment, so it wouldn't be much helpfull ;-( (Will do this, if that does help, but the laptop isn't the fastest one.)

Cu sysitos

Application: Krusader (krusader), signal: Segmentation fault
[KCrash Handler]
#6 0xb61cb8eb in ?? () from /usr/lib/libQtCore.so.4
#7 0xb61cbc8f in ?? () from /usr/lib/libQtCore.so.4
#8 0xb61c7550 in QTextDecoder::toUnicode(char const*, int) () from /usr/lib/libQtCore.so.4
#9 0x0815c717 in Lister::slotSearchMore (this=0xacfe638) at /home/mre/source/krusader/krusader/KViewer/lister.cpp:1544
#10 0x0815d2ab in Lister::qt_metacall (this=0xacfe638, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfa12f08) at /home/mre/source/krusader/build/krusader/KViewer/moc_lister.cpp:216
#11 0xb61abdc8 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xb61ad552 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb61b1237 in ?? () from /usr/lib/libQtCore.so.4
#14 0xb61b135c in ?? () from /usr/lib/libQtCore.so.4
#15 0xb61a626f in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#16 0xb64cf69c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0xb64d799e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb7681b9d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0xb6195adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0xb61c5176 in ?? () from /usr/lib/libQtCore.so.4
#21 0xb61c1600 in ?? () from /usr/lib/libQtCore.so.4
#22 0xb5802ea8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb580641b in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb5806598 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb61c1558 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0xb656f975 in ?? () from /usr/lib/libQtGui.so.4
#27 0xb61940fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0xb619453a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0xb61969e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#30 0xb64cf517 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#31 0x0808e9a4 in main (argc=5, argv=0xbfa13e64) at /home/mre/source/krusader/krusader/main.cpp:268
Back to top
View user's profile Send private message
anli



Joined: 04 Feb 2009
Posts: 15

PostPosted: Wed Jun 24, 2009 12:58 pm    Post subject: Reply with quote

sysitos wrote:
Krusader is now in KDE4 extragears repo and the new command to get the SVN is:

svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/utils/krusader

Must we use bugs.kde.org instead of SF bug tracking now?
Back to top
View user's profile Send private message Send e-mail
dirk
Webmaster & i18n Coordinator


Joined: 24 Mar 2002
Posts: 1339
Location: Germany

PostPosted: Wed Jun 24, 2009 2:12 pm    Post subject: Reply with quote

anli wrote:
Must we use bugs.kde.org instead of SF bug tracking now?

We stick to the SourceForge bugtracker for now. The website will soon be relaunched and will have trac integrated, where the bugtracker is just one component.
Back to top
View user's profile Send private message Visit poster's website
dirk
Webmaster & i18n Coordinator


Joined: 24 Mar 2002
Posts: 1339
Location: Germany

PostPosted: Wed Jun 24, 2009 2:17 pm    Post subject: Reply with quote

sysitos wrote:
It seems, that the svn is now complete in english, no more german translations anymore (yet?).

That's due to the structure used in the KDE repository. Translations and docs are separated from the core application. We'll provide some instructions on how to install them soon. To be honest, i don't know how to do it myself at the moment.
Back to top
View user's profile Send private message Visit poster's website
ckarai
Developer


Joined: 17 Sep 2003
Posts: 512

PostPosted: Wed Jun 24, 2009 6:18 pm    Post subject: Reply with quote

Fixed the crash in Lister.

Sometimes the cache reported wrong number of the available bytes.
This crash had nothing to do with '\n'.
Back to top
View user's profile Send private message
sysitos



Joined: 16 Jul 2008
Posts: 77
Location: Germany

PostPosted: Wed Jun 24, 2009 8:28 pm    Post subject: Reply with quote

@ Csaba, lister doesn't crash here anymore. Thanks for the quick bug hunting.

@Dirk, if you will get informations for the translated versions of krusader, don't wait to inform us

CU sysitos
Back to top
View user's profile Send private message
dirk
Webmaster & i18n Coordinator


Joined: 24 Mar 2002
Posts: 1339
Location: Germany

PostPosted: Wed Jun 24, 2009 11:10 pm    Post subject: Reply with quote

sysitos wrote:
@Dirk, if you will get informations for the translated versions of krusader, don't wait to inform us

Of course.

As a quick hack, this worked for me to get the german l10n:
Code:
$ wget http://websvn.kde.org/*checkout*/trunk/l10n-kde4/de/messages/extragear-utils/krusader.po
$ msgfmt krusader.po -o krusader.mo
$ su -c "cp krusader.mo /usr/share/locale/de/LC_MESSAGES/"
Back to top
View user's profile Send private message Visit poster's website
GregC



Joined: 05 Jun 2009
Posts: 8

PostPosted: Fri Jun 26, 2009 10:49 am    Post subject: Reply with quote

This is maybe a naive question, but how much work would be required to make a KPart out of the Lister so other KDE programs (like Dolphin) could use it? The added value for Krusader would be that other KDE developers might add something to it as well
Back to top
View user's profile Send private message
ckarai
Developer


Joined: 17 Sep 2003
Posts: 512

PostPosted: Fri Jun 26, 2009 2:01 pm    Post subject: Reply with quote

Lister is a KPart.

But it's outside of KDE (not registered into the mime handlers).
Back to top
View user's profile Send private message
GregC



Joined: 05 Jun 2009
Posts: 8

PostPosted: Sat Jun 27, 2009 5:39 pm    Post subject: Reply with quote

ckarai wrote:
Lister is a KPart.

Aha

Well I hope if some other KDE project needs it (Dolphin comes to mind, for those hackers not using Krusader), they will find it here and use it in their own projects.. I had to solve some problem a while ago that involved inspecting big files and found no obvious lister candidate for Linux - so having it now, and in Krusader even, is great news!
Back to top
View user's profile Send private message
sysitos



Joined: 16 Jul 2008
Posts: 77
Location: Germany

PostPosted: Sat Oct 17, 2009 3:11 pm    Post subject: Reply with quote

Are there any news regarding compiling the SVN with german translation? Besides the quick hack from dirk?

Thanks sysitos
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Krusader Forum Index -> News All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group