-
Notifications
You must be signed in to change notification settings - Fork 179
build error: overriding method LineContainer.get_adjustments' is incompatible with base method
Mx.Scrollable.get_adjustments'
#198
Comments
Thank you for the bug report. The first of the 3 arguments in https://github.com/clutter-project/mx/blob/master/mx/mx-scrollable.h#L61 is actually "this", so in vala that would transform into 2 arguments (because vala uses the syntax In the .vapi file on my machine (for Mx 1.4) the method signature looks as it does in TerminalView.vala, but sure enough, in the current valadoc it doesn't ( This is an ugly problem, because if I change the signature the same error will show up on my and many other systems instead. I see only two ways to solve this problem:
|
Should I try this again with Mx 1.4? |
Yes, please! |
Urgh, I'm getting weird compile errors related to my headers for glib-2.0. I'm not sure Mx 1.4 is compatible with my system.
I don't know what's different going from Mx 1.4 to 2.0, but I think it might be better for me to wait until the ArchLinux maintainer for this gets a look. Is it infeasible to support both versions of Mx? Is moving to Mx 2.0 (when it is stable) on the roadmap? |
https://github.com/clutter-project/mx/releases currently lists 1.4.7 as the latest release. I assume 2.0 will come out of the current unstable master? As far as that goes, yes, I plan to move to the Mx master as soon as it becomes a release, because clutter-project/mx#88 will allow for a drastic simplification of TerminalView.vala. |
I add mx stable version in archlinux aur so we can use finalterm again! |
@GGRn2 's AUR package for MX 1.4 is here: https://aur.archlinux.org/packages/mx/ The FinalTerm AUR package is here: https://aur.archlinux.org/packages/finalterm-git/ Thanks! I'll close this now. |
Yep, i just add it :). Still wait for the finalterm maintainer to update finalterm Aur package for automatic build. |
One can also fix the signature with the following patch and use MX-2.0: diff --git a/src/TerminalView.vala b/src/TerminalView.vala
index 0bfa3eb..c8002a7 100644
--- a/src/TerminalView.vala
+++ b/src/TerminalView.vala
@@ -572,7 +572,7 @@ public class LineContainer : Clutter.Actor, Mx.Scrollable {
public Mx.Adjustment vertical_adjustment { owned get; set; default = new Mx.Adjustment(); }
- public void get_adjustments(out unowned Mx.Adjustment? hadjustment, out unowned Mx.Adjustment? vadjustment) {
+ public void get_adjustments(out unowned Mx.Adjustment hadjustment, out unowned Mx.Adjustment vadjustment) {
// TODO: This works, and takes care of all the owned/unowned difficulties,
// but is a hack nonetheless (Vala seems to implicitly create these variables)
hadjustment = _horizontal_adjustment; |
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:
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!
The text was updated successfully, but these errors were encountered: