ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
735 stars 120 forks source link

Idea-erlang can not recognize macro-defined record. #446

Open Ulinkone opened 10 years ago

Ulinkone commented 10 years ago

The code below can be run in Eclipse ide, but in my Idea13 it says there is an error. %% ==================================================================== %% Macro definicaton %% ==================================================================== -define(CREATE_RD(KV_T_La, Record), begin RD = #Record{}, %%idea gives an error here PL = record_info(fields,Record), I_L = lists:zip(PL, lists:seq(2, length(PL)+1)), InsertL = [{binary_to_existing_atom(BK,latin1), V} || {BK, V} <- KV_T_La], update_tuple(InsertL, I_L, RD) end ). Thanks for your helping.

archyaion commented 9 years ago

Excuse me, how do you solve this problem? I met the same problem. Thks for your helping.