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.

Downgrade entry point in library error to warning #571

Description

@rmshaffer

Is your feature request related to a problem? Please describe.
After discussion with @bettinaheim, we believe that the issue microsoft/iqsharp#266 is due to the fact that IQ# is discarding certain compiler errors and attempting to build an assembly anyway, but the compiler is not executing the rewrite steps after the error has occurred.

Describe the solution you'd like
We would like a new option in CompilationLoader.Configuration by which we can tell the compiler to execute the rewrite steps anyway, even if there were errors in compilation.

Here is the code in IQ# where this new option would be consumed:
https://github.com/microsoft/iqsharp/blob/186bacb0570ef8688ffa8dac48d6a1230169b61f/src/Core/Compiler/CompilerService.cs#L129-L138

Describe alternatives you've considered
There are other options for IQ# to work around the particular compiler errors that are being discarded, but simply compiling and then discarding the errors is the approach that requires the least low-level code manipulation on the IQ# side, and which has been working fine for the last couple of months.

Metadata

Metadata

Assignees

Labels

enhancementNew request or suggestion for an improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions