Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TOOL] elogv - ncurses elog viewer
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Sun Sep 17, 2006 3:57 pm    Post subject: [TOOL] elogv - ncurses elog viewer Reply with quote

Per chi non lo sapesse, con portage-2.1, è possibile salvare su file tutti i messaggi che emerge lascia (i classici einfo,ewarn,eerror). Ecco per esempio la mia configurazione:

Code:
su /etc/make.conf:
# Logging
PORTAGE_ELOG_CLASSES="warn error log info"
PORTAGE_ELOG_SYSTEM="save"


In questo modo tutti i messaggi di emerge vengono salvati nei /var/log/portage/elog/nomepacchetto-versione-data.log, andare a cercare i file con ls e cat però non è molto comodo, infatti un utente del forum ha pensato di scrivere un programma per semplificare la vita, elogviewer (lo trovate qui). L'ho usato per un po, ma mi sono reso conto che spesso avevo necessità di leggere quei file di log al di fuori della sessione di X (quel programma è scritto in GTK2). Quindi ho pensato di fare un tool simile, che però sfruttasse le librerie curses. E da qui nasce elogv, l'utilizzo di questo programma è semplice, per lanciarlo basta un:
Code:
# python /path/to/elogv.py

Poi dall'interno del programma è possibile impartire alcuni comandi tramite la tastiera:

  • Freccia giù - Scorre la lista dei file verso il basso di una unità
  • Freccia su - il contrario di freccia giù
  • Pag Giù - scorre la lista dei file verso il basso di 10 unità
  • Pag su - il contrario
  • f - mostra il file selezionato
  • d - ordina la lista per data, il più recente in cima
  • a - ordina la lista alfabeticamente
  • q - esce dal programma

Infine, per ottenere lo script basta il seguente comando:
Code:
$ wget http://lukam.altervista.org/elogv/elogv.py


Happy viewing :D

EDIT:

Ho inserito elogv nel gechi overlay, ramo testing, quindi consiglio di installarlo in questa maniera:

Code:
# emerge -av layman
# layman -f -o http://gechi-overlay.sf.net/layman.xml -a gechi-testing
# echo "app-portage/elogv" >> /etc/portage/package.keywords
# emerge elogv


