Comment 0 for bug 952316

Revision history for this message
Andrea Basso (voluntatefaber) wrote : Can't compile Scratch

I can't compile Scratch. Here's the errors:

/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:76.26-76.110: warning: unhandled error `GLib.Error'
        var enumerator = origin.enumerate_children ("standard::type,standard::name,standard::content-type", 0);
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:78.25-78.47: warning: unhandled error `GLib.Error'
        var file_info = enumerator.next_file ();
                        ^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:86.25-86.47: warning: unhandled error `GLib.Error'
            file_info = enumerator.next_file ();
                        ^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:44.9-44.37: warning: unhandled error `GLib.Error'
        destination.make_directory ();
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:52.17-52.112: warning: unhandled error `GLib.FileError'
                FileUtils.get_contents (Path.build_filename (origin.get_path (), file.get_name ()), out content);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:58.17-58.113: warning: unhandled error `GLib.FileError'
                FileUtils.set_contents (Path.build_filename (destination.get_path (), file.get_name ()), content);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/TemplateManager.vala:63.17-63.35: warning: unhandled error `GLib.Error'
                orig.copy (dest, 0);
                ^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/PluginManager.vala:226.42-226.59: error: Argument 2: Cannot convert from `Scratch.Plugins.Manager.on_extension_added' to `Peas.ExtensionSetForeachFunc'
        peas_extension_set_foreach(exts, on_extension_added, null);
                                         ^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/PluginManager.vala:247.51-247.68: error: Argument 2: Cannot convert from `Scratch.Plugins.Manager.on_extension_added' to `Peas.ExtensionSetForeachFunc'
            peas_extension_set_foreach(exts_core, on_extension_added, null);
                                                  ^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/SearchManager.vala:470.9-470.72: warning: unhandled error `GLib.Error'
        css.load_from_data("* { padding-left:0; padding-right:0; }", -1);
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/andrea/bzr/scratch/scratchcore/SearchManager.vala:480.5-480.25: warning: Granite.Widgets.ToolArrow.set_state hides inherited method `Gtk.Widget.set_state'. Use the `new' keyword if hiding was intentional
    public void set_state(bool v)
    ^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 9 warning(s)
make[2]: *** [scratchcore/main.c] Error 1
make[1]: *** [scratchcore/CMakeFiles/scratchcore.dir/all] Error 2
make: *** [all] Error 2