Project

General

Profile

Actions

Bug #21398

closed

Struct handling broken

Added by Ewoud Kohl van Wijngaarden over 7 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

From https://github.com/theforeman/puppet-foreman/pull/601

If you use a complex struct as follows it breaks:

type Foreman::Column_view_column = Struct[
  {
    title => String[1],
    after => String[1],
    content => String[1],
    Optional['conditional'] => String[1],
    Optional['eval_content'] => String[1],
    Optional['view'] => String[1],
    Optional['width'] => String[1],
    Optional['custom_method'] => String[1],
  }
]

This breaks with:

manifests/plugin/column_view.pp parameter columns: data type not recognized Struct [

Moving it all to a single line doesn't appear to help either.


Related issues 2 (0 open2 closed)

Related to Kafo - Bug #29505: Using Stdlib data types breaks VariantDuplicateActions
Is duplicate of Kafo - Bug #36912: can't parse multi-line type definitionsClosedEvgeni GolovActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden about 5 years ago

Right now kafo_parsers reads and parses the file. A proper solution would use puppet-strings which can extract the type aliases.

Actions #2

Updated by Ewoud Kohl van Wijngaarden about 5 years ago

  • Related to Bug #29505: Using Stdlib data types breaks Variant added
Actions #3

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Is duplicate of Bug #36912: can't parse multi-line type definitions added
Actions #4

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Status changed from New to Closed

I think this was solved via #36912

Actions

Also available in: Atom PDF