Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#103 terminal's first line repeats

pending
nobody
Interface (176)
3
2012-09-14
2007-12-05
Daniel
No

The first line of the embedded terminal repeats; it doesn't start on the next line, instead returning to the beginning of the first line. Only happens on first use. Not always repeatable. When it occurs, it starts at the beginning of the line after 4 characters.

Geany 0.12
Ubuntu 7.10 Gutsy
Gnome 2.20.1

Discussion

1 2 > >> (Page 1 of 2)
  • Daniel
    Daniel
    2007-12-05

     
    Attachments
  • Daniel
    Daniel
    2007-12-05

     
    Attachments
  • Daniel
    Daniel
    2007-12-05

    • priority: 5 --> 3
     
  • Daniel
    Daniel
    2007-12-05

    Logged In: YES
    user_id=1877428
    Originator: YES

    File Added: Geany_Terminal_2.png

     
  • Enrico Tröger
    Enrico Tröger
    2007-12-06

    Logged In: YES
    user_id=1117045
    Originator: NO

    Which shell are you using? Maybe it is related to the shell's configuration(e.g. prompt settings).
    Does other VTE based apps work(e.g. gnome-terminal)?

     
  • Daniel
    Daniel
    2007-12-06

    Logged In: YES
    user_id=1877428
    Originator: YES

    $echo $SHELL
    bash

    no problems with gnome-terminal, only in when embedded in geany.

     
  • Enrico Tröger
    Enrico Tröger
    2007-12-06

    Logged In: YES
    user_id=1117045
    Originator: NO

    Could you try another shell (e.g. dash)?
    Maybe it's related to the used libvte. Which version do you have(apt-cache show libvte9)?

     
  • Daniel
    Daniel
    2007-12-06

    Logged In: YES
    user_id=1877428
    Originator: YES

    libvte9
    1:0.16.9-0ubuntu3

    libvte-common
    1:0.16.9-0ubuntu3

    libvte-ruby1.8
    0.16.0-3ubuntu1

    I tried dash and couldn't repeat the problem, but that might have something to do with the fact that dash doesn't elaborate on the entry line.
    Example:
    bash:
    username@computerName:path$
    dash:
    $

    However, like I said, it only happens about 50% and only the first time I use the terminal after opening geany.

     
  • Daniel
    Daniel
    2007-12-07

    Logged In: YES
    user_id=1877428
    Originator: YES

    another screenshot, this time I didn't do anything, this is exactly what it looked like upon opening geany and clicking the terminal tab.
    btw, it correctly identifies the pwd as ~/Projects, and the 'l' is the last letter of my username.
    File Added: Screenshot.png

     
  • Daniel
    Daniel
    2007-12-07

    Upon Opening

     
    Attachments
  • Enrico Tröger
    Enrico Tröger
    2007-12-16

    Logged In: YES
    user_id=1117045
    Originator: NO

    VTE 0.16.10 was recently released. Maybe an upgrade solves the problem(I don't know what they have changed but since it is a bugfix release chances are good).

    There is already a package available for Hardy, maybe it is also installable on Gutsy:
    http://packages.ubuntu.com/hardy/libs/libvte9

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    I can reproduce this error with Geany 0.15svn. If I use bash I get something like

    sMagazin/nano$ p:~/Texte/freies

    If I change the shell to dish I get

    dee@dexus-laptop ~/T/f/nano>

    I have tried many logins more and you will se a regularity:

    sMagazin/nano$ p:~/Texte/freies
    sMagazin/OpenSolaris$ te/freies
    ne Kopie).odt_FILES$ (noch ein
    t/archives$ ptop:/var/cache/apt

    As you see the size if the same everytime. So it will prompt 31 chars of the prompt, do a carriage return, print the last char and the next 30 chars, carriage return and so on until the prompt is written completly.

    So

    dee@dexus-laptop:~/freiesMagazin/08_08/Originalartikel/turboprint$

    will become

    dee@dexus-laptop:~/freiesMagazi
    in/08_08/Originalartikel/turbop
    print$

    and so you will see

    print$ 8/Originalartikel/turbop

    I hope this helps.

    Greetings, Dee

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    I can reproduce this error with Geany 0.15svn. If I use bash I get something like

    sMagazin/nano$ p:~/Texte/freies

    If I change the shell to dish I get

    dee@dexus-laptop ~/T/f/nano>

    I have tried many logins more and you will se a regularity:

    sMagazin/nano$ p:~/Texte/freies
    sMagazin/OpenSolaris$ te/freies
    ne Kopie).odt_FILES$ (noch ein
    t/archives$ ptop:/var/cache/apt

    As you see the size if the same everytime. So it will prompt 31 chars of the prompt, do a carriage return, print the last char and the next 30 chars, carriage return and so on until the prompt is written completly.

    So

    dee@dexus-laptop:~/freiesMagazin/08_08/Originalartikel/turboprint$

    will become

    dee@dexus-laptop:~/freiesMagazi
    in/08_08/Originalartikel/turbop
    print$

    and so you will see

    print$ 8/Originalartikel/turbop

    I hope this helps.

    Greetings, Dee

     
  • Nick Treleaven
    Nick Treleaven
    2008-07-25

    Logged In: YES
    user_id=1268692
    Originator: NO

    @deedw: What version of the VTE library are you using? Does it occur with the latest VTE release? Does it occur with any other software that uses libvte - e.g. gnome-terminal, Xfce Terminal (not xfterm4)?

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    > What version of the VTE library are you using?

    I have version 0.16.13 from Ubuntu 8.04 "Hardy Heron".

    > Does it occur with the latest VTE release?

    The newest version is 0.16.14 so I think this isn't the problem because the problem was already half a yaear ago.

    > Does it occur with any other software that uses
    > libvte - e.g. gnome-terminal, Xfce Terminal (not xfterm4)?

    No, gnome-terminal works fine:

    gnome-terminal --working-directory=/home/dee/freiesMagazin/08_08/Originalartikel/nano/

    results in a new terminal with

    dee@dexus-laptop:~/freiesMagazin/08_08/Originalartikel/nano$

    at the start.

    Greetings, Dee

     
  • Enrico Tröger
    Enrico Tröger
    2008-07-27

    Logged In: YES
    user_id=1117045
    Originator: NO

    deedw, could you test the attached patch?
    I have no idea whether it changes anything or whether it makes things even worse.
    It moves the VTE widget initialization after the main window has been shown assuming the display bug is related to some sizing problems when initializing the widget.
    Maybe it helps, maybe not.
    File Added: geany_vte_1844985.patch

     
  • Enrico Tröger
    Enrico Tröger
    2008-07-27

    Possible fix

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    @eht16: Yeah, work's fine. Thank you very much! :)

    Greetings, Dee

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    Damn. :( Sorry, but it does not work everytime. The last few days I have still the same error as before but not as often as before the patch. So it may have helped a little bit but the problem still occurs.

     
  • Enrico Tröger
    Enrico Tröger
    2008-07-30

    Logged In: YES
    user_id=1117045
    Originator: NO

    The patch wasn't really good, just a quick hack.
    I made some changes in SVN r2841 based on the idea of doing stuff after the widget has been realized (i.e. really drawn on the screen).
    I was able to reproduce the described behaviour when I started Geany without the messages window shown and then made it visible after startup.
    With r2841 it seems to work but who knows :D.

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    @eht16: Hm, you made something wrong. :( If I now open geany and go to the terminal tab, I see nothing at all. Just a plain cursor but I cannot type anything. If I open "Edit -> Settings" and hit "OK" the bash prompt will appear and I can type something.

    Greetings, Dee

     
  • Enrico Tröger
    Enrico Tröger
    2008-08-01

    Logged In: YES
    user_id=1117045
    Originator: NO

    deedw, that's interesting. Every time I think we are getting near to the solution, we actually are still far away :(.

    Anyway, could you test r2849? Probably nothing will change as I only initialised the VTE state a bit more sane but who knows. And could you start this version from a console and watch the output? Once you clicked on the VTE tab in Geany, there should be a console message "VTE widget realized". After that message, the VTE is started (i.e. the shell is spawned). Don't be confused by the message, it will also appear when you close the prefs dialog, that's ok.

     
  • Logged In: YES
    user_id=1499057
    Originator: NO

    I've tested 2850 and open geany:

    dee@dexus-laptop:~$ geany
    ** INFO: debug mode built in (can't be disabled)
    ** INFO: Geany 0.15, GTK+ 2.12.9, GLib 2.16.4

    I click on the VTE tab:

    (Yes, nothing happens!)

    Click "Edit -> Preferences" and hit "Ok":

    ** INFO: VTE widget realized

    So he doesn't realize that I hit the VTE tab.

    Greetings, Dee

     
  • Enrico Tröger
    Enrico Tröger
    2008-08-04

    Logged In: YES
    user_id=1117045
    Originator: NO

    It's really strange that the VTE doesn't get realized (or at least the
    signal isn't emitted) on your system. I couldn't reproduce this.

    Could you try SVN r2851?
    I added some code to force the widget realization but I'm afraid this
    causes other issues or at least could have some side effects.

     
1 2 > >> (Page 1 of 2)