Skip to content
This repository was archived by the owner on Nov 11, 2018. It is now read-only.
This repository was archived by the owner on Nov 11, 2018. It is now read-only.

build error: overriding method LineContainer.get_adjustments' is incompatible with base method Mx.Scrollable.get_adjustments' #198

Closed
@jokeyrhyme

Description

@jokeyrhyme

Hi.

I'm attempting to build mx and finalterm for ArchLinux using the AUR packages:
https://aur.archlinux.org/packages/mx-git/
https://aur.archlinux.org/packages/finalterm-git/

mx builds fine. However, I get an error building Final Term. I've logged the builds of both here: https://gist.github.com/jokeyrhyme/6646520

For convenience, the specific error is:

/var/abs/local/finalterm-git/src/finalterm/src/TerminalView.vala:561.2-561.28: error: overriding method `LineContainer.get_adjustments' is incompatible with base method `Mx.Scrollable.get_adjustments': incompatible type of parameter 1.
    public void get_adjustments(out unowned Mx.Adjustment? hadjustment, out unowned Mx.Adjustment? vadjustment) {
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Examining the source for both mx and FinalTerm, it looks like the get_adjustments method is supposed to have 3 arguments, but when FinalTerm overrides it, it only declares 2 of them.
https://github.com/p-e-w/finalterm/blob/master/src/TerminalView.vala#L561
https://github.com/clutter-project/mx/blob/master/mx/mx-scrollable.h#L61

I don't know enough about Vala to go about fixing this myself. If there's anything further I can do to help resolve this, please don't hesitate to ask. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions