missing file assignment on compile test
authorAlan <alan@roojs.com>
Tue, 19 Jul 2022 09:37:25 +0000 (17:37 +0800)
committerAlan <alan@roojs.com>
Tue, 19 Jul 2022 09:37:25 +0000 (17:37 +0800)
src/Builder4/WindowState.vala
src/Palete/ValaSource.vala

index 5260d61..d5f2f50 100644 (file)
@@ -917,8 +917,19 @@ public class WindowState : Object
        public void showCompileResult(Json.Object obj)
                {
                        // vala has finished compiling...
-                       GLib.debug("vala compiled");
                        // stop the spinner...
+                       GLib.debug("vala compiled Built Project: %s    Window Project %s",
+                               
+                       BuilderApplication.valasource.file == null ? "No file?" : (
+                       
+                               BuilderApplication.valasource.file.project == null  ? "No Project" : BuilderApplication.valasource.file.project.fn
+                       ),
+                       this.project != null ? this.project.fn : "No Project?"
+                       );
+                               
+                       
+                       
                        if (this.project != null && 
                        BuilderApplication.valasource.file != null &&   
                        BuilderApplication.valasource.file.project != null &&                           
index 314d1c3..efae6bb 100644 (file)
@@ -109,14 +109,15 @@ namespace Palete {
                }
                Spawn compiler;
                 
-               public bool checkStringSpawn(
-                               string contents 
+               private bool checkStringSpawn(
+                                string contents 
                        )
                {
                        
                        if (this.compiler != null) {
                                return false;
                        }
+                       this.file = file;
                        
                        FileIOStream iostream;
                        var tmpfile = File.new_tmp ("test-XXXXXX.vala", out iostream);
@@ -226,7 +227,7 @@ namespace Palete {
                        }
                        if (!(file.project is Project.Gtk)) {
                            return;
-                       }
+               }
                        var pr = (Project.Gtk)(file.project);
                        
                        
@@ -280,6 +281,7 @@ namespace Palete {
                        if (this.compiler != null) { 
                                return false;
                        }
+                       this.file = file;
             
                        var pr = (Project.Gtk)(file.project);