Recent

Author Topic: [SOLVED] Problemas com caracteres duplicados nos componentes  (Read 3431 times)

guest61674

  • Guest
[SOLVED] Problemas com caracteres duplicados nos componentes
« on: February 14, 2018, 10:38:22 am »
Estou com problemas ao instalar o Lazarus no Linux Debian 9.3.
No Ubuntu tudo funcionava direito. Baixei a versão Trunk (1.9), compilei e está com o mesmo erro. Se no Ubuntu funcionava bem então deve ser um erro de bibliotecas instaladas ou faltantes. Estou usando o Debian agora no meu notebook, muito trabalho para fazer essa mudança.
Ambiente gráfico do Debian é o LXFE.

O Problema:
Todo Caption ou Text dos componentes, quando vou digitar fica em dobro, ex.:
Digito a letra E, fica EE. Se teclo Backspace ele apaga os dois de uma vez. Já no Editor de código funciona normalmente, é só nos componentes. O engraçado que tanto no designer quanto em runtime é a mesa coisa.
Desconfio do ambiente LXFE, mas e agora? preciso de uma versão Linux leve, e do Debian, pelo menos até a versão final do Ubuntu 18.04 ficar pronta (em Abril).
Estou pensando em instalar outra ferramenta de programação e abandonar o Lazarus, mas resolvi ter paciência e ver se alguém aqui já passou por isso e tenha uma solução, porque sempre programei em Object Pascal desde a versão 1 do Delphi e ter que aprender outra linguagem vou perder muito tempo. Me ajuda aí pessoal....
Se alguém souber escrever em inglês poderia traduzir este texto para os gringos poderem responder eu agradeceria muito, meu inglês é muito ruim, o Tradutor do Google não traduz corretamente, etc.....

Grato

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Problemas com caracteres duplicados ao digitar
« Reply #1 on: February 14, 2018, 11:24:33 am »
Maybe the thread in the link below can help:

(Pressing any button (e.g. letter) types it twice in 1.8.0)
https://forum.lazarus.freepascal.org/index.php/topic,39213

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Adapted translation:
------------------------------------
Lazarus 1.9 (trunk version) on Debian Linux 9.3 (LXDE) - Problems with duplicate characters when typing

I'm going to hard times when installing Lazarus 1.9 (trunk version) on Debian Linux 9.3 (LXDE).
Everything worked fine in Ubuntu.
I have downloaded Lazarus 1.9 (trunk version) on Debian Linux 9.3 (LXDE), then I have compiled it and it has the below error.
Is it a bug or am I missing some libraries?
I'm using Debian now on my notebook. A lot of work to migrate from Ubuntu to Debian.
Debian's graphical environment is the LXFE.

The problem:
Every character I type in Caption or Text properties of components is double typed, for example:
I type "E", it shows "EE".
If I type Backspace it will delete both characters at once.
In the Code Editor it works normally, but the problem is just on the components.
The funny thing is that both designer and runtime have the same problem.
I suspect the problem is on the LXDE environment, but I need a lightweight Linux version, and Debian is ready while new final version of Ubuntu 18.04 will be available only in April.

I'm thinking of installing another programming tool and abandoning Lazarus, but I decided to be patient and see if anyone here has gone through this and have a solution, because I've always programmed in Object Pascal since Delphi version 1 and have to learn other language means waste a lot of time.
Help me, guys.
If someone knows how to write in English and could translate this text, I would appreciate it very much, my English is very poor and Google Translator does not translate correctly, etc...

Thanks.
------------------------------------

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Problemas com caracteres duplicados ao digitar
« Reply #3 on: February 14, 2018, 12:29:57 pm »
Thanks Handoko for answering before the translation.

guest61674

  • Guest
Re: Problemas com caracteres duplicados ao digitar
« Reply #4 on: February 14, 2018, 02:26:03 pm »
Não surtiu efeito a ajuda acima, como citei, não é no Editor de código e sim nos componentes.
A solução que encontrei (mas não quero porque tenho de usar o ambiente Gnome) foi assim:

Terminal:

su
tasksel


Selecionar a opção Gnome, Ok e aguardar a instalação. Reiniciar e selecionar a opção:
GNOME sobre wayland
Fazer o login, executar o Lazarus 1.8.0 ou Trunk (1.9) e voltou a funcionar perfeito.

Observação:
Se escolher a opção: GNOME ou GNOME clássico ou X11 ou Sessão XFCE não funciona.

Desinstalei o GNOME e instalei apenas o pacote wayland, reiniciei e não surtiu efeito, o erro continua. Deve ser algum pacote que tem no GNOME que corrige esse erro, vou fazer o processo pelo Synaptic e ver os pacotes que ele instala e verificar os prováveis pacotes. Quando eu conseguir eu informo aqui no fórum. Se alguém souber de algo mais que possa ajudar eu agradeço.

blz.

guest61674

  • Guest
Re: Problemas com caracteres duplicados ao digitar
« Reply #5 on: February 14, 2018, 03:13:34 pm »
Só uma outra observação importante sobre o Lazarus no Ubuntu 18.04, será que vai funcionar direito? Será que os desenvolvedores sabem disso já:

https://www.diolinux.com.br/2018/02/canonical-anuncia-ubuntu-1804-lts-xorg.html

Vai voltar ao X.org em vez do wayland

guest61674

  • Guest
Re: Problemas com caracteres duplicados ao digitar
« Reply #6 on: February 15, 2018, 05:46:31 pm »
Solução para quem usa Lubuntu ou Debian com LXDE, etc....

O problema foi solucionado e o Lazarus volta a funcionar normalmente, eja esse vídeo explicando como fazer:

https://www.youtube.com/watch?v=mdP9c_gcDo0&feature=youtu.be

Depois que eu reinstalei o Ubuntu 18.04 para poder programar normalmente e fui procurar outras coisas descobri esse vídeo sem querer, é brincadeira... porém, deixo aqui para outras pessoas que passarem por esse problema. O Vídeo está no idioma português - Brasil.

Se alguém achar interessante em traduzir para outra linguagem fica a dica.

blz

 

TinyPortal © 2005-2018