PMunch/futhark

nimsuggest cannot find identifiers generated by futhark

jackhftang opened this issue · 2 comments

I am able to compile, link and run the code. The only problem is that nimsuggest cannot lookup any identifiers. I dig a bit and think that futhark should have generated declaration like this proc tsparsernew(): ptr Tsparser_436207981 {.cdecl, importc: "ts_parser_new".}. It seems to me it is the problem of nimsuggest. I want to confirm that are you experiencing the same problem or it is just me?

Screenshot from 2023-03-17 13-23-55

PMunch commented

Yes, this is a known limitation with Nimsuggest. Essentially it is just Nimsuggest which doesn't properly run the macro. If you follow the suggestion in the "Shipping Wrappers" section of the README it will work. This is because Nimsuggest is able to take then non-futhark path and just grab the cached file instead.

I see. Thank you.