-
Notifications
You must be signed in to change notification settings - Fork 60
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
Will not work on windows #17
Comments
hi pp, odd! does the command work in the normal os terminal? e.g. open CMD, go to the sketch folder, and run something like: |
ah and please make sure that you sketch is inside a folder with the same name: basic/basic.pde ... "C:\Users\phoenix\Documents\Processing\basic.pde" is definitely a non valid processing folder structure! :) |
I had a similar problem recently. The name of a folder in my build path had a space: 'conway life'. I renamed it to 'conway_life', as the command once run on the terminal would be malformed due to errant white-space. Hope that helps anyone coming from Google! |
hi alexander, thanks for sharing! do you know whether you can "mask" somehow the whitespaces in sublime/windows? |
A simple solution? Use filenames without whitespace. Done and done. |
+1 |
FYI I never use spaces in file names and still was having the issue. I haven't tried your earlier solution yet - I don't use processing everyday (only as a rapid sketch tool). Next time I do, I'll let you know how it goes though with your fix. |
Same [Error2] here, but windows restart solved it. |
i created a "Processing (Windows).sublime-build": You just need to edit the path to your processing-java.exe. Can be faster than add environment variables |
@MAKIO135 thanks for sharing! |
thanks to you; got a few other propositions for processing-sublime but don't really know where to start, perhaps should fork the repo and submit merges? (not a pro githuber) |
@MAKIO135 i added a link to your comment to the readme ... and yes please! would be nice to get some input from your side! but please don't do then in the very end just one huge everything or nothing pull request. i prefer small ones, so that we can have a discussion around particular things, rather then a complete restructuring of the whole bundle because you prefer a certain folder/naming structure etc. good luck! |
I try the sublime-build for windows from @MAKIO135 and I get some "character escaping" error, so I change it like this to make it works:
Thanks anyway! |
Dear gentelmen, I have carefully read your posts, but unfortunately did not understand how to solve the same problem. I have the following message in Sublime Text 2: "[Error 2] What does it mean? Please, could you explain to me, as a child, :) what step by step I need to take to solve the problem with preocessing-java. I have: I would be very grateful for any help and tips! |
Hi @dvekedy! You have to install the processing command line tool (processing-java) to your windows. The error message basically says "sublime text can't run processing-java in the command line". Please carefully check and read: https://github.com/b-g/processing-sublime#windows Hope that helps! |
hi guys, i have tried all the steps from the read me, it works fine for my windows 8 but it doesnt seem to work on my laptop with windows 7, without "Processing (Windows).sublime-build" but adding environmental variables it gives me this error. Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\FOONG\AppData\Local\Temp\jna-FOONG\jna9100761614979794647.dll: Access is denied I've tired adding in the "Processing (Windows).sublime-build" i also tried directing it to processing-java.exe instead of just processing-2.2.1 |
Hi @foong! Sorry to hear that this is such an hustle for you ... but could you please confirm whether you can run 'processing-java' on the windows command line without problems? Basically the Processing Bundle for Sublime Text just calls this command every time you press 'build'. |
i tried in command prompt and this erro came out. |
@foong Then I'm afraid it is a processing-java command line tool error ... which has nothing to do with the processing bundel for sublime text. I furthermore have no idea what this means. Sorry! Maybe ask in the processing forum? |
@b-g Oh, alright then, i will. Really appreciate the help. Thanks again! |
am using the build system from @MAKIO135, when I ctrl+b it outputs
but does not run the sketch. What am I doing wrong here? |
@jripp122 Please specify the version of Processing you're using, and your OS. Also, try running processing-java manually to see if it works. Lastly, ask @MAKIO135 . |
@jripp122 When it says "Finished" without actually building anything it is usually because you have white space in your file/folder names or you began the name with a number. |
I used makio135's build system, but when I tried to build, nothing happened, and it said no build system next to the line and column numbers. I know I had the build system selected. Does anybody know what could be wrong? |
@Quillbert one mistake I had made was making the path to processing and not processing-java. |
I checked the path, but it still says no build system. |
Can you send me the code for the sublime-build you used |
I used this code:
|
I:
|
I tried using this package with the path, but it just got me an error. Command Prompt is disabled on my computer, and I was wondering if that could be the problem. |
Is there a way I can work around this error. My username for the file path ( C:\Users\Shrey Mathur\Documents\Processing ) has the whitespace in it and I feel like it's better for the build to work at any location rather than a specific one |
I meant specifically the file and folder with your Processing sketch in it.
Also be careful not to name projects the same name as a class used inside.
And check to make sure all your assets are actually in the data folder and they are spelled exactly the same as you have written them in the code. You might want to check the properties of each asset because sometimes a jpeg extension will actually be JPEG in the properties. Processing should tell you when you are missing assets but sometimes it missed.
On Apr 11, 2019 7:17 AM, shreym03 <[email protected]> wrote:
@jripp122 When it says "Finished" without actually building anything it is usually because you have white space in your file/folder names or you began the name with a number.
Is there a way I can work around this error. My username for the file path ( C:\Users\Shrey Mathur\Documents\Processing ) has the whitespace in it and I feel like it's better for the build to work at any location rather than a specific one
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#17 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGjBuAmxh_RFdz6Mh1sXjDl8iWO2vEVMks5vfzXNgaJpZM4AZIMx>.
|
@amytraylor No, the problem is with is because of the file path. I think I should clarify why I came to the conclusion. I then tried the same thing with quotes around the white space ( P. S. I tried putting quotes around the file path variable ( |
I've had this same issue as you and @aoeu1234 (just in case ... sorry for the necropost) What I've just found is that sublime's $file_path handles spaces in paths just fine, so you don't need to try to add more "" into the path (unless you're personally running it in CMD, as you found). What I had to do was remove "--build" from the command for it to actually run. the --run option includes everything --build does, but it appears that having --build in there seems to cancel --run. I've just tested this in both cmd and sublime and it works in both. I also had to change all the '' for '/' in the path to processing-java.exe |
For anyone interested in the future, here is another sublime-build which will kill the previously built running window of your sketch (if you didn't manually close it), then build and run a new one. This makes 'Build' much more like using 'Run' in the Processing IDE. You'll need to use Obviously, also swap this bit:
|
Darn spaces! I'm on a PC running Windows 10. Pulling my hair out trying to get Processing to build from Sublime text 3. The "problem" was a SPACE in my folder name. My error is I followed a tutorial in which the instructor was using a MAC. Mental note!! NEVER use Spaces on a PC. |
I get this error on Build.
[Error 2] The system cannot find the file specified
[cmd: [u'processing-java', u'--sketch=C:\Users\phoenix\Documents\Processing\basic.pde', u'--output=C:\Users\phoenix\Documents\Processing\basic\build-tmp', u'--run', u'--force']]
[dir: C:\Users\phoenix\Documents\Processing\basic]
[path: C:\Users\phoenix\Documents\processingTwo]
[Finished]
In sysdm.cpl I added the following to the environmental variables > User variables for phoenix
path = C:\Users\phoenix\Documents\processingTwo
Thoughts? I even tried spelling processing differently to make sure it wasn't some character issue.
The text was updated successfully, but these errors were encountered: