[Kde-bindings] [KDE-Bindings] Qyoto compile error

Dimitar Dobrev dpldobrev at yahoo.com
Sat Jan 12 20:11:51 UTC 2013


    That's right, there was a user by the name of Arkadiusz Hnat who had the same error on Linux. After getting smokegen and smokeqt from source and compiling, he no longer had this problem. On Windows, I'd guess that you have some older smokeqt somewhere and it is this smokeqt that assemblygen uses. Otherwise I could recommend you to download the ready Windows binaries.

    Regards,
    Dimitar


________________________________
 From: Carlos Machado <metator.pt at gmail.com>
To: Dimitar Dobrev <dpldobrev at yahoo.com> 
Sent: Saturday, January 12, 2013 9:55 PM
Subject: Re: [Kde-bindings] [KDE-Bindings] Qyoto compile error
 

I tried to compile assemblygen on a Windows machine (Vista Home Premium SP2 32 bits) and i get yet another compile error:

qyoto-qtcore.cs(21273,20) : error CS0118: `QtCore.QLibrary.LoadHints' is a `property' but a `type' was expected
qyoto-qtcore.cs(30452,29) : error CS0426: The nested type `LoadHints' does not exist in the type `QtCore.QLibrary'

 I previously pulled and compiled the most recent version of smokegen and smokeqt. The reason for this error is that class QLibrary has an inner enum named LoadHint, but it's being used throughout the code as LoadHints. I checked previous versions of Qyoto and it's always named LoadHint.

I've read something a few days ago on the mailing list that it happened to some other user too...

Thanks.

Regards,

Mach



2013/1/12 Dimitar Dobrev <dpldobrev at yahoo.com>


