NetLogo / NetLogo/LevelSpace

export-interface primitive not working in child models

Open
#83 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
20
Forks
8
PR merge metrics
No merged PRs in 30d

Description

In an LS child model, opened via ls:load-gui-model, the export-interface primitive produces an empty file (with the correct name).

To recreate:

  1. Open an LS GUI child model
  2. In the command center, enter export-interface "test.png"

The resulting file is created, but empty.

export-view works just fine. Also, perhaps this would be a useful menu item for opened LS models? In regular old NetLogo, you can do File > Export... > Export Interface... but that Menu item is not present when an LS model is the active window.

macosx_screenshot

I'd upload the empty file... but GitHub won't let me.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening an LS GUI child model with ls:load-gui-model and running export-interface "test.png"; compare its handling with the working export-view path. Done means the generated PNG is non-empty and contains the interface; the missing File > Export... > Export Interface menu can be considered separately.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.