Commit Graph

24 Commits

Author SHA1 Message Date
Ben Fry
9375c950e6 add missing gson library for LSP (see #564) 2022-11-28 09:00:49 -05:00
Ben Fry
389051f0d9 change source level for build 2022-11-28 06:17:30 -05:00
Ben Fry
91f9824cba update lsp4j from 0.12 to 0.19 2022-11-27 06:42:41 -05:00
Ben Fry
27a6673af6 lsp4j download working 2022-11-26 13:31:48 -05:00
Ben Fry
9eb8877886 adding lsp4j jars and build updates 2022-11-26 13:25:16 -05:00
Ben Fry
8424cbf4fb rolling back non-source changes from 4f21049 2022-11-26 12:30:27 -05:00
kgtkr
ac062a502d Implementation language server 2022-10-01 13:14:02 +09:00
Ben Fry
ca08daa1aa purge VAqua (resolves #129) 2022-01-16 15:30:53 -05:00
A Pottinger
5d56e43a7d Get the tests runnable again. 2021-10-10 11:30:24 -07:00
A Pottinger
22716f9dcd Move vaqua to download on demand instead of staying binary in repo. 2020-04-27 17:05:39 -07:00
A Pottinger
a4f112ce10 Switch to VAqua on Mac for dark mode and non-terrible jfilechooser. 2020-04-19 23:12:50 -07:00
Sam Pottinger
7efe9b0c85 Removed test from the build / run targets but left in for dist.
Refactored ant build chain to allow building / running without execution of tests but ensure tests are run during dist. Note that tests are still runnable under the test target itself. Resolves #8.
2019-11-25 18:09:01 -08:00
Ben Fry
cc12c605d4 Merge branch 'master' of github.com:processing/processing4 2019-10-08 14:34:49 -04:00
Ben Fry
4e51e47a3f removing the Eclipse JDI since we're using a JDK now 2019-10-08 14:34:43 -04:00
A Pottinger
7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
A Samuel Pottinger
ee299ef935 Move to ANTLR 4 with Java 11 lang features and localization. (#5)
* Move to ANTLR 4 with Java 11 lang features and localization.

Introduces ANTLR4 and Java 8 language feature support within IDE while also adding additional hooks for localization of syntax error messages, addressing https://github.com/processing/processing/issues/3054 and https://github.com/processing/processing/issues/3055.

The PR is broadly a continuation of https://github.com/processing/processing/issues/3055, bringing it up to speed with the latest Processing master plus the changes introduced at https://github.com/processing/processing/pull/5753. **Requires https://github.com/processing/processing/pull/5753 as pre-requisite.** This introduces a number of edits beyond https://github.com/processing/processing/issues/3055 beyond compatibility with current Processing master and https://github.com/processing/processing/pull/5753 including:

 - Update to the grammar itself
 - Change ANTLR listeners to emit `TextTransform.Edit` to unify JDT-based `PreprocessingService` and `JavaBuild`, removing code with duplicate purpose.
 - Introduction of syntax error rewriting with support for localization.
 - Addition of complete localized strings set for English and Spanish.
 - Addition of partial localized strings set for other languages.
 - Refactor of ANTLR-related code for testability and readability
 - Expansion of tests including full parse tests for new Java features (type inference, lambdas).

* Ask travis for ant upgrade prior to run.

* Ask Travis for java11 update.

* Add openjdk ppa

* Travis no confirmation on add ppa.

* Force newer ant on travis.

* Swtich ant download to www-us mirror.

* Switch ant to 1.10.7

* Start x for unit tests in travis.

* More complete start x in travis.

* Revert x in travis.

* Try x in services.
2019-10-05 23:34:38 -07:00
A Pottinger
c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
Ben Fry
80eac720c7 preserve file attributes so things don't appear modified; fix some indents lost in tab conversion 2019-04-21 08:12:20 -04:00
gohai
f75fc3762a Update to JNA 4.2.0
The name of the subfolder containing jnidispatch.dll for 64-bit Windows changed as well.
2016-05-07 13:31:27 +02:00
Jakub Valtar
dd8698427c Update app to Java 8 2016-04-02 23:17:25 +02:00
Ben Fry
3b8eb8d167 add an additional warning to be suppressed 2015-04-28 18:44:49 -04:00
Ben Fry
ee38708a03 prevent @SuppressWarnings from being re-added 2015-04-21 07:48:12 -07:00
Ben Fry
8489107f7a automatically insert SuppressWarnings statements after ANTLR makes a mess 2015-04-18 15:30:28 -04:00
Ben Fry
2879da8833 ignoring and adding 2015-01-20 15:48:43 -05:00