qsharp-compiler icon indicating copy to clipboard operation
qsharp-compiler copied to clipboard

IntelliSense marks all callables in VS 2019 as "already exists"

Open tcNickolas opened this issue 4 years ago • 2 comments
trafficstars

Describe the bug

When I open a project in VS 2019, IntelliSense often errorneously underlines all callables with red squiggles, claiming "QS6001 A function or operation already exists". The build passes (correctly), since these callables are defined only once.

To Reproduce

I cannot pinpoint what exactly causes this; it often happens if I've worked with this project before, and deleting bin and obj folders before restarting VS sometimes helps, but right now I'm looking at a restarted VS for which it didn't. QDK version in the project not matching extension version might factor in

Expected behavior

IntelliSense only reporting callables that are indeed duplicates.

System information

  • Extension 0.20.2110.171573
  • .NET Core 3.1.415
  • VS 16.11.5

tcNickolas avatar Nov 12 '21 19:11 tcNickolas

This is tricky without repro steps - I haven't seen this, but something similar is a known issue when target packages are used. You are not using target packages, are you?

bettinaheim avatar Nov 19 '21 02:11 bettinaheim

I'm using regular kata projects, and I get this behavior on multiple ones - just opened the TruthTables kata from a fresh repository clone (so no old builds of mismatched versions hanging around) and I'm getting this again.

On Thu, Nov 18, 2021 at 6:18 PM bettinaheim @.***> wrote:

This is tricky without repro steps - I haven't seen this, but something similar is a known issue when target packages are used. You are not using target packages, are you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/qsharp-compiler/issues/1256#issuecomment-973665797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNFAADFD37OFBVEHPXYXBTUMWXW5ANCNFSM5H5SNEVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tcNickolas avatar Nov 19 '21 03:11 tcNickolas