Skip to content

conflicting information on JSMode and the need for a data directory #1963

@skilfullycurled

Description

@skilfullycurled

hey all.

yesterday someone wrote in on the Processing forum inquiring as to why s/he could not load a txt file with loadStrings() in JSMode.

https://forum.processing.org/topic/using-loadstring-on-txt-file-in-javascript-mode#25080000002282863

In the end, what confused this person was that there are differing instructions about the data folder on both the Processing and PJS websites. I'll only handle the Processing website here:

When looking at the following link that is specifically about JSMode, it states you do not need a data folder:

http://processing.org/tutorials/javascript/

It is true that you do not need a data folder when using PJS outside the IDE, and when you run your sketch the data folder is removed and your txt file is moved to the same level as your pde. However, in order for those things to take place, to successfully run a sketch using loadStrings() in JSMode, you do need a data directly.

Maybe clarifying the part about the data directory to include the fact that while PJS does not need a data folder, when using JSMode you do need one?

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