<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Aug 2020 at 13:20, Boris Kolpackov <<a href="mailto:boris@codesynthesis.com">boris@codesynthesis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Aleksander Stankiewicz <<a href="mailto:stankiewiczal@gmail.com" target="_blank">stankiewiczal@gmail.com</a>> writes:<br>> The other thing that very slows adoption of it is missing integration with<br>
> (at least) VSCode.<br>
<br>
There is currently no integration but there is talk of writing a VSCode<br>
plugin. I will ping the person interested (Joel).<br><br></blockquote><div><br></div><div>Indeed, I have some plans to make a VSCode extension and maybe a Visual Studio (not Code) extension too (for the more advanced debugging tools).<br>Unfortunately I cannot say when I'll be able to begin work on this. So far I did some research to prepare that project, but I also need to finish another project first.<br><br>Meanwhile, VSCode is still a good tool to use with build2 projects, that's what I use almost every day working with build2. The main things to know:<br> - You can create "debug launch" json files that will help you debug executables built with build2 (or anything else) - to do that, go in the debug pannel and create a new launch action, then fill the fields. The only issue is that I didn't find yet a way to build before launching the program to test and I don't see a way to attach a debugger to tests when `b test` is used;<br> - As long as you have all the code (including configurations) of your project in the directory (or directories) open in an instance of VSCode, it will find the related source code (maybe not the include paths when you write `#include <...>` however.).<br> - Setting VScode to use the "make" syntax highlighting for `buildfile`, `build2file` `*.build` will help with editing these files (I decided to not go with a syntax highlighting for manifest files because they don't have an extension, so it might be more ambiguous);<br> - Using the console inside VSCode helps having the same experience whatever the OS (I use git-bash on windows and VSCode can be set to use it, it's similar to your usual bash on linux).<br><br>The goal of the extension would then be to automate setting up all that and generate action commands for VSCode. (and similarly for VS, but it's a bit different).</div><div>Also I hope to better inform the intellisense in VSCode which currently is poor and mostly tries to understand the code around, but fails at basic stuffs. The one in VS-not-code works better, even in directory-project mode (if you want to use VS with build2, I recommend doing that, also the debugger tools are far better).</div><div><br>A. Joël Lamotte</div><div><br></div></div></div>