Replies: 5 comments 11 replies
-
|
At the moment I am trying to figure out how the !import command works... Tried |
Beta Was this translation helpful? Give feedback.
-
|
Looking into this now.. The import should be handled automatically for the alias. So this is a bug. Also, I noticed the initial failed assertion |
Beta Was this translation helpful? Give feedback.
-
|
Just pushed a fix for this. It should automatically add imports for conflicting method alias types now. |
Beta Was this translation helpful? Give feedback.
-
|
I made the version changes you suggested to the packages. There is no longer a dash separating the version number and any -0 is removed, so it should end up with just the major version number for most cases. I overrode it using the Going to work on getting older versions of Gtk working next. |
Beta Was this translation helpful? Give feedback.
-
|
I found the easiest way to get dub to build the right package is to change the dub.json of the application I'm trying to build to specify the path to the library, instead of the version. Like so: {
"name": "gid-gtk4-examples",
"description": "giD Gtk 4 examples",
"dependencies": {
"gid:gtk4": {"path": "../gid"}
}
}You will likely need to remove the dub.selections.json file and may need to mess with the dub cache. I sometimes end up nuking ~/.dub/packages/gid* when it still doesn't do what I want. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I am very close to have a working GtkSource as well. I encountered the following problem though:
The generated code looks like:
If I manually add
import Gtk.Widget;to the generated file it works without issues. I was looking if there was a way to instruct gidgen to generate this import line but failed ...Beta Was this translation helpful? Give feedback.
All reactions