Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NSExceptional opened this issue Dec 6, 2020 · 1 comment

Comments

@NSExceptional
Copy link
Contributor

NSExceptional commented Dec 6, 2020

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 NSExceptional changed the title Logos craps the bed with %config(generator=Internal) %config(generator=Internal) does not work but using internal does Dec 6, 2020
@EthanArbuckle
Copy link

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants