proj-info icon indicating copy to clipboard operation
proj-info copied to clipboard

fsac.cache always in obj/

Open PhilT opened this issue 3 years ago • 3 comments

Describe the bug I've recently configured my project to build all intermediate and built artifacts into obj/ and bin/ outside of the main src/ folder through a Directory.Build.props file. However, it seems fsac.cache doesn't pick this up and still creates obj/fsac.cache in each of the src/project/ folders.

// src/Directory.Build.props
<Project>
  <PropertyGroup>
    <BaseOutputPath>../../build/$(MSBuildProjectName)/bin</BaseOutputPath>
    <BaseIntermediateOutputPath>../../build/$(MSBuildProjectName)/obj</BaseIntermediateOutputPath>
 </PropertyGroup>
</Project>

Expected behaviour

To find a build/project/obj/proj-info.cache file.

Instead, a file appears in src/project/obj/fsac.cache

Environment:

  • OS: Windows 10
  • FsAutoComplete: 0.45.4
  • Neovim: 0.5 Nightly
  • dotnet SDK version: 5

PhilT avatar May 04 '21 19:05 PhilT

This would be part of a larger effort to make the projects in general aware of intermediate output paths. Most of the offending code seems to be here, where there are hard references to the bin/obj directories of the project.

baronfel avatar May 05 '21 01:05 baronfel

I could take a stab at this but I know nothing about project cracking. Any pointers?

PhilT avatar May 05 '21 07:05 PhilT

I've run into the same issue, also using a Directory.Build.props file. I could take a look at it but it will take a while to get up to speed.

stkb avatar Jan 31 '23 14:01 stkb