Files does not compile with Vala version 0.25.4

Bug #1372075 reported by Jeremy Wootten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Files
Fix Released
Undecided
Jeremy Wootten

Bug Description

With Vala version 0.25.4 there is a compilation failure with a "Invalid assignment from owned expression to unowned variable" error is generated from LocationBar.vala.

Related branches

Revision history for this message
PerfectCarl (name-is-carl) wrote :

I haven't looked at the code but I had similar issue with my code and using "var myvar = <your expression>" helped.
(instead of redeclaring the type)

Changed in pantheon-files:
status: New → In Progress
assignee: nobody → Jeremy Wootten (jeremywootten)
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

If using "var" allows compilation by both the later and earlier versions of valac then that would be preferable - I'll try it.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Unfortunately using "var" doesn't work with the GObject.get_data () function as it returns a generic type.

Changed in pantheon-files:
status: In Progress → Fix Committed
Changed in pantheon-files:
milestone: none → freya-beta2
Changed in pantheon-files:
status: Fix Committed → Fix Released
Cody Garver (codygarver)
Changed in pantheon-files:
milestone: freya-beta2 → 0.2
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.