1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Visual Studio code epics-base configure files are gone |
From: | "Lorelli, Jeremy J via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Heinz Junkes via Tech-talk <tech-talk at aps.anl.gov>, Heinz Junkes <junkes at fhi-berlin.mpg.de> |
Date: | Wed, 2 Aug 2023 18:15:54 +0000 |
Hi Heinz,
It seems like the makefile plugin for vscode is broken with EPICS, it also deletes those files for me. I recommend using either the Microsoft C/C++ extension or
the clangd extension found
here. In my experience the clangd extension is faster and has some useful integrations with clang-tidy and clang-format.
These extensions require you to generate a compile_commands.json for the project you're working on. This can be done using a utility such as bear, ex: make clean && bear -- make -j$(nproc)
With the clangd plugin, you'll have to compile EPICS with clang when doing this, otherwise some #errors get hit in compilerSpecific.h
I think you are able to manually set compiler flags with Microsoft's C/C++ extension if the compile_commands.json generation doesn't work out.
- Jeremy
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Heinz Junkes via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, August 2, 2023 6:05 AM To: Heinz Junkes via Tech-talk <tech-talk at aps.anl.gov> Subject: Visual Studio code epics-base configure files are gone Hallo,
I'm also trying to get to grips with modern things like IDEs (I seem to do this every summer, but always fail and continue to use the vi). Now it is Visual Studio code's turn (there is now a Makefile-tool extension available). My problem: When I load epics-base (with git clone --recursive, which I can't do with VisualStudio code either) in the terminal and then create the link with Add Folder to Workspace in VisualCode Studio, I end up with this: (base) hactar:epics-base junkes$ git status On branch 7.0 Your branch is up to date with 'origin/7.0'. Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: configure/CONFIG.gnuCommon deleted: configure/CONFIG_ADDONS deleted: configure/CONFIG_BASE deleted: configure/CONFIG_BASE_VERSION deleted: configure/CONFIG_COMMON deleted: configure/CONFIG_FILE_TYPE deleted: configure/CONFIG_SITE deleted: configure/RELEASE deleted: configure/RULES deleted: configure/RULES.Db deleted: configure/RULES_BUILD deleted: configure/RULES_COMMON deleted: configure/RULES_EXPAND deleted: configure/RULES_FILE_TYPE deleted: configure/os/CONFIG.Common.UnixCommon deleted: configure/os/CONFIG.Common.darwin-x86 deleted: configure/os/CONFIG.UnixCommon.Common deleted: configure/os/CONFIG.darwin-x86.Common deleted: configure/os/CONFIG.darwinCommon.darwinCommon deleted: configure/os/CONFIG_SITE.Common.darwin-x86 deleted: configure/os/CONFIG_SITE.darwin-x86.Common deleted: configure/os/CONFIG_SITE.darwinCommon.darwinCommon no changes added to commit (use "git add" and/or "git commit -a”) I.e. VisualStudio deletes these files? I really don't understand what I'm doing wrong. I am starting to fear that these tools and I are not compatible :-( Heinz ------------------------------------------------------------------------------ Fritz-Haber-Institut | Phone: (+49 30) 8413-4270 Heinz Junkes | Fax (G3+G4): (+49 30) 8413-5900 Faradayweg 4-6 | VC: https://zoom.fhi.berlin/junkes D - 14195 Berlin | E-Mail: junkes at fhi-berlin.mpg.de ------------------------------------------------------------------------------ |