Skip to content
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

Meaningful exception message needed from failed expression evaluation #469

Closed
andrew-vdb opened this issue Nov 27, 2015 · 3 comments
Closed

Comments

@andrew-vdb
Copy link

var session = Create(fsiExePath);
var option = session.EvalExpression(script);

An exception of type 'System.Exception' occurred in FSharp.Compiler.Service.dll but was not handled in user code

{"Evaluation failed"}

This exception message is meaningless and we need to be able to diagnose what is wrong with the script instead of receiving message "Evaluation failed"

@7sharp9
Copy link
Member

7sharp9 commented Nov 27, 2015

Errors would be sent to the output writer.

@andrew-vdb
Copy link
Author

That should be the case if my script write the error manually to the output

@dsyme dsyme added the bug label Dec 1, 2015
@dsyme dsyme changed the title Meaningful Exception Message Meaningful exception message needed from failed expression evaluation Dec 1, 2015
@dsyme dsyme added the fix ready label Dec 2, 2015
@dsyme
Copy link
Contributor

dsyme commented Dec 2, 2015

Fixed by #475. When the new nuget is published please use session.EvalExpressionNonThrowing(script)

@dsyme dsyme closed this as completed Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants