parse_trans icon indicating copy to clipboard operation
parse_trans copied to clipboard

Parse transform utilities for Erlang

Results 7 parse_trans issues
Sort by recently updated
recently updated
newest added

I'm trying to setup a workflow where I can compile my app in a docker container running Alpine Linux such that the release will then run in a docker image...

https://github.com/uwiger/parse_trans/blob/e61ab8e09eee791222ba49a5706162c4985f24b0/src/exprecs.erl#L1616

R16B -module(exprecs_specs). -compile({parse_transform, exprecs}). -export_records([r]). -record(r, {f}). Proceeding with analysis... exprecs_specs.erl:40: Invalid type specification for function exprecs_specs:'#pos-'/2. The success typing is ('r',atom()) -> 0 | 2

R16B -module(exprecs_specs). -compile({parse_transform, exprecs}). -export_records([r]). -record(r, {f}). -opaque r() :: #r{}. -export_type([r/0]). Proceeding with analysis... exprecs_specs.erl:39: The contract exprecs_specs:'#set-r'(['#prop-r'()],#r{}) -> #r{} cannot be right because the inferred return for '#set-r'(Vals::any(),Rec::exprecs_specs:r())...

I know the example bellow doesn't make much sense, but anyway: ``` erlang -module(test). -record(test, {}). -compile({parse_transform, exprecs}). -export_records([test]). ``` ... results in the following error with the latest version...

Example (using OTP 25): ``` exprecs.erl: warning: 'tt' is not allowed - skipping tag, extracting content /Users/uwiger/uw/parse_trans/src/parse_trans_codegen.erl, function parse_transform/2: at line 33: warning: EDoc @spec tags are deprecated. Please use...

This PR fixes an issue printing UTF-8 characters. If the module contains, e.g., `-author("William Fank Thomé")`, Erlang does not recognize it as a valid file because of the `é`.