microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
682 stars 171 forks source link

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

Open tcNickolas opened 3 years ago

tcNickolas commented 3 years ago

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

bettinaheim commented 3 years ago

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?

tcNickolas commented 3 years ago

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.