Build Issue with Paths.vala

Bug #806981 reported by Paspartout
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Granite
Won't Fix
Undecided
Unassigned

Bug Description

Hi!
I tried to compile granite on natty.
CMake configured correctly but as I tried to build I get this Error of valac:
granite/lib/Services/Paths.vala:55.56-55.75: error: duplicating List instance, use unowned variable or explicitly invoke copy method
  public static List<File> xdg_data_dir_folders { get; protected owned set; }
                                                       ^^^^^^^^^^^^^^^^^^^^

** (valac:8130): CRITICAL **: vala_ccode_function_add_assignment: assertion `right != NULL' failed
Compilation failed: 1 error(s), 1 warning(s)

I don't know if its a bug or not. But as you wrote in the INSTALL file i just opened the bug here.
Hope you will be able to fix this.

Thanks

Revision history for this message
Erasmo Marín (erasmo-marin) wrote :

I also have problems when I try to build it, i get this:

h4k@destructor:~/granite/build$ make
Scanning dependencies of target granite
[ 5%] Generating Widgets/ModeButton.c, Widgets/DatePicker.c, Widgets/Entries.c, Widgets/TimePicker.c, Widgets/CollapsiblePaned.c, Widgets/CompositedWindow.c, Widgets/AppMenu.c, Widgets/Welcome.c, Widgets/ToolButtonWithMenu.c, Services/Settings.c, Services/Logger.c, Services/Paths.c, Services/System.c, AppFactory.c, Application.c, Drawing/Color.c, Drawing/BufferSurface.c, Drawing/Utilities.c, config.vapi, granite.vapi, granite.h, granite_internal.h
/home/h4k/granite/lib/Widgets/DatePicker.vala:81.15-81.18: warning: Argument 5: Cannot pass null to non-null parameter type
              null, CURRENT_TIME);
              ^^^^
/home/h4k/granite/lib/Services/Paths.vala:55.56-55.75: error: duplicating List instance, use unowned variable or explicitly invoke copy method
  public static List<File> xdg_data_dir_folders { get; protected owned set; }
                                                       ^^^^^^^^^^^^^^^^^^^^

** (valac:13671): CRITICAL **: vala_ccode_function_add_assignment: assertion `right != NULL' failed
Compilation failed: 1 error(s), 1 warning(s)
make[2]: *** [lib/Widgets/ModeButton.c] Error 1
make[1]: *** [lib/CMakeFiles/granite.dir/all] Error 2
make: *** [all] Error 2

Im using vala-0.13.1

:/

Revision history for this message
Paspartout (pv-ndsmail) wrote :

It seems to be exactly the same problem.
I would fix it myself but first I have to learn more about vala.

If you wanna start developing elementary apps in natty or oneiric(daily) you can use this
ppa instead of the source: https://launchpad.net/~elementaryart/+archive/unstable-upstream

Revision history for this message
Maxwell Barvian (mbarvian-deactivatedaccount) wrote :

Confirmed working with the latest vala from unstable-upstream. I'll keep it updated if it changes.

Changed in granite:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.