CMakeVisitor is not recognizing "break command"
Aleix Pol
aleixpol at kde.org
Sat May 22 23:09:53 UTC 2010
On Sun, May 23, 2010 at 12:13 AM, Victor Vicente de Carvalho <
victor.v.carvalho at gmail.com> wrote:
> Hi all,
>
> I've updated Johnattan's kdevpg-qt and somehow it's managing to crash
> KDevelop when trying to parse my grammar. Here is the output:
>
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> Visiting While ("1") ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List: Get "_depList" ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h") "_arg"
> ("/home/victor/kdev-extra/erlang/parser/erlang.g")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> List!! "_arg" = ("/home/victor/kdev-extra/erlang/parser/erlang.g") ->
> ("/home/victor/kdev-extra/erlang/parser/erlang.g",
> "/home/victor/kdev-extra/erlang/parser/erlanglexer.h")
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "if" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "NAMESPACE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DEBUG_VISITOR") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "TOKEN_TEXT") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "DUMP_INFO") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "BEAUTIFUL_CODE") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "STRICT_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> "elseif" ("/home/victor/kdev-extra/erlang/parser/erlang.g", "STREQUAL",
> "IGNORE_CONFLICTS") false
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> >> else
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> About to visit "else" ? true
> kdevelop(16646)/kdevelop (cmake support debug) CMakeProjectVisitor::visit:
> error! function not implemented "break"
>
> And goes forever until a SEGFAULT is generated. If you
> open FindKDevelop-PG-Qt.cmake, on line 138 there is a "break" command there,
> but somehow it's not being recognized under KDevelop. On cmake itself it's
> running fine.
>
> Should I file a bug report?
>
> Thanks,
>
>
> Victor
>
>
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
Yes please, report.
I'll have some cmake bug sweeping at some point when I have more time :)
(and before releasing, of course)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100523/ad2afb2b/attachment.html>
More information about the KDevelop-devel
mailing list