Skip to content

[Bug]: A saved step that opens a project from its text doesn't require the project's layout capabilities #3462

Done

Description

@jgregoriorincon

What happened?

A saved step (task, model or script) that runs project.openText with a project that has no requires header can carry a layout setting an older release doesn't know, such as several extent indicators in a map frame. The saved outer project doesn't require that capability, so the older release opens it, runs the step, drops the setting and saves the frame without it. Only the checks for generalised Shaded Relief, kept class order and (with #3453) numbered extent indicators read the opened project; the other layout capabilities don't.

Steps to reproduce

  1. Take a project whose map frame has more_extents, and remove its requires header.
  2. Save a task step project.openText with that text in another project.
  3. Look at the saved project's requires: layout-extent-indicators is missing.

Expected behavior

The saved project requires every capability the opened project would require, so an older release refuses it.

How are you running RustGIS?

Command line (rustgis-cli)

Version

bc6e750

Activity

  1. jgregoriorincon commented on Dec 2, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm taking this one.

  2. added 18 commits that reference this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions