Hi, I'm going through the samples in the SDK and while everything is executing fine, the IDE is showing a number of reference errors for libraries/namespaces.
Error CS0234 The type or namespace name 'Simulation' does not exist in the namespace 'Microsoft.Quantum' (are you missing an assembly reference?) Measurement
Error CS0246 The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) Measurement
I don't see any errors within the Q# modules.
Any idea what's going on? I'm using Visual Studio 2017 Enterprise.
Following this documentation debugging is possible with plain VisualStudio but not with vscode. https://docs.microsoft.com/en-gb/quantum/quantum-techniques-testinganddebugging?view=qsharp-preview&tabs=tabid-vs2017#debugging
I do believe that full support of vscode is mandatory for the success of the Q# community. Most of the developers will not be necessarily experienced C# developers and will probably work on *nix based machine.1 vote
Thanks for the suggestion! We’ll add this to our list.
in VS code I expect if i do Cmd+K +F I can format the code file to my settings. However, this extension indicates that a formatter is not provided.
If you open source this it would be easy to add btw2 votes
Thanks for the suggestion! I’ve added it to our list.
If you have your visual studio 2017 templates avaiable on git hub, I am happy to add a F# one for your SDK3 votes
Thanks for the offer! We haven’t put our project templates out on GitHub yet, I’m afraid.
Because we compile Q# into C#, if you use F# for the classical driver code, it needs to be in a separate project from the Q# code. It works fine, though; we’ve done it here.
Would be great to have same capabilities as in C# (type comments, prediction, refactoring). Right now I'm not getting any with VS 2017 (qs code file is treated as abstract text tokens basically), but everything compiles and works fine7 votes
Thanks for the feedback! We’re looking into what we can do to improve the Q# development experience.
- Don't see your idea?