logos icon indicating copy to clipboard operation
logos copied to clipboard

%config(generator=Internal) does not work but using `internal` does

Open NSExceptional opened this issue 5 years ago • 1 comments

Sample Tweak.xm:

%config(generator=Internal);

%hook Foo
- (void)bar {
    [super bar];
}
%end

Running logos.pl Tweak.xm > Tweak.m yields:

Goto undefined subroutine &main:: at /opt/theos/vendor/logos/bin/lib/Logos/Generator/Thunk.pm line 33.

~~I tried to debug the relevant line~~

Edit: so, apparently the proper value is internal with a lowercase i and not Internal. Would be nice if we supported either since MobileSubstrate is capitalized

NSExceptional avatar Dec 06 '20 07:12 NSExceptional

The initial config-name sanity check is case-insensitive, but an unexpected capitalization leads to a vague error further down in the processing.

config name: random123 output: could not find or check module 'Logos::Generator::random123::Generator' [THIS MAY BE A PROBLEM!]

config name: iNternal output: Goto undefined subroutine &main`

EthanArbuckle avatar Dec 06 '20 07:12 EthanArbuckle