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

fix regression that broke string.format with list objects #9532

Merged

Commits on Nov 4, 2021

  1. fix regression that broke string.format with list objects

    String formatting should validly assume that printing a list means
    printing the list itself. Instead, something like this broke:
    
    'one is: @0@ and two is: @1@'.format(['foo',  'bar'], ['baz'])
    
    which would evaluate as:
    
    'one is: foo and two is: bar'
    
    or:
    
    'the value of array option foobar is: @0@'.format(get_option('foobar'))
    
    which should evaluate with '-Dfoobar=[]' as
    
    'the value of array option foobar is: []'
    
    But instead produced:
    
    meson.build:7:0: ERROR: Format placeholder @0@ out of range.
    
    Fixes mesonbuild#9530
    eli-schwartz committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    558f9fe View commit details
    Browse the repository at this point in the history