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.

Command line parameter --format MsBuild has no effect in response file #307

@DmitryVasilevsky

Description

@DmitryVasilevsky

Describe the bug

When "--format MsBuild" is specified in response file rather than on command line the error reporting is still in "Human Readable" format. Response files are widely used in MsBuild and Visual Studio fails to parse and report these errors correctly.

To Reproduce

  1. Create response file
    qsc.rsp:
    --input a.qs
    --format MsBuild

  2. Create Q# file a.qs with errors

  3. Run "dotnet qsc.dll build --response-files qsc.rsp"

  4. See that errors are in "Human Readable" format:

Warning QS3101:
File: C:/Users/dmitryv/Documents/Q/TryQSC/a.qs
Position: [ln 2, cn 92]
Deprecated syntax. Use "is Ctl+Adj" to denote the operation characteristics instead.

  1. Move "--format MsBuild" to command line

  2. Observe errors in MS Build format:

C:/Users/dmitryv/Documents/Q/TryQSC/a.qs(2,92): warning QS3101: Deprecated syntax. Use "is Ctl+Adj" to denote the operation characteristics instead.

Expected behavior

I expect --format switch to have the same effect on command file and in response file.

Screenshots

WrongFormat

System information

.nuget\packages\microsoft.quantum.sdk\0.10.2001.1505-alpha

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions