Commit Graph

1687 Commits

Author SHA1 Message Date
Ben Fry
8e6665eca6 Merge pull request #4296 from PARAG00991/nothingselectedmsg
message when reference is find out on nothing selected
2016-02-13 17:37:27 -05:00
Ben Fry
4b0a631280 Merge branch 'master' of github.com:processing/processing 2016-02-13 17:33:54 -05:00
Ben Fry
c144e1278c todo items and removing unused imports 2016-02-13 17:33:52 -05:00
Ben Fry
9606ce040b make output quieter (#4098) 2016-02-13 17:26:26 -05:00
Ben Fry
d896e9ac19 Merge pull request #4152 from gohai/recursion-message
Make the error message for stack overflows clearer
2016-02-13 17:07:20 -05:00
parag00991
a1d508444c message when reference is find out on nothing selected 2016-02-14 03:34:58 +05:30
Ben Fry
85542d1216 Merge pull request #4060 from crazymaster/i18n
i18n: Add i18n support for the PopUp menu
2016-02-13 10:47:12 -05:00
Ben Fry
8b881a34ca Merge pull request #4114 from GKFX/null-check-tap
Minor fixes to Java Mode
2016-02-13 10:43:05 -05:00
Ben Fry
0c025a65bd Merge pull request #4113 from JakubValtar/various-fixes
Various editor fixes
2016-02-13 10:40:29 -05:00
Ben Fry
61763c19d7 Merge pull request #4117 from JakubValtar/debugger-fix
Debugger fixes
2016-02-13 10:36:47 -05:00
Ben Fry
a464a7a6e5 Merge pull request #4200 from GKFX/autoformat
Fix minor autoformatter bugs. Fixes #4185.
2016-02-13 10:11:43 -05:00
Ben Fry
962e699613 Merge pull request #4079 from JakubValtar/jit-bug-workaround
Workaround for JRE bug freezing the PDE
2016-02-13 09:30:11 -05:00
Manindra Moharana
578217c0ca Updated to use the modified ECS classloader 2016-01-27 02:45:06 -08:00
George Bateman
cbf974630b Fix minor autoformatter bugs. Fixes #4185.
Enums without semicolons and labels that aren't in a method body.
2015-12-12 14:37:42 +00:00
gohai
f4c7d5492f Make the error message for stack overflows clearer
Regarding #4149 and against the better advice of #2623

Currently recursive functions only output this:

"crashed in event thread due to Timeout occurred while waiting for packet 29.
org.eclipse.jdi.TimeoutException: Timeout occurred while waiting for packet 29.
	at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:186)
	at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:197)
	at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:191)
	at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:226)
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:257)
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:240)
	at processing.mode.java.runner.Runner.findException(Runner.java:726)
	at processing.mode.java.runner.Runner.reportException(Runner.java:709)
	at processing.mode.java.runner.Runner.exceptionEvent(Runner.java:631)
	at processing.mode.java.runner.Runner$2.run(Runner.java:523)
org.eclipse.jdi.TimeoutException: Timeout occurred while waiting for packet 30.
	at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:186)
	at org.eclipse.jdi.internal.connect.PacketReceiveManager.getReply(PacketReceiveManager.java:197)
	at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:191)
	at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:226)
	at org.eclipse.jdi.internal.VirtualMachineImpl.exit(VirtualMachineImpl.java:716)
	at processing.mode.java.runner.Runner.close(Runner.java:801)
	at processing.mode.java.JavaEditor.handleStop(JavaEditor.java:1156)
	at processing.mode.java.JavaToolbar.handleStop(JavaToolbar.java:146)
	at processing.mode.java.JavaToolbar$4.actionPerformed(JavaToolbar.java:104)
	at processing.app.ui.EditorButton.mousePressed(EditorButton.java:181)
	at java.awt.Component.processMouseEvent(Component.java:6522)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6290)
	at java.awt.Container.processEvent(Container.java:2234)
	at java.awt.Component.dispatchEventImpl(Component.java:4881)
	at java.awt.Container.dispatchEventImpl(Container.java:2292)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
	at java.awt.Container.dispatchEventImpl(Container.java:2278)
	at java.awt.Window.dispatchEventImpl(Window.java:2750)
	at java.awt.Component.dispatchEvent(Component.java:4703)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)"

with the patch this becomes

