Skip to content

QasmStd Items aren't Recognized in Dependencies #2385

@ScottCarda-MS

Description

@ScottCarda-MS

Describe the bug

While QasmStd items are recognized when righting code for a project, they are suddenly not recognizable when another project uses the first as a dependency.

To Reproduce

Steps to reproduce the behavior:

  1. Create Q# project Foo, which uses any QasmStd item, like QasmStd.Convert.BoolAsBigInt:
import QasmStd.Convert.BoolAsBigInt;
operation FooOp() : Unit {
    BoolAsBigInt(true);
}
export FooOp;
  1. Create Q3 project Bar, which uses Foo as a dependency:
{
  "dependencies": {
    "Foo": {
      "path": "../Foo"
    }
  }
}
import Foo.FooOp
operation Main() : Unit {
    FooOp();
}
  1. Try to run Main from Bar.
  2. You should see an error message about how BoolAsBigInt is not found.

Expected behavior

Should be able to use dependencies that make use of QasmStd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions