Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

In Python+Q# notebooks, error messages point to line numbers off-by-one #731

Description

Describe the bug
In Python+Q# notebooks (both local and hosted on Azure Quantum), error message points to the line number off-by-one due to %%qsharp magic command taking up the first line. (Same as microsoft/QuantumKatas#658.)

To Reproduce
Run any %%qsharp cell with a compilation error in it.

Expected behavior
Displayed line numbers should match the ones where the error is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-KernelIssue relates to the IQ# kernel.Area-PythonIssue relates to the Python client for the IQ# kernel.Kind-BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions