-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error reporting in case of object initializers #1219
Conversation
Boah. Is that like the quickest F# compiler PR ever? :-) |
only took me so long since I worked on #1220 👅 Now back to that scanner API crap that I'm supposed to fix. I needed short break. because |
@enricosada is there a chance that we print out the err and bsl files if the diff is non-zero? Would help me a lot |
We only want to show the new extra message if an "id = expr" is really present in some way. Could you add a test matrix,e.g.
and there are probably other cases to add too. For the wording I suggest:
|
@forki what test? i think was removed because bsl/diff usually are big and just a single line addition make big diff in the output of test, fsdiff was not too smart with minimize diff. |
No the issue is that I don't get to that point locally. I need to see what
|
ok got it, because <test-case name="sigs" executed="True" result="Failure" success="False" time="708.227" asserts="0">
<properties>
<property name="Category" value="typecheck/sigs"/>
<property name="Category" value="Misc02"/>
<property name="Category" value="TypeChecker"/>
<property name="Category" value="TypeCheckerSigs"/>
<property name="DIRECTORY" value="D:\j\workspace\release_ci_pa---866fd2c3\tests\fsharp\typecheck\sigs"/>
</properties>
<properties>...</properties>
<failure>
<message>
<![CDATA[
Error running command 'D:\j\workspace\release_ci_pa---866fd2c3\tests\fsharpqa\testenv\bin\diff.exe' with args 'neg15.err neg15.bsl normalize' in directory 'D:\j\workspace\release_ci_pa---866fd2c3\tests\fsharp\typecheck\sigs'. ERRORLEVEL 1 ERRORLEVEL 1
]]> doesnt help when using ci server, right. So i think the solution can be adding the err/bsl to build artifacts of jenkins/appveyor as additional test results, so can be downloaded (and diff). |
Yes that would solve it as well. Thanks
|
1fb71e4
to
a159356
Compare
@dsyme I can't find a way to distinguish the cases
So we need to find a way or we adjust the message to include both cases. |
Yes as described above I can't find a way to distinguish the two cases and need help |
e226d2a
to
6a2c866
Compare
ok found a way. @KevinRansom this is ready |
d025fad
to
38884f3
Compare
fixes #1218