{"id":258,"date":"2022-01-07T18:09:29","date_gmt":"2022-01-07T21:09:29","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=258"},"modified":"2022-07-13T16:04:57","modified_gmt":"2022-07-13T19:04:57","slug":"a-prova-de-balas","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/a-prova-de-balas\/","title":{"rendered":"Bullet proof"},"content":{"rendered":"<p>The installation of packages or \u201caddons\u201d extends the functionality of both the programming and the IDE and this is very good, however there may be problems along the way. As the Lazarus IDE was compiled with FreePascal, adding new packages will require our IDE to be recompiled. But what if the recompile fails, will we lose our IDE?<\/p>\n\n\n\n<p>The Lazarus team thought about that too and they can proudly answer \u201cno\u201d to that question. But we need to be prepared to recover from this situation, how?<\/p>\n\n\n\n<p>If when installing a package or for any other reason our IDE stops working, be aware that there is in the Lazarus installation directory a file \u201clazarus.exe\u201d that corresponds to what is in use and another \u2013 backup \u2013 called \u201clazarus.exe .old\u201d, don&#039;t you believe it? Then watch:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"830\" height=\"130\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas1.png\" alt=\"\" class=\"wp-image-115\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas1.png 830w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas1-300x47.png 300w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas1-768x120.png 768w\" sizes=\"auto, (max-width: 830px) 100vw, 830px\" \/><\/figure>\n\n\n\n<p>In case the IDE stops working, simply run the program \u201clazarus.old.exe\u201d and this message will appear:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"518\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas2.png\" alt=\"\" class=\"wp-image-116\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas2.png 543w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas2-300x286.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<p>Then click Update Info and the system will return to the previous stage when things worked.<\/p>\n\n\n\n<p>If the IDE broke because of packages you tried to install, take the opportunity to go to Packages|Install and uninstall packages to identify the newly installed packages \u2013 which were probably the problematic ones \u2013 and then remove them. Note that it is sometimes possible to identify them because they are marked with a \u201c+\u201d icon next to the names indicating that it was a failed installation attempt and they still remain marked to be installed in a next build, see them:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"458\" src=\"http:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas3.png\" alt=\"\" class=\"wp-image-117\" srcset=\"https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas3.png 835w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas3-300x165.png 300w, https:\/\/gladiston.net.br\/wp-content\/uploads\/2022\/01\/lazarus_prova_de_balas3-768x421.png 768w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/figure>\n\n\n\n<p>Mark the problematic packages for removal and confirm to have the IDE recompiled. After that, do not run \u201clazarus.old.exe\u201d anymore, but the current shortcut that points to \u201clazarus.exe\u201d.<\/p>\n\n\n\n<p>Compiling the IDE may sound strange, but when you install or uninstall certain types of packages this is what happens. The more packages you install, the heavier your IDE will be, so install packages sparingly, install only the ones you will use.<\/p>\n\n\n\n<p>If you want to see in practice how it works, watch the video:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Bulletproof - Lazarus IDE\" width=\"580\" height=\"326\" src=\"https:\/\/www.youtube.com\/embed\/naVzwD5z8Jc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>","protected":false},"excerpt":{"rendered":"<p>A instala\u00e7\u00e3o de pacotes ou &#8220;addons&#8221; estendem as funcionalidades tanto da programa\u00e7\u00e3o como tamb\u00e9m da IDE e isso \u00e9 muito bom, contudo podem existir problemas pelo caminho. Como a IDE Lazarus foi compilada com o FreePascal, incluir novos pacotes requeirer\u00e1 que nossa IDE seja recompilada. Mas e se a recompila\u00e7\u00e3o falhar, ser\u00e1 que perderemos nossa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-258","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":2,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/258\/revisions"}],"predecessor-version":[{"id":430,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/258\/revisions\/430"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}