Title: Filenames ending with a "negative" number do not work · Issue #4861 · processing/processing · GitHub
Open Graph Title: Filenames ending with a "negative" number do not work · Issue #4861 · processing/processing
X Title: Filenames ending with a "negative" number do not work · Issue #4861 · processing/processing
Description: I work as a grader for an intro CS class that uses Processing. The software that students use to submit their assignments will append numbers to the filename if a student resubmits their assignment, which gives me something like "assignm...
Open Graph Description: I work as a grader for an intro CS class that uses Processing. The software that students use to submit their assignments will append numbers to the filename if a student resubmits their assignment...
X Description: I work as a grader for an intro CS class that uses Processing. The software that students use to submit their assignments will append numbers to the filename if a student resubmits their assignment...
Opengraph URL: https://github.com/processing/processing/issues/4861
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Filenames ending with a \"negative\" number do not work","articleBody":"I work as a grader for an intro CS class that uses Processing. The software that students use to submit their assignments will append numbers to the filename if a student resubmits their assignment, which gives me something like \"assignment-1.pde\" when I download it. \r\n\r\nWhen I try to run this file using the command line compiler, I get a crash with the following output:\r\n```\r\nException in thread \"main\" java.lang.ArrayIndexOutOfBoundsException: 0\r\n at processing.app.Sketch.getCode(Sketch.java:1644)\r\n at processing.app.Sketch.getMainProgram(Sketch.java:1669)\r\n at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:216)\r\n at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:155)\r\n at processing.mode.java.JavaBuild.build(JavaBuild.java:122)\r\n at processing.mode.java.Commander.\u003cinit\u003e(Commander.java:274)\r\n at processing.mode.java.Commander.main(Commander.java:86)\r\n```\r\n\r\nWhen I try to open the file with the IDE, I get an error there as well:\r\n\r\n\r\nI get the same error if I change the ending to \"-2\", so only it seems that ending in \"negative\" numbers breaks something. Removing the \"-1\" causes the error to go away given nothing else is wrong with the filename.","author":{"url":"https://github.com/Jebbs","@type":"Person","name":"Jebbs"},"datePublished":"2017-01-29T18:35:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4861/processing/issues/4861"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:20432d30-31c8-dd4c-9da6-31615d5abbd4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B90:D4C17:3EE993:50DE74:698004A5 |
| html-safe-nonce | 24d73e51f654d7381eb9a9f78634cf27c6d3cdd8e228f9711c8f0c8419c8b4cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjkwOkQ0QzE3OjNFRTk5Mzo1MERFNzQ6Njk4MDA0QTUiLCJ2aXNpdG9yX2lkIjoiNDc3MzQ1MDIyNTMyNDkxNzkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b091d6db775a27ec3393320cc9fe8aa347f75bf4117aaab3619474609b7fc767 |
| hovercard-subject-tag | issue:203886630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing/4861/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e34bb40a50134cea64deb4f338acf3d7fd005e726d5e3ae57a4b88e7c866d3ab/processing/processing/issues/4861 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e34bb40a50134cea64deb4f338acf3d7fd005e726d5e3ae57a4b88e7c866d3ab/processing/processing/issues/4861 |
| og:image:alt | I work as a grader for an intro CS class that uses Processing. The software that students use to submit their assignments will append numbers to the filename if a student resubmits their assignment... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jebbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing git https://github.com/processing/processing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 7807399 |
| octolytics-dimension-repository_nwo | processing/processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7807399 |
| octolytics-dimension-repository_network_root_nwo | processing/processing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width