Closed Applesauce314 closed 1 month ago
im working on creating a minimal reproduction will link shortly (update: description updated with link)
you can switch between working and not working by modifying the line in Directory.Build.Props
IT appears this is a similar problem to #5965 but coming in from a different side.
@Applesauce314 , I believe that PR https://github.com/dotnet/razor/pull/9907 should address this issue and it should be available in 17.10.x builds. Please try it out and let us know what you find.
@Applesauce314 , I believe that PR #9907 should address this issue and it should be available in 17.10.x builds. Please try it out and let us know what you find.
i don't have the ability to update my version at this time, but given that the problem listed is exactly the problem I am having you can close. My apologizes, I thought i did a good job searching before I created this issue but apparently I did not.
If
<ArtifactsPath>
contains a directory traversal segment, (i.e....
or.
e.g.<ArtifactsPath>$(MSBuildThisFileDirectory)..\artifacts</ArtifactsPath>
then the Razor LSP will be unable to create document contexts and all LSP features will not function.it appears the
ProjectKey
stored in theDefaultProjectSnapshotManager._projects_needsLock
Dictionary has been normalized to remove the directory traversal segment, but theProjectKey
used to lookup the project inDocumentContextFactory.TryResolveDocument
still has the\..\
in it.the assembly version number from my Visual studio 2022 install 17.9.2
basic reproduction is at https://github.com/Applesauce314/ArtifactsPathReproIssue10611