Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketchbook location is incorrect? #59

Closed
alexdmiller opened this issue Nov 25, 2024 · 3 comments
Closed

Sketchbook location is incorrect? #59

alexdmiller opened this issue Nov 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@alexdmiller
Copy link
Contributor

Describe the bug

The build.gradle.kts file assumes your sketchbook lives at "$userHome/Documents/Processing/sketchbook". However, the default location (AFAIK) is "$userHome/Documents/Processing".

Steps to reproduce

  1. Follow the getting started guide
  2. Run the deployToProcessingSketchbook gradle step

Expected behavior

Library should appear in the Processing libraries folder

Actual behavior

Library isn't written to libraries folder

@alexdmiller alexdmiller added the bug Something isn't working label Nov 25, 2024
@mingness
Copy link
Collaborator

Hello @alexdmiller ,
Thanks for your bug report. Is it correct to say, that you are running Processing on a Mac?

Could you copy here the location on your computer of the libraries folder? it would be something like
$userHome/Documents/Processing/sketchbook/libraries,
or as suggested by your bug report,
$userHome/Documents/Processing/libraries

Judging from the Processing4/3 code base, there should be a child folder named "sketchbook" regardless of platform.

I recommend to run the Gradle task "buildReleaseArtifacts" before running "deployToProcessingSketchbook". While it shouldn't matter, since "buildReleaseArtifacts" is a dependency for "deployToProcessingSketchbook", I've noticed the task won't complete the very first time.

@mingness
Copy link
Collaborator

Having done more research into the matter, I see that Macs and the sketchbook folder have a tenuous relationship - Macs by default don't have a literal sketchbook folder, but sometimes one can get a no sketchbook error for various reasons. I'll change the Gradle build file to test for the literal sketchbook folder, with default to the filepath without the literal sketchbook folder. Thanks for bringing this to my attention.

@mingness
Copy link
Collaborator

mingness commented Dec 1, 2024

PR #61 fixed this issue.

@mingness mingness closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants