Comments (13)
@b-g Adding a build command for the Ant-style project isn't necessary, since folks will use the Ant build system. But I will checkout the bg-dev branch and see if it makes sense.
from processing-sublime.
I am a fan of having only one build system plus variants, but this doesn't seem to include @mckennapsean 's build system for P3 here which omits the need for the build-tmp
output configuration.
Personally, I don't care since I don't use it. And maybe it should wait until Processing 3 is production-ready.
from processing-sublime.
@b-g
It isn't working for me on:
- Processing 3.0a10 (processing-java build 0237)
- Processing 3.0a9 (processing-java build 0236)
It does work well on:
- Processing 2.2.1 (processing-java build 0227)
- Processing 3.0a5 (processing-java build 0232)
It was all tested on OS X. As another note, Processing 3.0a9 is the earliest version on the download page with the updated IDE. I also was not able to build it from the command line, so the bug is on their side. Perhaps we should file a bug report.
I agree with @ybakos that we shouldn't mind too much with Processing 3, at least not yet.
from processing-sublime.
I can confirm that processing-java is not working in Processing 3's latest alphas for Mac OS X (Yosemite here). I will double-check on Windows later... they have made a lot of major changes to their codebase since last fall. It could also be related to the debug mode. Anyways, this is likely a bug to report to their team.
As for the build system I proposed, I support this new simpler solution of a single build system for P2 & P3. However, I would also recommend having a new variant be written for Processing 3 only, for just running the sketch (no temp folder). It could be named "Run sketch (Processing 3 only)", and the only difference from the default option is that it would not have an output specified instead going straight to the system's temp folder. Personally, the other variants I would use less often and having access to the build output can be useful at times (like in the case of exporting to an application for debugging). This additional variant could be used by those who have newer versions of Processing and wish to opt out of having a build folder.
My motivation behind having an option which leaves no build folder is when using a version control system with developing a Processing project. I considered adding this build-tmp folder to a popular gitignore repository, but anyone can name the build-tmp folder whatever they wish so that seemed less than optimal. I also felt that adding a .gitignore statement for this folder for every Processing project or even in a global gitignore was less than optimal. So I submitted a pull request to make the output folder be optional to the Processing team, which was adopted into the Processing 3 codebase. The way they work is to mainly push forward new releases... not propagate features into older versions. So while the change could have been used for Processing 2, they are not releasing any new "features" to that version as far as I know. Lately, I have been using Processing less & less, but I just wanted to explain my initial motivation behind all of this.
from processing-sublime.
Great. @b-g let's relegate the Processing 3 build command as a variant for now as @mckennapsean suggests. Later, once Processing 3 is the production release, we can relegate the Processing 2 scheme as a variant, and promote the Processing 3 build command as the primary one.
from processing-sublime.
Works for me on:
- Processing 2.2.1 (processing-java build 0227) on Windows x64
- Processing 3.0a9 (processing-java build 0236) on Windows x64
- Processing 3.0a10 (processing-java build 0237) on Windows x64 (but that doesn't matter because their
size()
fix doesn't work, making all sketches take up the entire screen and therefore rendering Processing from Sublime Text unusable)
@mckennapsean I'm a little confused about the output folder debate here. If system temp folder output is desired, like Processing 3 offers, there is one way to give this option for all versions: specify --output=/tmp/p5-build-tmp
for OS X and Linux and --output=%TEMP%\\p5-build-tmp
for Windows.
I wasn't backing this up because I was under the impression that some people use the .java and .class files from the build-tmp folder, but it seems they're more of a problem (Dropbox, git). And come to think of it, there's --export
if you want those!
So I say away with the build files, to the system temp folder.
from processing-sublime.
True! I was really hoping Processing would just automatically fill in the system temp folder for you... but apparently they won't support this in P2 π¦ so we gotta hack this functionality into our tools.
If the build-tmp output folder is still desired, you could add a variant: "Build & run sketch".
from processing-sublime.
Hi all!
π
Many thanks for feedback, thoughts and testing!!
I just added as discussed the "Run sketch (Processing 3 only)" variant.
Once P3 is then in production we get rid of --output
in all variants and just add a single "Build & run sketch (use always for old P2 sketches)" variant with the --output
parameter ... better wording is welcome :)
All good? If yes ... I will merge the bg-dev branch after the weekend.
Cheers!
from processing-sublime.
All good! ππ½
On Friday, June 19, 2015, Benedikt GroΓ [email protected] wrote:
Hi all!
[image: π]
Many thanks for feedback, thoughts and testing!!
I just added as discussed the "Run sketch (Processing 3 only)" variant.
Once P3 is then in production we get rid of --output in all variants and
just add a single "Build & run sketch (use always for old P2 sketches)"
variant with the --output parameter ... better wording is welcome :)All good? If yes ... I will merge the bg-dev branch after the weekend.
Cheers!
β
Reply to this email directly or view it on GitHub
#73 (comment)
.
Richard Kaufman
from processing-sublime.
Works fine for me.
from processing-sublime.
Watch out, Run sketch (Processing 3 only)
does --present
instead of --run
.
We've been mulling this over entirely too long. π
from processing-sublime.
@akaleeroy Damn! Will fix it! π Thanks for spotting!
from processing-sublime.
Done. Merged dev branch with the master:
27cf937
from processing-sublime.
Related Issues (20)
- processing-sublime can't find libraries HOT 2
- Syntax for Cuda?
- What's the license for processing-sublime? HOT 4
- Support python mode
- support autocomplete HOT 1
- Still working with processing 3.0.2? HOT 2
- error on build after updating processing to 3.1 HOT 2
- Processing 3.1 with Sublim Text
- Why I cannot use it normally? HOT 1
- close already open app when you build again. HOT 1
- OSX Error Message: 'I don't know anything about -sketch=/Users/sysuser1/Desktop/Programming/Chatbots/twitbot/processing_example/.' HOT 2
- Single line comments aren't greyed out outside of a function HOT 1
- It's not compatible with version 3.3.5 HOT 1
- Syntax highlighting sometimes incorrect.
- java.lang.Thread issues (not in Processing) HOT 7
- Not Working on windows HOT 1
- MacOS Mojave - camera and microphone access not requested HOT 4
- Problem with sublime recognizing processing-java HOT 2
- Can you put in 'Find in Reference' support too?
- How to remove build-temp when the sketch stop to run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing-sublime.