>    Another user complained about this a few days ago but I cannot reproduce it. I don't even have an idea how it happens because these two classes are blacklisted in assemblygen. The only thing I can advise is to rebuild smokegen, smokeqt (both from source, not from the package manager) and assemblygen.
>
>
>    Regards,
>    Dimitar
>
>
>
>________________________________
> From: Carlos Machado <metator.pt at gmail.com>
>To: Dimitar Dobrev <dpldobrev at yahoo.com>; KDE bindings for other programming languages <kde-bindings at kde.org> 
>Sent: Saturday, January 12, 2013 7:30 PM
>Subject: Re: [Kde-bindings] [KDE-Bindings] Qyoto compile error
> 
>
>
>Thanks for your quick reply, Dimitar. 
>
>I've pulled the changes and i'm still not able to recompile. I'm getting another unrelated error:
>
>qyoto-qtgui.cs(179642,21) : error CS0102: The type `QtGui.QX11EmbedContainer' already contains a definition for `Error'
>qyoto-qtgui.cs(179898,21) : error CS0102: The type `QtGui.QX11EmbedWidget' already contains a definition for `Error'
>
>Regards,
>
>Mach
>
>
>2013/1/12 Dimitar Dobrev <dpldobrev at yahoo.com>
>
>    
>>
>>    Hi, I fixed this last night but forgot to push. I've just pushed it. Sorry for the trouble.
>>
>>
>>    Regards,
>>    Dimitar
>>
>>
>>
>>
>>________________________________
>> From: Carlos Machado <metator.pt at gmail.com>
>>To: kde-bindings at kde.org 
>>Sent: Saturday, January 12, 2013 6:46 PM
>>Subject: [Kde-bindings] [KDE-Bindings] Qyoto compile error
>> 
>>
>>
>>Hi,
>>
>>I'm trying to compile Qyoto on Ubuntu 12.10 (32 bits) with mono 2.10.8.1 and i'm getting an error when compiling qyoto-qtgui assembly (for the record, qyoto-qtcore compiles successfully). I pasted the complete error message below. I think this has something to do with the documentation generation.
>>
>>Thanks,
>>
>>Mach
>>
>>Unhandled Exception: System.ArgumentException: parsing "(^|( --)|\n)\n([\w :*&<>,]+)?((QAccessible(\s*&)?::)| )installUpdateHandler\s*\(\s*(?<args>(const +)?(((\w+::)?Event))|((\w+::)?UpdateHandler))(\s+\w+(\s*=\s*[^,\r\n]+(\(\s*\))?)?)?(,\s*[\w :*&<>]+\s*=\s*[^,\r\n]+(\(\s*\))?(,\s*)?)*)\s*\)\s*(const)?( \[(\w+\s*)+\])?\n\W*(?<docs>.*?)(\n\s*){1,2}((&?\S* --)|((\n\s*){2}))" - Too many )'s.
>>Parameter name: (^|( --)|\n)\n([\w :*&<>,]+)?((QAccessible(\s*&)?::)| )installUpdateHandler\s*\(\s*(?<args>(const +)?(((\w+::)?Event))|((\w+::)?UpdateHandler))(\s+\w+(\s*=\s*[^,\r\n]+(\(\s*\))?)?)?(,\s*[\w :*&<>]+\s*=\s*[^,\r\n]+(\(\s*\))?(,\s*)?)*)\s*\)\s*(const)?( \[(\w+\s*)+\])?\n\W*(?<docs>.*?)(\n\s*){1,2}((&?\S* --)|((\n\s*){2}))
>>  at System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Syntax.Parser.ParseRegularExpression (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.CreateMachineFactory (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.InitNewRegex () [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.Init () [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.Match (System.String input, System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at Documentation.TryMatch (System.String type, System.String methodName, System.CodeDom.CodeTypeMember cmm, System.String docs, Boolean markObsolete, IEnumerable`1 argTypes, Boolean completeSignature) [0x00000] in <filename unknown>:0 
>>  at Documentation+<DocumentMember>c__AnonStorey3.<>m__2 (System.String t, Int32 i) [0x00000] in <filename unknown>:0 
>>  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator36`1[System.String].MoveNext () [0x00000] in <filename unknown>:0 
>>  at System.Linq.Enumerable.Any[String] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
>>  at Documentation.DocumentMember (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeTypeMember cmm, System.String type, IEnumerable`1 docs, Boolean markObsolete) [0x00000] in <filename unknown>:0 
>>  at Documentation.DocumentMember (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeTypeMember cmm, System.CodeDom.CodeTypeDeclaration type) [0x00000] in <filename unknown>:0 
>>  at QyotoHooks.PostMethodDefinitionHooks (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeMemberMethod cmm, System.CodeDom.CodeTypeDeclaration type) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateBasicMethodDefinition (.Smoke* smoke, .Method* method, System.String cppSignature, System.CodeDom.CodeTypeReference iface) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (.Smoke* smoke, .Method* method, System.String mungedName, System.CodeDom.CodeTypeReference iface) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (.Smoke* smoke, Int16 idx, System.String mungedName) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (Int16 idx, System.String mungedName) [0x00000] in <filename unknown>:0 
>>  at ClassesGenerator.GenerateMethods (IList`1 excludedMethods) [0x00000] in <filename unknown>:0 
>>  at ClassesGenerator.Run () [0x00000] in <filename unknown>:0 
>>  at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
>>[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: parsing "(^|( --)|\n)\n([\w :*&<>,]+)?((QAccessible(\s*&)?::)| )installUpdateHandler\s*\(\s*(?<args>(const +)?(((\w+::)?Event))|((\w+::)?UpdateHandler))(\s+\w+(\s*=\s*[^,\r\n]+(\(\s*\))?)?)?(,\s*[\w :*&<>]+\s*=\s*[^,\r\n]+(\(\s*\))?(,\s*)?)*)\s*\)\s*(const)?( \[(\w+\s*)+\])?\n\W*(?<docs>.*?)(\n\s*){1,2}((&?\S* --)|((\n\s*){2}))" - Too many )'s.
>>Parameter name: (^|( --)|\n)\n([\w :*&<>,]+)?((QAccessible(\s*&)?::)| )installUpdateHandler\s*\(\s*(?<args>(const +)?(((\w+::)?Event))|((\w+::)?UpdateHandler))(\s+\w+(\s*=\s*[^,\r\n]+(\(\s*\))?)?)?(,\s*[\w :*&<>]+\s*=\s*[^,\r\n]+(\(\s*\))?(,\s*)?)*)\s*\)\s*(const)?( \[(\w+\s*)+\])?\n\W*(?<docs>.*?)(\n\s*){1,2}((&?\S* --)|((\n\s*){2}))
>>  at System.Text.RegularExpressions.Syntax.Parser.ParseGroup (System.Text.RegularExpressions.Syntax.Group group, RegexOptions options, System.Text.RegularExpressions.Syntax.Assertion assertion) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Syntax.Parser.ParseRegularExpression (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.CreateMachineFactory (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.InitNewRegex () [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.Init () [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at System.Text.RegularExpressions.Regex.Match (System.String input, System.String pattern, RegexOptions options) [0x00000] in <filename unknown>:0 
>>  at Documentation.TryMatch (System.String type, System.String methodName, System.CodeDom.CodeTypeMember cmm, System.String docs, Boolean markObsolete, IEnumerable`1 argTypes, Boolean completeSignature) [0x00000] in <filename unknown>:0 
>>  at Documentation+<DocumentMember>c__AnonStorey3.<>m__2 (System.String t, Int32 i) [0x00000] in <filename unknown>:0 
>>  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator36`1[System.String].MoveNext () [0x00000] in <filename unknown>:0 
>>  at System.Linq.Enumerable.Any[String] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
>>  at Documentation.DocumentMember (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeTypeMember cmm, System.String type, IEnumerable`1 docs, Boolean markObsolete) [0x00000] in <filename unknown>:0 
>>  at Documentation.DocumentMember (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeTypeMember cmm, System.CodeDom.CodeTypeDeclaration type) [0x00000] in <filename unknown>:0 
>>  at QyotoHooks.PostMethodDefinitionHooks (.Smoke* smoke, .Method* smokeMethod, System.CodeDom.CodeMemberMethod cmm, System.CodeDom.CodeTypeDeclaration type) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateBasicMethodDefinition (.Smoke* smoke, .Method* method, System.String cppSignature, System.CodeDom.CodeTypeReference iface) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (.Smoke* smoke, .Method* method, System.String mungedName, System.CodeDom.CodeTypeReference iface) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (.Smoke* smoke, Int16 idx, System.String mungedName) [0x00000] in <filename unknown>:0 
>>  at MethodsGenerator.GenerateMethod (Int16 idx, System.String mungedName) [0x00000] in <filename unknown>:0 
>>  at ClassesGenerator.GenerateMethods (IList`1 excludedMethods) [0x00000] in <filename unknown>:0 
>>  at ClassesGenerator.Run () [0x00000] in <filename unknown>:0 
>>  at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
>>
>>_______________________________________________
>>Kde-bindings mailing list
>>Kde-bindings at kde.org
>>https://mail.kde.org/mailman/listinfo/kde-bindings
>>
>>
>>
>>_______________________________________________
>>Kde-bindings mailing list
>>Kde-bindings at kde.org
>>https://mail.kde.org/mailman/listinfo/kde-bindings
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20130112/b18a0c0e/attachment-0001.html>


More information about the Kde-bindings mailing list