Skip to content

Parse error in data file with anonymous enumerated types #776

Closed

Description

@mathlover2

Hi,

In the MiniZinc tutorial (specifically at Section 2.2.5 on complex constraints), Listing 2.2.10 for jobshop.mzn the model for job-shop scheduling, comes with a data file jdata.dzn, given in Listing 2.2.11, that contains anonymous enumerated types, specifically in the lines

JOB = _(1..5);
TASK = _(1..5);

However, running the command

minizinc --solver gecode --intermediate jobshop.mzn jdata.dzn

gives the error

MiniZinc: syntax error: syntax error, unexpected '(', expecting end of file

I don't know if this is a case of the documentation not lining up with the current program or an accidental regression, but I am filing this since I suspect it to be the latter.

Activity

  1. self-assigned this
    on Jan 8, 2024
  2. added a commit that references this issue on Jan 8, 2024
    d9e8d6f
  3. added
    resolvedIssue is resolved and the feature or fix will be part of next release
    on Jan 8, 2024
  4. mathlover2 commented on Jan 19, 2024

    @mathlover2
    Author

    Thanks for fixing this!

  5. added theissue type on Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

resolvedIssue is resolved and the feature or fix will be part of next release

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions