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
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
Ben Fry
3210bd202e
look into dock name issue, find that it is a Java bug...
2017-05-04 11:59:38 -04:00
Ben Fry
d960fd1cba
prevent "run sketches on display" message from showing up on startup
2017-05-04 11:29:12 -04:00
Ben Fry
10bd76d099
working on macOS Sierra signing issues seen in #4705
2017-05-04 07:07:50 -04:00
Ben Fry
4ae2cdcdbc
Merge pull request #5044 from gohai/io-fixes
...
IO library updates
2017-05-04 05:45:04 -04:00
Ben Fry
57b221d389
clean up error message about sketchbook folder ( fixes #4942 )
2017-05-03 21:28:31 -04:00
gohai
8a055dddac
IO: Remove unused internal method
2017-04-30 20:43:50 +02:00
gohai
b204f0d498
IO: Remove duplicate argument listing in Reference
2017-04-30 20:42:58 +02:00
gohai
00d3c11032
IO: Fix waitFor(pin, mode)
2017-04-30 20:41:14 +02:00
Ben Fry
909a87f1b6
avoid attempts to export 32-bit verrsions of apps on macOS ( fixes #4971 )
2017-04-23 09:22:31 -04:00
Ben Fry
3ba5c42c02
add cell renderer to usage window
2017-04-22 20:09:33 -04:00
Ben Fry
22af325c1b
Merge pull request #5019 from JakubValtar/fix-comment-scrub
...
Scrub comments: skip the second chracter in the escape sequence
2017-04-21 17:23:36 -04:00
Ben Fry
fa836591b0
Merge pull request #5011 from JakubValtar/blow-up
...
Window placement and pixel density cleanup
2017-04-21 16:57:20 -04:00
Jakub Valtar
c2e0cb9705
Scrub comments: skip the second chracter in the escape sequence
...
Fixes #5016
2017-04-21 12:35:52 +02:00
Ben Fry
3b12eaff08
Merge pull request #4931 from gohai/io-changes
...
Hardware I/O updates
2017-04-20 14:38:51 -04:00
Ben Fry
c890d379c7
Merge pull request #5002 from gohai/arm64
...
Add support for 64-bit ARM boards
2017-04-20 14:37:20 -04:00
Ben Fry
2cca39a176
Merge pull request #4999 from JakubValtar/fix-preproc-comments
...
Fix preproc skipping one char after a block comment
2017-04-17 13:21:28 -04:00
Jakub Valtar
2e36a6c2a8
Styling
2017-04-16 17:24:31 +02:00
Jakub Valtar
f433a1e5ea
Fix breakpoints in inner classes
...
Fixes #2946
2017-04-16 17:22:08 +02:00
gohai
5a5524b197
ARM: Add arm64 support to app, core & mode
...
Currently untested.
2017-04-11 14:44:49 +02:00
Jakub Valtar
ea44b6e22b
Fix preproc skipping one char after a block comment
...
Fixes #4995
2017-04-09 18:52:46 +02:00
gohai
5ff162e20a
IO: Invert OLED example
...
This makes bright pixels be illuminated on the display.
2017-04-05 14:52:22 +02:00
gohai
1df221200b
IO: Update I2CScreen example
...
Hardcode i2c interface, add background, fix indentation
2017-04-03 18:18:46 +02:00
gohai
fb4b054bbe
IO: Compile native code with -ffast-math
2017-03-13 20:31:57 +01:00
gohai
7c49c34cce
IO: Fix SPI.close()
2017-02-26 16:40:27 +01:00
gohai
9025ecee4e
IO: Remove superfluous super in examples
2017-02-26 15:26:32 +01:00
gohai
82e0c8764d
IO: Make waitFor throw an exception in case of a timeout
...
Previously, it returned a boolean indicating success. But the code on the caller-side will be nicer to read with exceptions.
2017-02-26 15:26:32 +01:00
gohai
ad6986caef
IO: Introduce a variant of waitFor that doesn't take a timeout
...
This simplifies the semantic of the variant with three arguments, since we now don't have the "-1 means wait forever" case any longer.
2017-02-26 15:26:25 +01:00
gohai
5b4be31a28
IO: Remove the RPI (Raspberry Pi) class
...
This provided constants that translated from the physical header pin numbers to GPIO lines. Instead, we (and the majority of other Pi related documentation out there) now just use GPIO numbers exclusively.
The class hasn't been used in examples since a few versions, and also wasn't ever properly documented in the reference, so unlikely that many people will notice.
2017-02-22 16:54:03 +01:00
gohai
45fe7a8d73
IO: Rename the (publicly listed) waitForInterrupt function to waitFor
...
This function is used like this:
GPIO.waitFor(pin number, rising/falling/change, timeout or -1)
While it's using an interrupt internally, in the way it is used it doesn't relate to the interrupt functions (attachInterrupt, etc) at all. To prevent confusion, rename it to waitFor. (Another possible name would be waitForPin.)
2017-02-22 16:46:56 +01:00
Jakub Valtar
6ac2529f80
Pass display density from PDE to sketches as a command line arg
2017-02-16 13:24:09 +01:00
Ben Fry
8414512af9
stumbled across spacing issues
2017-02-15 17:55:57 -05:00
Jakub Valtar
ed17f6d21f
Fix preprocessing of code with double backslash in string or char literal
...
Fixes #4903
2017-02-15 15:03:03 +01:00