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

Cannot parse smallest possible int64 value #86

Closed
msoeken opened this issue Jul 26, 2019 · 1 comment
Closed

Cannot parse smallest possible int64 value #86

msoeken opened this issue Jul 26, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@msoeken
Copy link
Member

msoeken commented Jul 26, 2019

Describe the bug

The smallest possible int64 value -9223372036854775808 cannot be parsed into a Q# Int type.

To Reproduce

A test case to trigger the bug is described in this branch:

https://github.com/msoeken/qsharp-compiler/blob/msoeken/minint-bug/src/QsCompiler/Tests.Compiler/SyntaxTests.fs#L171

Expected behavior

The parser returns an Int value with the smallest integer value.

System information

Reproduced on master, other system information seems to be irrelevant for this bug.

Additional context

Maybe the sign is parsed separate from the int value, since the largest int64 value is 9223372036854775807.

@msoeken msoeken added the bug Something isn't working label Jul 26, 2019
@bettinaheim
Copy link
Contributor

Hehe, yes, indeed, I parse the sign separately... That's one edge case to overlook. Thanks for pointing it out!

@bettinaheim bettinaheim self-assigned this Jul 26, 2019
ricardo-espinoza added a commit that referenced this issue Aug 13, 2020
…icts (#566)

This change removes the dependency on NuGet.ProjectModel from the LanguageServer project and instead relies on the installed version of the binary. This change intends to avoid the dependency between the .Net Core SDK version and NuGet in MSBuildLocator. See issue #86 for additional reference.
(microsoft/MSBuildLocator#86)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants