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

Make Type Provider troubleshooting easier with better error reporting #4956

Open
smoothdeveloper opened this issue May 20, 2018 · 5 comments

Comments

@smoothdeveloper
Copy link
Contributor

Can we consider replacing e.Message with string e at this location where we report exceptions happening at design time.

https://github.com/Microsoft/visualfsharp/blob/cea9284349e6ecc803cc39b67096b83010f0416d/src/fsharp/tainted.fs#L103

The exception details would be valuable in troubleshooting issues in type providers.

@dsyme
Copy link
Contributor

dsyme commented May 21, 2018

@smoothdeveloper Yes, we can. Please submit a PR for it including updating test cases.

@smoothdeveloper
Copy link
Contributor Author

Ok thanks.

The error will look scary, but it will definitely help troubleshooting.

image

smoothdeveloper added a commit to smoothdeveloper/visualfsharp that referenced this issue May 23, 2018
@dsyme
Copy link
Contributor

dsyme commented May 30, 2018

@smoothdeveloper We'll need to think about this more - exceptions are how TPs currently raise diagnostics, and we can't attach stack traces to those diagnostics.

@smoothdeveloper
Copy link
Contributor Author

@dsyme, sorry I somehow missed your comment.

Can you expand on the meaning of "we can't attach stack traces to those diagnostics"? Is it related to how VS tooling display the errors or some policy about errors?

The PR is calling ToString on the exception so we are technically not attaching a stack trace object and just providing a string, but you probably mean it shouldn't surface even in textual form.

@cartermp cartermp added this to the 16.0 milestone Aug 13, 2018
@cartermp cartermp modified the milestones: 16.0, Unknown Aug 25, 2018
@smoothdeveloper
Copy link
Contributor Author

another issue: fsprojects/Rezoom.SQL#54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

3 participants