CMakeVisitor is not recognizing "break command"

Victor Vicente de Carvalho victor.v.carvalho at gmail.com
Sat May 22 22:13:44 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100522/80698a57/attachment.html>


More information about the KDevelop-devel mailing list