Hi all,
I keep getting an issue where after a few changes in a given file, Intellisense seems to flag the first line in a .cpp or .h file as the following error:
command-line error: specified directory via --current_directory option isn’t a directory: [path to project]\Intermediate\ProjectFiles\\
^ There are indeed two slashes at the end of that path
This error tends to start breaking the rest of intellisense, including showing functions/variables, keyword detection and color coding, etc. Does anyone know what could be causing this?
Steps I’ve taken to troubleshoot this:
- Searched the error online
- Installed the UnrealVS extension (
.vsixfile) – instructions: Install Visual Studio Tools for Unreal Engine | Microsoft Learn and https://docs.unrealengine.com/5.3/en-US/using-the-unrealvs-extension-for-unreal-engine-cplusplus-projects/ - Made sure I open the project from the active UE session via Tools > Open Visual Studio
Side note: Refreshing the project via Unreal’s Tools > Refresh Visual Studio Project option seems to help, but not sure how much that’s coincidence vs addressing the cause.
Screenshot of the error:

Any help is greatly appreciated!