Olá a todos, no site do NCLua ( http://www.telemidia.puc-rio.br/~francisco/nclua/
) há 2 novos exemplos: Passagem de Valores e Consulta ao Google.
Baixei e testei ambos. O primeiro aparece um campo p digitar o texto usando o teclado numérico, mas, quando aperto ENTER, nada ocorre. Ao que tudo indica, apenas o input.lua está executando. A saída co console é a seguinte:
ANTES DE PRESSIONAR QUALQUER COISA:
(*) FusionSound/Device: ALSA 0.1 (directfb.org)
(*) FusionSound/Device: 44100 Hz, 2 channel(s), 16 bits, 25.0 ms.
(*) Direct/Thread: Running 'Sound Mixer' (OUTPUT, 1718)...
(!) DirectFB/FBDev: Panning display failed (x=0 y=0 ywrap=0 vbl=0)!
--> Invalid argument
(#) DirectFBError [Graphics IDirectFBScreen::TestConfiguration]: Not supported!
NCLFILE = /misc/ncl30/exemplo_05/main.ncl
NclLinkingConverter::createBind FOUND GOT 'get'
NclLinkingConverter::createBind FOUND GOT 'get'
Formatter::startDocument docId: 'nclClicks', interfaceId: ''.
FormatterLinkConverter::createCausalLink value = '$get', value.substr = 'get' compare with label 'onEndAttribution'' compare with label 'set'' compare with label 'get' MATCH when interface is 'text'. Thus, event 'text_2' was setted whith refEvent 'text_2'
FormatterLinkConverter::createCausalLink value = '$get', value.substr = 'get' compare with label 'onBegin'' compare with label 'set'' compare with label 'get' MATCH when interface is 'text'. Thus, event 'text_2' was setted whith refEvent 'text_2'
FormatterFocusManager::showObject Warning! focusIndex is null.
FormatterFocusManager::showObject Warning! focusIndex is null.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
Formatter::startDocument return true
DEPOIS DE APERTAR O ENTER essa linha aparece no console:
FormatterScheduler::runActionOverProperty trying to set an event that is not sleeping: 'text_2'
Eu já vi este erro antes, ocorre quando o script Lua tenta setar uma variável mais de uma vez.
Já o exemplo do Google dá um erro na linha 9 do script google.lua, na chamada a função post:
PANIC: unprotected error in call to Lua API (/misc/ncl30/exemplo_06//google.lua:9: bad argument #-1 to 'post' (string expected, got nil))
Achei que este exemplo não estava funcionando porque ainda não temos TCP disponível no STB Virtual, mas o erro parece estar em outro lugar.
Quais os motivos destes erros? Ou esses exemplos só funcionarão na próxima versão do STB Virtual?
Obrigado!
Autor: José Ricardo Júnior
88 comentários