{"id":953,"date":"2020-11-24T13:34:07","date_gmt":"2020-11-24T20:34:07","guid":{"rendered":"https:\/\/www.great-white-software.com\/blog\/?p=953"},"modified":"2020-11-24T09:34:21","modified_gmt":"2020-11-24T16:34:21","slug":"if-it-compiles-when-i-press-run","status":"publish","type":"post","link":"https:\/\/www.great-white-software.com\/blog\/2020\/11\/24\/if-it-compiles-when-i-press-run\/","title":{"rendered":"If it compiles when I press run &#8230;"},"content":{"rendered":"\n<p>Folks come to expect that if I press run and the code compiles that when I press build it will still compile.<br>And realistically why shouldn&#8217;t it ?<br>Run builds an actual application and, for the most part, the only difference was that now in a Xojo  debug run the debug app has a bit of code in it for the IDE to talk to and control and query back and forth.<\/p>\n\n\n\n<p>Other than that its &#8220;the same&#8221;<\/p>\n\n\n\n<p>Except now.<\/p>\n\n\n\n<p>With the addition of Workers what can happen is you can write code that, when you RUN, uses threads. And that means that certain code will appear to compile &#8211; although it might not do anything useful.<\/p>\n\n\n\n<p>But when you BUILD now the IDE will compile that worker in to a separate console application. <\/p>\n\n\n\n<p>Which means that your code that worked while you hit run all the time might no longer work. Or even compile.<\/p>\n\n\n\n<p>I submitted <a href=\"http:\/\/feedback.xojo.com\/case\/62045\">this bug report<\/a> about it Oct 10, 2020<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Folks come to expect that if I press run and the code compiles that when I press build it will still compile.And realistically why shouldn&#8217;t it ?Run builds an actual application and, for the most part, the only difference was that now in a Xojo debug run the debug app has a bit of code &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.great-white-software.com\/blog\/2020\/11\/24\/if-it-compiles-when-i-press-run\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;If it compiles when I press run &#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-953","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/comments?post=953"}],"version-history":[{"count":2,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/953\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/953\/revisions\/955"}],"wp:attachment":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/media?parent=953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/categories?post=953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/tags?post=953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}