Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘boxedFlagsType’ is not a (visible) method of class ‘BoxedFlags’ #369

Open
KSPAtlas opened this issue Nov 14, 2021 · 2 comments
Open

Comments

@KSPAtlas
Copy link

I'm trying to install gi-gtk, but on package gi-glib, i get this error:

GI/GLib/Flags.hs:509:5: error:
    ‘boxedFlagsType’ is not a (visible) method of class ‘BoxedFlags’
    |
509 |     boxedFlagsType _ = c_g_io_condition_get_type
    |     ^^^^^^^^^^^^^^

Is this a bug or something I can fix?

@garetxe
Copy link
Collaborator

garetxe commented Nov 27, 2021

Hi!

Thanks for the report. I would need some more information to diagnose what's going on. Perhaps you are trying to install an old version of the bindings?

How are you attempting to build the bindings?

Thanks!

@rpglover64
Copy link

I just ran into this. I think I know the cause and a possible solution.

  • Yes, this is the result of trying to install a really old gi-cairo. Like, pre-1.0 old
  • The reason that happens is that the cabal solver rejects all the post-1.0 versions due to pkg-config not finding things.
  • In my case, the final step of the problem was solved by sudo apt install libgirepository1.0-dev
  • The difficulty for me was that I had to figure out which OS packages to install one at a time (when cabal dependency solving came up with something ridiculous or outright failed)

The most important step of the solution is documenting which OS packages are needed for the entire dependency tree, and maybe giving the command line for some common distributions. If possible, it might also be good to deprecate some of the older versions on hackage so cabal constraint solving doesn't try them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants