NetLogo / NetLogo/NetLogo

runresult on GIS VectorDataset

Open
#435 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm not sure if this is a bug but ...

When I type the following in the Command Center
print runresult "Brazil-highways" ... (Brazil-highways is a gis:VectorDataset)
I get what I expect, i.e., {{ gis:VectorDataset }}

But when I do the same thing within a procedure I get the following error message:

     The name PRIMARY is already defined 
error while observer running RUNRESULT
  called by procedure MAP-DRAW (/Users/ishall/Google Drive/FOCUS_GIS/GIS_2.0.nls)
  called by procedure EXECUTE-COMMAND (/Users/ishall/Google Drive/FOCUS_GIS/GIS_2.0.nls)
  called by procedure LISTEN-CLIENTS (/Users/ishall/Google Drive/FOCUS_GIS/GIS_2.0.nls)
  called by procedure LINK-TO-GIS (/Users/ishall/Google Drive/FOCUS_GIS/GIS_2.0.nls)
  called by Button 'Activate GIS'

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 print runresult "Brazil-highways" in the Command Center and inside a procedure using the GIS VectorDataset example. Start at the RUNRESULT execution path and compare how the two contexts handle the PRIMARY name. Done means the procedure form works consistently without the reported error, with regression coverage for both contexts.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.