Commit Graph

654 Commits

Author SHA1 Message Date
Ben Fry
3380239e68 Merge pull request #5486 from JakubValtar/fix-status-exception
Fix sketch exception getting hidden by warning
2019-01-18 08:28:52 -08:00
Ben Fry
c3c2dbb4c2 resolve ambiguous import 2019-01-17 08:53:45 -08:00
Jakub Valtar
8f37ebcb18 Fix freeze when restarting sketch with variables in size
While sketch is running, rewriting sketch size to variables and trying to restart the sketch by pressing the play button causes PDE to freeze. Fixed by moving AWT call to EDT.
2018-11-17 15:11:06 +01:00
Ben Fry
9015177fb2 todo notes and clean up a few warnings 2018-05-05 09:54:44 -04:00
Jakub Valtar
d29366d34b Change Editor status message only from EDT
This adapter invokes all status changes on the EDT instead of worker thread of the Runner. Modifying AWT components from the worker threads may introduce strange bugs and in this case caused UI changes to run out of order, hiding runtime exceptions under problems displayed when cursor moves to the offending line.
2018-04-24 11:31:27 +02:00
Ben Fry
f4bfffc5a9 remove preproc.substitute_unicode (fixes #5456) 2018-04-05 10:45:46 -04:00
gohai
7b273c83b3 Update java.lang.UnsupportedClassVersionError message
This came up in #5457
2018-03-31 14:20:18 -04:00
Ben Fry
b28139a035 notes about completion work 2018-03-26 17:43:36 -04:00
Ben Fry
6cc0791fad more cleanup in completions code 2018-03-26 17:26:11 -04:00
Ben Fry
acacaf5225 more cleanup, time to merge these functions 2018-03-26 17:14:33 -04:00
Ben Fry
196a367449 more cleaning; switching to elementName instead of html parse (needs test) 2018-03-26 16:59:45 -04:00
Ben Fry
47a44983aa cleaning up CompletionCandidate... hoo boy 2018-03-26 16:39:42 -04:00
Ben Fry
e1d3d56b87 set default button in the Rename dialog (fixes #5400) 2018-03-26 14:06:22 -04:00
Ben Fry
8692c146a4 redo the dreadful layout for the Rename dialog 2018-03-26 14:02:56 -04:00
Ben Fry
5722b5323b close Rename (refactor) dialog on ESC (fixes #5391) 2018-03-26 12:02:21 -04:00
Ben Fry
bf29921140 moving more classes out, yech 2018-03-26 11:56:41 -04:00
Ben Fry
fcc6550960 breaking out these static classes to be on their own 2018-03-26 11:51:39 -04:00
Ben Fry
273b0d8b42 gonna move the rename dialog out 2018-03-26 11:42:14 -04:00
Ben Fry
e294030e47 major work on the Welcome screen (fixes #3911, #3912) 2018-03-18 16:31:48 -04:00
Ben Fry
24c1266e5b adding the Swing-based Welcome dialog from @whetfire (#5210) 2018-03-18 08:34:11 -04:00
Ben Fry
ca9262213d add another try/catch for createWriter() call 2018-03-13 20:53:11 -04:00
Ben Fry
e77da8db9f fix rename dialog scaling for high density (fixes #5368) 2018-03-13 19:36:48 -04:00
Ben Fry
532860cd9a erase types and make this if() a little less confusing 2018-03-13 13:08:18 -04:00
Ben Fry
3e495b33a5 do the same thing with less code 2018-03-13 12:37:41 -04:00
Jakub Valtar
728cb75494 Output java files in UTF-8 and force compiler to use UTF-8 2018-03-13 15:35:26 +01:00
Tobias Pristupin
bb48d84766 Updated comment
Comment said function throws RunnerException, but function throws SketchException which isn't related to RunnerException
2018-02-20 08:30:45 -05:00
Ben Fry
dfbc00f5cb minor tweaks for warnings 2018-01-10 22:04:42 -05:00
Jakub Valtar
2fb37b6fb3 Fix error checker crash when className contains [ or ] 2017-11-09 12:23:51 -05:00
Ben Fry
6dc1879611 back out stream() usage that introduced a regression 2017-10-18 16:53:13 -04:00
Ben Fry
026b125792 Merge pull request #5134 from rbonifacio/refactor-towards-language-evolution
Refactor to use a few Java 8 features
2017-10-18 15:48:55 -04:00
Ben Fry
bc4471bf38 Merge pull request #5152 from GKFX/featurefixbadquotes
Handle curly quotes well
2017-09-24 11:00:34 -04:00
Jakub Valtar
fbc7befa84 Fix scrub comments for empty block comment /**/
Fixes #5219
2017-09-20 14:58:41 +02:00
Jakub Valtar
8c66a8c33d Make sure we don't try to get code out of bounds 2017-09-19 23:14:26 +02:00
Jakub Valtar
25ac5db0ab Remove problem priority since we're going to do it manually in PDEX.ErrorChecker 2017-09-19 23:04:56 +02:00
Jakub Valtar
46b5e29fb3 Gather error checking code in PDEX.ErrorChecker 2017-09-19 22:52:49 +02:00
Jakub Valtar
c583d2aaa9 To create Problems use pdeCode instead of messing with editor 2017-09-19 16:23:38 +02:00
Ben Fry
2f8f3f8ce3 Merge pull request #5186 from JakubValtar/fx-runtime
Add JavaFX runtime to error checker class path
2017-08-22 09:59:00 -04:00
George Bateman
363d22e955 Merge branch 'master' into featurefixbadquotes 2017-07-20 19:48:59 +01:00
Jakub Valtar
ab8daaed29 Add FX to ignorable imports
To get rid of missing library messages
2017-07-20 19:34:10 +02:00
Jakub Valtar
7dc3062db1 Add JavaFX runtime to error checker class path
In case somebody needs to work with native FX windows or events, here
they are, ready to be imported (like AWT stuff).
2017-07-20 19:26:15 +02:00
George Bateman
0c828ad433 Fix #5165. Wrong tab for missing brace 2017-07-18 20:28:20 +01:00
George Bateman
cd7430fc10 Handle curly quotes in error checker
Also now prioritizes error messages on a single line for display to the
user, since ECJ doesn't always get that right, reported mismatched
argument lists when there's a syntax error and so on.
2017-06-24 14:35:18 +01:00
George Bateman
96a042f873 Add handler for Antlr "unexpected char"
There's a special message for curly quotes.
2017-06-22 19:19:29 +01:00
George Bateman
42f48475b7 Autoformatter: fix curly quotes.
Also it now doesn't destroy the rest of the file if a string is left
unterminated. Will never fix "content” since curly quotes are valid
string content.
2017-06-22 12:37:43 +01:00
Jakub Valtar
5e6a147896 Fix "Could not parse -1 for --dsiplay" error
When runDisplay was set to -1 no display detection happened. Fixed it so
that editor display is used.

Regression introduced in d960fd1cba

Fixes #5118
2017-06-20 01:24:05 +02:00
Rodrigo Bonifacio
9d693aca26 Refactoring towards Java language evolution
- filter pattern
2017-06-15 12:01:13 -03:00
Rodrigo Bonifacio
325070d711 Refactoring towards Java language evolution.
- use the diamond operator in a few places
- use of multi-catch in a few places
2017-06-15 11:48:49 -03:00
George Bateman
e3c822c1d2 Prompt the user to give the L suffix on numbers
Fixes #4878
2017-05-20 12:33:22 +01:00
Jakub Valtar
17b9a6480d PPS: fall back to sketchcode.program if sketchcode.document is null 2017-05-19 17:34:49 +02:00
Jakub Valtar
9c2352fa03 Notify Editor from Change Detector to run error check 2017-05-19 17:33:40 +02:00