{
this.queue = queue;
if ( this.target() == "") {
+ GLib.debug("missing target");
this.onCompileFail();
+
return false;
}
string[] args = {};
if (this.requestType == ValaCompileRequestType.PROP_CHANGE || this.requestType == ValaCompileRequestType.FILE_CHANGE) {
if (!this.generateTempFile()) {
+ GLib.debug("failed to make temp file");
this.onCompileFail();
return false;
}
}
var pr = (Project.Gtk)(file.project);
try {
+ pr.makeProjectSubdir("build");
this.compiler = new Spawn(pr.path + "/build", args);
} catch (GLib.Error e) {
GLib.debug("Spawn failed: %s", e.message);
+
this.onCompileFail();
return false;
}
try {
this.compiler.run();
} catch (GLib.Error e) {
+ GLib.debug("Spawn error %s", e.message);
this.onCompileFail();
return false;
}
//this.line_errors = new Gee.HashMap<int,string> ();
//this.notices = new Gee.ArrayList<ValaSourceNotice>();
}
+
+
+ public override void note (Vala.SourceReference? source, string message) {
+ if (source == null) {
+ return;
+ //stderr.printf ("My error: %s\n", message);
+ }
+
+ if (source.file.filename != this.tmpname) {
+ this.compile_notice("WARN", source.file.filename , source.begin.line, "Notice: " + message);
+ return;
+ }
+ this.compile_notice("WARN", this.filepath, source.begin.line, "Notice: " + message);
+ }
public override void warn (Vala.SourceReference? source, string message) {
//this.id = gid;
this.packages = new Gee.ArrayList<string>();
//this.hidden = new Gee.ArrayList<string>();
-
+ this.compilegroups = new Gee.HashMap<string,GtkValaSettings>();
}
// "json-glib-1.0",
- "libadwaita-1",
+ //"libadwaita-1",
//"libxml-2.0",
"posix"
cg.sources.add("src/%sApplication.vala".printf(this.name));
cg.sources.add("src/ui/ui.Window.bjs");
// rescan... not needed as it get's selected after initialization.
+ this.load();
+ var fn = this.getByPath(this.path + "/src/ui/ui.Window.bjs");
+ try {
+ fn.loadItems();
+ } catch (GLib.Error e) { } // do nothing?
+
+ fn.save();
"items" : [
{
"$ xns" : "Gtk",
+ "| vid show" : "() { this.el.show(); }",
"items" : [
{
"$ xns" : "Gtk",
// keys are not paths...
foreach(var f in this.files.values) {
+ GLib.debug("check %s = %s ? %s", path, f.path, f.targetName());
if (f.path == path || f.targetName() == path) {
return f;
}