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

[patch] Make comoilable on Debian 11 #291

Open
gegoxaren opened this issue Apr 30, 2023 · 2 comments
Open

[patch] Make comoilable on Debian 11 #291

gegoxaren opened this issue Apr 30, 2023 · 2 comments
Labels

Comments

@gegoxaren
Copy link

Due to Debian 11 having an outdated version of valac, some of the newer syntactic sugar does not work. This patch makes VLS compile-able on Debian 11 again.

=== modified file 'src/protocol.vala'
--- old/src/protocol.vala	2023-03-01 16:14:01 +0000
+++ new/src/protocol.vala	2023-04-30 17:17:17 +0000
@@ -145,10 +145,9 @@
          * Return a new range that includes `this` and `other`.
          */
         public Range union (Range other) {
-            var range = new Range () {
-                start = start.compare_to (other.start) < 0 ? start : other.start,
-                end = end.compare_to (other.end) < 0 ? other.end : end,
-            };
+            var range = new Range ();
+            range.start = start.compare_to (other.start) < 0 ? start : other.start;
+            range.end = end.compare_to (other.end) < 0 ? other.end : end;
             if (filename == other.filename)
                 range.filename = filename;
             return range;


Thank you.

@Prince781
Copy link
Member

A MR would be easier to deal with, if you prefer.

@Prince781
Copy link
Member

@Prince781 Prince781 added wontfix invalid Actually not an issue bug and removed wontfix invalid Actually not an issue labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants