vs-code-cython icon indicating copy to clipboard operation
vs-code-cython copied to clipboard

lang server hangs on "recursive" structs

Open TsXor opened this issue 1 year ago • 0 comments

Consider the following definition of linked list node:

ctypedef struct my_node:
    void* data
    struct my_node* prev
    struct my_node* next_

I don't know if this is valid in cython, but after seeing this, code analysis stopped working and could not recover without a restart. (deleting this part cannot make it recover) I mean, at least give me an error, but do not just hang.

Note: the following is just fine

ctypedef struct my_node
ctypedef struct my_node:
    void* data
    my_node* prev
    my_node* next_

TsXor avatar Oct 10 '23 02:10 TsXor