(nella versione presente nell'overlay è stato già corretto il bug segnalato da cloc3)

EDIT 2:

Ho aperto un bug su bugzilla nella sezione dei tool di terze parti, #150733. Inoltre l'ebuild è stato aggiunto pure nell'overlay sunrise (link). Se volete la versione più recente però dovete affidarvi sempre al gechi-overlay perché su sunrise non sono io il maintainer dell'ebuild.

EDIT 3:

adesso il software è anche in portage, sotto app-portage/elogv :wink:
_________________
Running Fast!


Last edited by Luca89 on Mon Dec 04, 2006 10:10 pm; edited 4 times in total
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sun Sep 17, 2006 9:26 pm    Post subject: Reply with quote

Code:

s939 ~ # elogv.py
Traceback (most recent call last):
  File "/usr/local/bin/elogv.py", line 178, in ?
    curses.wrapper(ElogViewer)
...

....
:lol:

Paura è ?
In verità è solo colpa mia, perché non avevo definito esplicitamente la variabile PORT_LOGDIR in /etc/make.conf, copiando la configurazione che tu hai suggerito. Stranamente, il tuo programma si avvia correttamente, trovando il file elog, ma si stampa proprio al momento della lettura, quando si pigia il tasto f.
Definendo PORT_LOGDIR, il problema svanisce. Anche il tasto f funziona bene.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Sep 18, 2006 10:40 am    Post subject: Reply with quote

cloc3 wrote:
In verit� � solo colpa mia, perch� non avevo definito esplicitamente la variabile PORT_LOGDIR in /etc/make.conf, copiando la configurazione che tu hai suggerito. Stranamente, il tuo programma si avvia correttamente, trovando il file elog, ma si stampa proprio al momento della lettura, quando si pigia il tasto f.
Definendo PORT_LOGDIR, il problema svanisce. Anche il tasto f funziona bene.


Praticamente la funzione che crea lista dei file usa un path statico (/var/log/portage/elog) mentre nella funzione che legge il file uso un path dinamico caricando la variabile PORT_LOGDIR dai moduli di portage. Nella prossima versione correggerò questo bug, ti ringrazio per la segnalazione. :wink:
_________________
Running Fast!
Back to top
View user's profile Send private message
tizio
Guru
Guru


Joined: 22 Mar 2005
Posts: 365

PostPosted: Mon Sep 18, 2006 11:29 am    Post subject: Reply with quote

ottima idea... davvero comodo... però a me non funziona :(
mi visualizza la lista dei pacchetti, ma quando provo a visualizzare le info premendo 'f' spesso crasha tutto con il seguente messaggio:
Code:

Traceback (most recent call last):
  File "elogv.py", line 178, in ?
    curses.wrapper(ElogViewer)
  File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "elogv.py", line 82, in __init__
    self.show_log()
  File "elogv.py", line 174, in show_log
    self.log_win.addstr(x,curses.color_pair(normal))
_curses.error: addstr() returned ERR

e anche quando le visualizza non capisco come scorrerle...
_________________
ci son 10 tipi di persone al mondo..
chi capisce il binario e chi no
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Sep 18, 2006 11:45 am    Post subject: Reply with quote

tizio wrote:
ottima idea... davvero comodo... per� a me non funziona :(
mi visualizza la lista dei pacchetti, ma quando provo a visualizzare le info premendo 'f' spesso crasha tutto con il seguente messaggio:
Code:

Traceback (most recent call last):
  File "elogv.py", line 178, in ?
    curses.wrapper(ElogViewer)
  File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "elogv.py", line 82, in __init__
    self.show_log()
  File "elogv.py", line 174, in show_log
    self.log_win.addstr(x,curses.color_pair(normal))
_curses.error: addstr() returned ERR


Potrebbe dipendere dal fatto che hai una finestra del terminale troppo piccola.
Quote:
e anche quando le visualizza non capisco come scorrerle...

Basta che premi nuovamente il tasto f.
_________________
Running Fast!
Back to top
View user's profile Send private message
tizio
Guru
Guru


Joined: 22 Mar 2005
Posts: 365

PostPosted: Mon Sep 18, 2006 11:49 am    Post subject: Reply with quote

hai ragione... aumentando le dimensioni della finestra non mi ha più dato problemi
grazie mille e complimentoni!

ps: cosa devo settare in PORTAGE_ELOG_CLASSES per avere solo le informazioni che vengono visualizzate alla fine del merge? info?
(mi sa che sono tutte in info... ma c'è modo di visualizzare solo quelle in postinst? no eh?)
_________________
ci son 10 tipi di persone al mondo..
chi capisce il binario e chi no
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Sep 18, 2006 1:31 pm    Post subject: Reply with quote

tizio wrote:
ps: cosa devo settare in PORTAGE_ELOG_CLASSES per avere solo le informazioni che vengono visualizzate alla fine del merge? info?
(mi sa che sono tutte in info... ma c'� modo di visualizzare solo quelle in postinst? no eh?)


Credo che si possa scegliere solo in base alla classe dei messaggi (info,warn,error,log) e non in base a quando vengono stampati.
_________________
Running Fast!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 02, 2006 8:10 am    Post subject: Reply with quote

Complimenti, Luca89, gran bella utility! 8)

Per renderla ancora più "user-friendly", si potrebbe inserire nella schermata una dicitura del tipo "Press 'H' for Help", che visualizza una finestrella popup contenente gli hotkeys per le varie operazioni (leggere il log, precedente/successivo, ecc. ovvero quelle elencate nel primo post di questa discussione); altrimenti bisogna impararseli a memoria, o scriverseli da qualche parte, o aprire questa discussione :roll:

/me ha memoria difettosa :P

Ho provato a sbirciare il codice, purtroppo al momento non so dove mettere le mani per implementare questa "feature"! :oops:

[EDIT]
Ok, il bug-hunter che c'è in me ha colpito ancora! :wink:


  • Provando a scorrere le varie voci (al momento ho 15 voci), quando arrivo all'ultima mi permette di proseguire ancora, con il risultato che la selezione scompare, e, se premo 'f', il programma esce con il seguente errore
    Code:

    Traceback (most recent call last):
      File "/usr/local/sbin/elogv", line 178, in ?
        curses.wrapper(ElogViewer)
      File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
        return func(stdscr, *args, **kwds)
      File "/usr/local/sbin/elogv", line 82, in __init__
        self.show_log()
      File "/usr/local/sbin/elogv", line 154, in show_log
        self.f = file(
    IndexError: list index out of range

  • Utilizzando i tasti PAGSU-PAGGIU lo scorrimento non è "continuativo", ovvero: avendo 15 voci, se dalla prima premo PAGGIU mi si posiziona correttamente sulla 10° voce, ma se premo PAGGIU ancora non mi va all'ultima voce, e non mi funziona nemmeno PAGSU, devo spostarmi in una delle voci successive, così la selezione mi torna sù di 10 posizioni. So che è una cavolata, però renderebbe più comoda la consultazione e lo spostamento tra le varie voci
  • NOT-A-BUG :P : sarebbe moooolto comodo poter eliminare i log direttamente dal viewer (tramite un tasto, per esempio 'd'), magari mettendoci un bel warning "ATTENTO A QUELLO CHE STAI FACENDO BLABLABLA... SICURO? (S/N)"

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Oct 02, 2006 11:46 am    Post subject: Reply with quote

Scen wrote:
Complimenti, Luca89, gran bella utility! 8)


Grazie :wink:

Quote:
Per renderla ancora pi� "user-friendly", si potrebbe inserire nella schermata una dicitura del tipo "Press 'H' for Help", che visualizza una finestrella popup contenente gli hotkeys per le varie operazioni (leggere il log, precedente/successivo, ecc. ovvero quelle elencate nel primo post di questa discussione); altrimenti bisogna impararseli a memoria, o scriverseli da qualche parte, o aprire questa discussione :roll:


Si, non sarebbe male come idea, ci proverò e vedo cosa riesco a fare. Al momento è possibile trovare tutto ciò che ho scritto qui nel file README in /usr/share/doc/elogv (installando il tool dall'ebuild ovviamente).

Quote:

Provando a scorrere le varie voci (al momento ho 15 voci), quando arrivo all'ultima mi permette di proseguire ancora, con il risultato che la selezione scompare, e, se premo 'f', il programma esce con il seguente errore


Ho lavorato su questo problema e dovrebbe essere già risolto nella 0.2. Se hai ancora lo stesso problema con la 0.2 fammi sapere, la trovi nell'overlay dei gechi (nel primo post ho scritto come fare).

Quote:

Utilizzando i tasti PAGSU-PAGGIU lo scorrimento non � "continuativo", ovvero: avendo 15 voci, se dalla prima premo PAGGIU mi si posiziona correttamente sulla 10� voce, ma se premo PAGGIU ancora non mi va all'ultima voce, e non mi funziona nemmeno PAGSU, devo spostarmi in una delle voci successive, cos� la selezione mi torna s� di 10 posizioni. So che � una cavolata, per� renderebbe pi� comoda la consultazione e lo spostamento tra le varie voci


Nella 0.2 dovrebbe andare un po meglio.

Quote:

NOT-A-BUG :P : sarebbe moooolto comodo poter eliminare i log direttamente dal viewer (tramite un tasto, per esempio 'd'), magari mettendoci un bel warning "ATTENTO A QUELLO CHE STAI FACENDO BLABLABLA... SICURO? (S/N)"


Potrebbe essere interessante anche questa idea.
_________________
Running Fast!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 02, 2006 2:02 pm    Post subject: Reply with quote

Ok, la versione 0.2 dell'overlay funziona correttamente!

A questo punto attendo il rilascio di una nuova versione con nuove e interessanti funzioni :wink:
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 02, 2006 2:06 pm    Post subject: Reply with quote

Luca89 wrote:
Credo che si possa scegliere solo in base alla classe dei messaggi (info,warn,error,log) e non in base a quando vengono stampati.

Ci sarebbe la possibilità di filtrare i vari messaggi, in quanto a fianco della dicitura INFO/WARN/ecc. c'è scritto in che parte del processo di emerge (unpack/postinst/ecc.) è stato visualizzato (es. da python-2.4.3-r4)
Code:

INFO: unpack
Applying 2.4.2-readline.patch ...
Applying 2.4.3-db4.patch ...
Applying 2.4-gentoo_py_dontcompile.patch ...
Applying 2.4-disable_modules_and_ssl.patch ...
Applying 2.4-mimetypes_apache.patch ...
Applying 2.4-add_portage_search_path.patch ...
Applying 2.4.3-libdir.patch ...
Applying 2.4.1-st_flags.patch ...
Applying 2.4.3-gentoo_obsd.patch ...
Applying 2.4.3-unicodeobject.patch ...

WARN: postinst

If you have just upgraded from an older version of python you
will need to run:

/usr/sbin/python-updater

This will automatically rebuild all the python dependent modules
to run with python-2.4.

Your original Python is still installed and can be accessed via
/usr/bin/python2.x.


INFO: postinst
Linking /usr/bin/python2.4 to /usr/bin/python (relative)
Linking /usr/bin/python2.4 to /usr/bin/python2 (relative)
Linking /usr/bin/idle2.4 to /usr/bin/idle (relative)
Linking /usr/bin/pydoc2.4 to /usr/bin/pydoc (relative)
Linking /usr/bin/python-config-2.4 to /usr/bin/python-config (relative)
Linking /usr/share/man/man1/python2.4.1.gz to /usr/share/man/man1/python.1.gz (relative)
Byte compiling python modules for python-2.4 .. ...
Byte compiling python modules for python-2.4 .. ...

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Sat Oct 07, 2006 8:46 pm    Post subject: Reply with quote

Scen wrote:
A questo punto attendo il rilascio di una nuova versione con nuove e interessanti funzioni :wink:


Nella 0.3.1, c'è l'help screen funzionante e lo scrolling un po migliorato (praticamente ora se premi pag giu e mancano meno di 10 file all'ultimo elemento, il programma ti posiziona nell'ultimo anziché non fare nulla come accadeva prima). :wink:

Quote:
Ci sarebbe la possibilit� di filtrare i vari messaggi, in quanto a fianco della dicitura INFO/WARN/ecc. c'� scritto in che parte del processo di emerge (unpack/postinst/ecc.) � stato visualizzato (es. da python-2.4.3-r4)


Sono già ordinate, basta scorrere un po' eventualmente.
_________________
Running Fast!
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Sun Oct 08, 2006 12:50 pm    Post subject: Reply with quote

Bel programmino! :D

Avrei una richiesta: è possibile inserire un'opzione per cancellare tutti i log o solo il log corrente?
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Sun Oct 08, 2006 10:13 pm    Post subject: Reply with quote

fabius wrote:
Avrei una richiesta: � possibile inserire un'opzione per cancellare tutti i log o solo il log corrente?


Sto lavorando ad un comportamento simile a vim, per esempio la sequenza "d3d" eliminerà il file selezionato e i due successivi, oppure "da" li eliminerà tutti, oppure ancora "de" eliminerà dal file selezionato alla fine della lista. Insomma stay tuned 8)
_________________
Running Fast!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 09, 2006 10:38 am    Post subject: Reply with quote

Figu l'help :)

Ok, purtroppo mi si presenta un altro problemino: visualizzando il log di questi pacchetti (con altri funziona correttamente)

  • app-shells/bash-3.1_p17
  • dev-lang/python-2.4.3-r4 (N.B. il log del -r1 lo visualizza ok)
  • net-misc/openssh-4.3_p2-r5
  • sys-apps/busybox-1.2.1
  • dev-util/subversion-1.3.2-r1

il programma va in crash con il seguente errore:
Code:

Traceback (most recent call last):
  File "/usr/bin/elogv", line 289, in ?
    curses.wrapper(ElogViewer)
  File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/elogv", line 110, in __init__
    self.show_log()
  File "/usr/bin/elogv", line 270, in show_log
    self.log_win.addstr(x,curses.color_pair(normal))
_curses.error: addstr() returned ERR

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Oct 09, 2006 11:33 am    Post subject: Reply with quote

Potresti inviarmi tutti questi file? Il mio indirizzo email lo trovi nei profilo.

P.S: del python mandameli entrambi, quello che funziona e quello che non funziona

EDIT: ho appena rilasciato la versione 0.4 che contiene la nuova funzionalità per eliminare i log (guardatevi l'help o il file README per capire come funziona) e ho corretto il bug segnalato da Scen (grazie per i file :wink: )
_________________
Running Fast!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Mon Oct 09, 2006 9:29 pm    Post subject: Reply with quote

Code:

# wget http://gechi-overlay.sourceforge.net/distfiles/elogv/elogv-0.4.tar.bz2
--23:27:38--  http://gechi-overlay.sourceforge.net/distfiles/elogv/elogv-0.4.tar.bz2
           => `elogv-0.4.tar.bz2'
Risoluzione di gechi-overlay.sourceforge.net in corso... 66.35.250.209
Connessione a gechi-overlay.sourceforge.net|66.35.250.209:80... connesso.
HTTP richiesta inviata, aspetto la risposta... 403 Forbidden
23:27:39 ERRORE 403: Forbidden.

What's up? :?
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Tue Oct 10, 2006 10:39 am    Post subject: Reply with quote

Scen wrote:
What's up? :?


C'erano dei permessi sbagliati sul file, ora è apposto.
_________________
Running Fast!
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Tue Oct 10, 2006 11:27 am    Post subject: Reply with quote

Dal gechi-overlay, elogv-0.4.
Code:
# elogv
Your terminal window is too small, try to enlarge it
# stty size
56 83
E pensare che quel terminale è grande quanto la metà del mio schermo (uso wmii, il terminale è urxvtc).

E' normale tutto ciò?

Ciao e grazie del lavoro, appena posso lo provo :)

[Edit] Aggiunto terminale [/Edit]
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Tue Oct 10, 2006 12:00 pm    Post subject: Reply with quote

syntaxerrormmm wrote:
E' normale tutto ci�?


Ho aggiunto questi limiti per evitare che il software giri male (file che non si caricano e l'help che non si vede), prova a commentare queste righe (la prima è la numero 159) e vedere come va:

Code:
                # Check if the terminal window is too small
                if self.height < 28 or self.width < 111:
                        raise TermTooSmall()


Forse i limiti che ho aggiunto sono troppo alti.
_________________
Running Fast!
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Tue Oct 10, 2006 1:01 pm    Post subject: Reply with quote

Luca89 wrote:
Forse i limiti che ho aggiunto sono troppo alti.
Sull'altezza direi che meno di 28 è veramente limitante, ma tieni presente che un terminale standard dovrebbe prevedere almeno 80 colonne e mi pare che questo sia il default per cose tipo il configure del kernel (menuconfig) oppure per texconfig. Da profano, penso che adattare elogv perché renderizzi correttamente a 80 colonne sarebbe ottimo. Se poi c'è più spazio, tanto meglio.

Ciao e grazie :)
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Oct 10, 2006 2:08 pm    Post subject: Reply with quote

Piccolo "quasi" bug:

  1. seleziona il log di un pacchetto, il quale è abbastanza lungo e non ci sta tutto sulla schermata sottostante (e quindi per visualizzarlo tutto devo premere "f" più volte)
  2. mettiamo che per esempio il log completo lo vedo premendo N=3 volte "f", premo questo tasto una volta, e quindi vedo la prima parte del log
  3. mi sposto su un'altra voce di un altro pacchetto: se premo "f" per vederne il log, mi viene visualizzata la parte successiva del log del pacchetto precedentemente selezionato (e sul quale avevo premuto "f")
  4. premo "f" un'altra volta, mi viene visualizzata la parte finale del log del pacchetto precedentemente selezionato
  5. premo "f" un'altra volta, mi viene visualizzato correttamente il log del pacchetto attualmente selezionato

N.B. il punto 4 si ripete per N-1 volte (in base alla lunghezza del log).

Spero di essermi spiegato in modo chiaro :P
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Wed Oct 11, 2006 12:51 pm    Post subject: Reply with quote

Corretto, sarà disponibile nella versione 0.4.1 assieme al supporto per 80 colonne nel terminale, grazie ancora per i bug report :wink:
_________________
Running Fast!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Thu Nov 02, 2006 10:19 am    Post subject: Reply with quote

Altro bug report :wink: :

con elogv-0.4.1, se provo a visualizzare il log dell'emerge di dev-lang/perl-5.8.8-r2, il programma va in crash con il seguente errore:
Code:

Traceback (most recent call last):
  File "/usr/bin/elogv", line 380, in ?
    curses.wrapper(ElogViewer)
  File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/elogv", line 136, in __init__
    self.show_log()
  File "/usr/bin/elogv", line 309, in show_log
    self.log_win.addstr(x,curses.color_pair(normal))
_curses.error: addstr() returned ERR


@Luca89: provvedo a spedirti il log in questione a brevissimo!
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Nov 02, 2006 5:36 pm    Post subject: Reply with quote

Il problema è dovuto al fatto che nel file ci sono righe troppo lunghe e, se non entrano in larghezza nella finestra, elogv va in crash, appena ho un po di tempo vedo di sistemare la cosa, grazie ancora una volta per il bug report. :wink:
_________________
Running Fast!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
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