NetLogo / NetLogo/NetLogo

using `extensions` keyword inside an `.nls` file doesn't always work

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

Nobody has claimed this yet.

compiler
Dominant language
Scala
Stars
1.2k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

it sometimes works in the GUI, but it doesn't work in e.g. a headless BehaviorSpace run. you may get errors like e.g. table:get is not defined

it's not clear whether to fix it so it always works, or just prohibit it and always signal a compile error

reported by Thomas Delattre

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

Start by reproducing the issue with an .nls file that uses the extensions keyword, comparing GUI execution with a headless BehaviorSpace run. Investigate how extension loading and compilation differ between those entry points, including the table:get is not defined error. Done means the behavior is consistently supported or consistently rejected with a compile error, but the issue does not define which outcome to choose.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.