"A StackOverflowError means that you have a bug that's causing a function
to be called recursively (it's calling itself and going in circles),
or you're intentionally calling a recursive function too much,
and your code should be rewritten in a more efficient manner."

(and the TimeoutException once you click the stop button)
2015-11-17 06:31:35 +01:00
Jakub Valtar
129ffb5f6c Run Tooltip code in Marker Column on AWT 2015-11-09 13:35:47 +01:00
Jakub Valtar
0e5bfdf29d Prevent NPEs in ToolTipManager
Might get rid of #3286
2015-11-09 13:29:14 +01:00
Jakub Valtar
05b66536a2 Code styling 2015-11-08 19:38:33 +01:00
Jakub Valtar
97ad08c2da Fix typo in debugger 2015-11-08 19:37:03 +01:00
Jakub Valtar
15b3a4718d Fix crash when entering static methods
Fixes #3590
2015-11-08 19:27:41 +01:00
Jakub Valtar
bbbfea9129 Fix modifiers on step button
Fixes #4116
2015-11-08 19:25:57 +01:00
Jakub Valtar
33d798867f Threading: touch UI only on AWT 2015-11-08 18:46:38 +01:00
George Bateman
64aaf9c6bc Minor fixes to Java Mode 2015-11-08 16:08:25 +00:00
Jakub Valtar
921099df04 Make tooltips saner 2015-11-07 11:16:20 +01:00
Jakub Valtar
a1eb347338 Make CompletionCandidate immutable
This one goes from ASTGenerator on a background thread to the JList
which displays code suggestions. Until refactored, I'm making it
immutable with convenience methods returning mutated copies to prevent
possible threading issues.
2015-10-30 03:27:08 +01:00
crazymaster
6844ecdf6b i18n: Add i18n support for the PopUp menu 2015-10-25 21:30:29 +09:00
Ben Fry
1ffe4b3bbb remove unused imports 2015-10-23 15:57:16 -04:00
Ben Fry
f411433eeb Merge pull request #4045 from JakubValtar/fix-preproc-crash
Prevent preprocessor from crashing when setup() has no body
2015-10-22 11:32:41 -04:00
Jakub Valtar
c62968da8e ANTLR does not support diamonds, ignore 2015-10-22 16:24:50 +02:00
Jakub Valtar
eddd963ca1 Fix exception in preprocessor
Trying to run sketch with setup() without a body would crash the
preprocessor. Now it gives correct error message.
2015-10-22 16:19:50 +02:00
Jakub Valtar
055125f89a Make warnings actually useful for beginners 2015-10-22 15:46:27 +02:00
Jakub Valtar
56a8e505ab Remove aggressive manual garbage collection 2015-10-22 15:10:38 +02:00
Jakub Valtar
dc528ada43 Styling 2015-10-22 14:39:05 +02:00
Jakub Valtar
715273a15b Unify compiler options, set level to Java 7
Does not guarantee support for all Java 7 features (only some), but
warns about lambdas not being available. Lambdas are not supported,
because they make ANTLR angry.

Fixes #4034
2015-10-22 12:45:54 +02:00
Jakub Valtar
d7f0bcf2e8 Compilation Checker cleanup 2015-10-22 12:37:37 +02:00
Jakub Valtar
3e2ea14925 Remove unused error logging 2015-10-22 12:25:22 +02:00
Ben Fry
d35035d371 more cleanups and notes 2015-10-21 06:36:57 -04:00
Jakub Valtar
9194d855d3 Merge pull request #4005 from JakubValtar/embed-fix
Export - fix java not being embedded on 64bit
2015-10-20 17:37:22 +02:00
Ben Fry
8185c6fbde Merge pull request #4015 from gohai/serial-fixes
Serial fixes
2015-10-20 09:19:33 -04:00
Ben Fry
641d9797b5 Merge pull request #4009 from JakubValtar/error-checker-document-listeners
Add error checker document listeners to all tabs
2015-10-20 09:18:28 -04:00
Ben Fry
3c3bc50809 Merge pull request #3997 from gohai/for-ben-14
Medium-sized I/O updates
2015-10-20 09:17:45 -04:00
Ben Fry
e3d9fc83d9 Merge pull request #4023 from erniejunior/master
Improved fix for Issue #4017 where tweak mode ignores some numbers in a second tab
2015-10-20 09:13:12 -04:00
gohai
4bfe0feea5 I/O: Another filename fix for PWM 2015-10-19 20:52:26 +02:00
gohai
5c5d0ce8d8 I/O: Fix PWM filenames 2015-10-19 20:13:18 +02:00
erniejunior
8d8c286f8e Fixed issue #4017 now with even fewer changes. 2015-10-18 23:58:07 +02:00
gohai
f4f00102bd Put back the Javadoc from the 2012-era Serial library 2015-10-18 12:51:57 +02:00
gohai
61fe120f7c Fix Serial SimpleWrite example
The Arduino code would read one byte from the buffer an then sleep for 1/10th of a second, while Processing would send a byte every frame. Instead, read in all the bytes in the input buffer and act on the most recent one.
2015-10-18 12:29:14 +02:00
Gal Sasson
43f261a7aa fix swing deadlock issue: https://github.com/processing/processing/issues/3928 2015-10-18 01:11:37 -04:00
Jakub Valtar
f12a42bdfb Add error checker document listeners to all tabs 2015-10-16 17:59:37 +02:00
Jakub Valtar
2b4a6ba359 Export - fix java not being embedded on 64bit 2015-10-15 23:50:24 +02:00