D12074: Solve problem of appearance input of interpreter in interpreter's output in Lua backend

Nikita Sirgienko noreply at phabricator.kde.org
Mon Apr 23 19:03:47 UTC 2018


sirgienko added a comment.


  In D12074#252465 <https://phabricator.kde.org/D12074#252465>, @asemke wrote:
  
  > In D12074#252018 <https://phabricator.kde.org/D12074#252018>, @sirgienko wrote:
  >
  > > Well, it's better, but we still have problems:
  > >  [...]
  >
  >
  > I cannot reproduce this with lua 5.2.4. All commands in your test project file produce a correct output with my patch.
  >  F5819582: cantor_lua_multi_line.png <https://phabricator.kde.org/F5819582>
  >
  >   The problems seem to be either version dependent or there are some other timing issues involved here.
  
  
  I have `Lua 5.2.4` too. And I agree, that this is timing thing, because results time dependent.
  
  > 
  > 
  >> I think, you also should change condition `if(m_currentExpression && !m_output.isEmpty() && m_output.trimmed().endsWith(QLatin1String(">")))` in `luasession.cpp`, because sometimes lua prints `> ` **before** ends work, and as you see, lua backend finishs work with command too early and lua output added to next entries.
  > 
  > Did you try this? Does it work for you? Can you please provide the outputs in LuaExpression.cpp:70 for one of such multi-line commands where you still have problems with?
  
  Did you test with 'Reevaluate Entries automatically' option?

REPOSITORY
  R55 Cantor

REVISION DETAIL
  https://phabricator.kde.org/D12074

To: sirgienko, #cantor, asemke
Cc: #cantor, #kde_edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20180423/dd1f0d5a/attachment.html>


More information about the kde-edu mailing list