Seems to be the same problem again. Compiling

[https://github.com/StefanSalewski/gintro/blob/master/examples/gtk3/css_colored_listview.nim](https://github.com/StefanSalewski/gintro/blob/master/examples/gtk3/css_colored_listview.nim)

does only work with
    
    
    import gintro/gdk except Window
    
    
    Run

without the except we get
    
    
    /tmp/gtk3/css_colored_listview.nim(61, 10) template/generic instantiation 
of `connect` from here
    /home/stefan/Nim/lib/core/macros.nim(549, 12) Error: ambiguous identifier: 
'Window' -- use one of the following:
      gtk.Window: Window
      gdk.Window: Window
    
    
    
    Run

For gio.Application I solved that issue years ago by renaming it to 
GApplication. But renaming all conflicting data types, like GtkWindow vs 
GdkWindow?

The error message does not give a location, but I assume that the ambiguous 
identifiers are generated in the mconnect macro in 
[https://github.com/StefanSalewski/gintro/blob/master/gintro/gimpl.nim](https://github.com/StefanSalewski/gintro/blob/master/gintro/gimpl.nim).
 I would guess that it is the first parameter in macro mconnect(widget: 
gobject.Object;. Is there a way to get the module name of the passed object?

I think Araq recommended some years ago to rewrite the full macro to use no 
string manipulation, but only AST manipulation. But can you guaranty that this 
will solve the issue. If yes, than I may try it in winter, or maybe hire 
someone.

Reply via email to