Open mrerrormessage opened 7 years ago
I'll go ahead and post it here.
Since the model lives here, I think that's the right place for this issue.
I'm honestly not sure what the appropriate fix is here.
Me neither. The solution probably involves using user-directory
or user-new-file
to give the user a chance to choose where to put the file (maybe in the "catch" part of a carefully
), but it would make the model a bit less straightforward.
@qiemem, what do you think?
Also, I hesitate to propose it, but... maybe this shows the need for a home-directory
primitive... (But not for 6.0, of course...) @mrerrormessage, what do you think?
There have been several times in the past few days where I've looked hard for a home-directory
primitive (or even a working-directory
primitive) and have been very surprised to find that none existed. I think it's definitely worth consideration in a future release.
I agree.
—Uri
Uri Wilensky
On Dec 21, 2016, at 6:21 PM, Robert Grider notifications@github.com wrote:
There have been several times in the past few days where I've looked hard for a home-directory primitive (or even a working-directory primitive) and have been very surprised to find that none existed. I think it's definitely worth consideration in a future release.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_NetLogo_models_issues_325-23issuecomment-2D268565090&d=CwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=3MqBF7qr0NcLDqkRmbayrNl8ngBdhnLx94XK9q7mwRU&m=PJ-7oNev3S67TXK16Z10VmPlRPhH6hLjt5nWmiULCvQ&s=V7WIFqvQ28q6EjB9H7uxgiDXdfR_dbvhIkrj0oLQNos&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AGMgwdJ4z-5F-5FcQZVWwIWkLDGjOtExAXFpks5rKVIagaJpZM4LTDNA&d=CwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=3MqBF7qr0NcLDqkRmbayrNl8ngBdhnLx94XK9q7mwRU&m=PJ-7oNev3S67TXK16Z10VmPlRPhH6hLjt5nWmiULCvQ&s=7IVmV0qW16XqOv6sQCDVzyxAUftYMz1FEuNtOi1DDqo&e=.
It's possible this issue belongs in the CSV-Extension repository, but I'll go ahead and post it here.
The CSV example model uses
csv:to-file
, which tries to write to a path in the same directory as the current model. On Windows, this directory is not writable by default (unless you run NetLogo as an administrator), so the user gets an error (although the error is clear enough to describe the problem).I'm honestly not sure what the appropriate fix is here. The model works correctly on Mac and will work on Linux as long as the user has the appropriate permissions (most Linux users will be able to troubleshoot this one on their own).