Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

DesignTime: null-reference exception after a short time #262

Closed

Description

@0x53A

I successfully built my project:
image

after a short period, the first usage of the SqlCommandProvider gets errors at design time (without any code changes).
image

Subsequent builds also pass.

Intellisense for this one instance fails (e.g. I can't dot into members, but for other instances it still works:

image

Here I can't do anything with getState, but getCondition works as expected.

Is there any way to get a callstack?

I have VS2015.3

<package id="FSharp.Data.SqlClient" version="1.8.2" targetFramework="net461" />

Activity

  1. 0x53A commented on Feb 21, 2017

    @0x53A
    Author

    A restart of VS fixed the issue for now, but is there a way to get callstacks for such failures?

  2. smoothdeveloper commented on Feb 21, 2017

    @smoothdeveloper
    Collaborator

    @0x53A I believe fsc.exe would only report Exception.Message on such failure, the way to get the callstack would be to catch the exception and make another one with the Message containing the inner exception.ToString().

    The other thing worth considering is opening an issue on visualfsharp repository to make that such errors, for any type provider, would print the whole stacktrace.

  3. smoothdeveloper commented on Feb 21, 2017

    @smoothdeveloper
    Collaborator
  4. smoothdeveloper commented on Nov 20, 2020

    @smoothdeveloper
    Collaborator

    @0x53A without the compiler showing the full stack trace, or debugging the issue with reproducible steps, it is hard to fix this.

    I have not seen such error for long time now, it may have been addressed.

    One issue I'm seeing nowadays is a failing dictionary lookup, it might be solved in the master branch with recent refactoring around naked usage of dictionary without locks and few other adjustments which took place in retrieving the sql data types information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions