1773 Commits

Author SHA1 Message Date
dependabot[bot]
a18403b8f0
Bump com.google.code.gson:gson from 2.7 to 2.8.9 in /file-visitor
Bumps [com.google.code.gson:gson](https://github.com/google/gson) from 2.7 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.7...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-12 15:25:10 +00:00
Renaud Pawlak
8e1bd4daae
Merge pull request #769 from kohlschutter/ck/parentpom
Build everything from parent POM; unbreak github Action build
2023-10-12 17:24:43 +02:00
Christian Kohlschütter
2e4fee12ab Bump version to 4.0.0-SNAPSHOT 2023-10-12 17:16:19 +02:00
Christian Kohlschütter
8bad5285f5 Revert "Remove file-visitor and typescript.java-ts.core modules"
This reverts commit 1ce849d78f0ad7f2af6a719d5af7219467fbfaf0.
2023-10-10 15:41:03 +02:00
Christian Kohlschütter
cecc6d7e52 Add typescript.java.ts.core in-tree copy
This is a modified copy of
[typescript.java](https://github.com/angelozerr/typescript.java)'s
ts.core module.

The source code has been reconstructed from the source jar available at
https://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/ext/typescript.java-ts.core/2.0.4/
since no other place could be found.
2023-10-10 15:40:59 +02:00
Christian Kohlschütter
c80128277f Add in-tree copy of file-visitor
Add a copy of https://github.com/cincheo/file-visitor, which is required
by candy-generator, and unvailable on Maven Central.
2023-10-10 15:40:53 +02:00
Christian Kohlschütter
af5950aeab github: Restore old push/PR behavior 2023-10-10 15:32:53 +02:00
Christian Kohlschütter
f055fd7578 Remove file-visitor and typescript.java-ts.core modules
... to simplify merging to upstream
2023-10-10 15:12:18 +02:00
Christian Kohlschütter
3161d8fd74 github: Use Java 11 2023-10-10 15:06:13 +02:00
Christian Kohlschütter
6b25e16263 parent-pom: Build both core-lib versions (es5/es6) 2023-10-10 15:04:57 +02:00
Christian Kohlschütter
4d5e1c0686 Bump core-lib versions to 5/6.3.1-SNAPSHOT 2023-10-10 15:04:51 +02:00
Christian Kohlschütter
ada265cb28 candy-generator: Use jsweet-core 5.3.0 2023-10-10 15:04:47 +02:00
Christian Kohlschütter
d2441423f0 Add es5 core-lib as module 2023-10-10 15:04:41 +02:00
Christian Kohlschütter
34d6b02cbf core-lib: Disable signing by default, allow snapshots 2023-10-10 15:04:33 +02:00
Christian Kohlschütter
eebd7e54db github: Use checkoutv4 2023-10-10 15:04:26 +02:00
Christian Kohlschütter
70e4483d98 Update github workflow 2023-10-10 15:02:10 +02:00
Christian Kohlschütter
6b0e363edc transpiler: pom: Don't sign by default
Move the gpg signing to a profile, and allow it to be enabled by
specifiying "-Dsigned"
2023-10-10 15:02:04 +02:00
Christian Kohlschütter
f66852ca27 Use system-wide temporary working directories, clean up after use
Previously, jsweet would create temporary directories named ".jsweet" in
the current working directory. These directories would not be cleaned up
after use.

Add a "configured directory" abstraction layer, which controls both
user-provided and default-temporary directories, making sure the
directories and its contents are deleted as soon as they're no longer
needed, or at least upon VM shutdown.
2023-10-10 15:01:37 +02:00
Christian Kohlschütter
75c321b911 Add parent POM 2023-10-10 15:00:51 +02:00
Christian Kohlschütter
5ad2f315aa Allow testing from parent pom; remove test path from transpiler
Previously, testing would fail if not run from within the "transpiler"
directory, e.g., when running tests from a parent POM.

Moreover, there was a hardcoded path to src/test/resources/j4ts.js,
which was controlled by the "useJavaRuntime" flag.

Check if we run from the parent POM and adjust paths accordingly.
Change TMPOUT_DIR from String to File.  Fix the "useJavaRuntime" flag to
actually specify the path to the j4ts.js file (or null to disable).
2023-10-10 15:00:47 +02:00
Louis Grignon
ee4ba96782
Merge pull request #763 from kohlschutter/ck/tsc5.2
Update TypeScript tsc to version 5.2
2023-10-10 14:00:25 +02:00
Louis Grignon
5d4950e31b
Merge pull request #758 from kohlschutter/ck/CandiesTests
test: Rename Angular.java, JQuery.java
2023-10-10 13:43:23 +02:00
Louis Grignon
622a040e56
Merge pull request #765 from kohlschutter/ck/CandyGenBuild
candy-generator: Generate parser by default
2023-10-10 08:51:26 +02:00
Louis Grignon
618d16b02a
Merge pull request #762 from kohlschutter/ck/TsNoCheck
Add support @TsNoCheck annotation, adds "// @ts-nocheck" to TypeScript
2023-10-10 08:34:12 +02:00
Louis Grignon
03c89fa953
Merge pull request #761 from kohlschutter/ck/optLocalBin
Add /opt/local/bin to the Eclipse path workaround
2023-10-10 08:32:36 +02:00
Louis Grignon
dff23e07aa
Merge pull request #760 from kohlschutter/ck/TestFailureAddOpens
test: Fix tests that spawn new processes
2023-10-10 08:32:09 +02:00
Christian Kohlschütter
edb5494b47 candy-generator: Generate parser by default
The parser is currently generated only when a certain build profile is
enabled.

This is hard to figure out, and building time is negligible.

Enable building the parser by default (enable the profile by default).

Should building fail on CI, then the build.xml script should be fixed
instead.
2023-10-06 20:20:44 +02:00
Christian Kohlschütter
c747b081f0 Update TypeScript tsc to version 5.2 2023-10-06 20:02:26 +02:00
Christian Kohlschütter
7b5569d486 Add support @TsNoCheck annotation, adds "// @ts-nocheck" to TypeScript
Typescript would complain about certain errors in the generated file. In
some newer versions of TypeScript, an assert that is always true would
not be permitted.

We currently have two such asserts in our tests, which prevents us from
upgrading the TypeScript version.

Add support for a Java @TsNoCheck annotation, which controls the
inclusion of the corresponding TypeScript comment. While there is no
mandatory package for the annotation, add it to jsweet.lang in core-lib.

Fix tests to use the new annotation.
2023-10-06 20:01:48 +02:00
Christian Kohlschütter
5e38f812aa Add /opt/local/bin to the Eclipse path workaround
In some environments, "node" may not be on the PATH.

Add another path that is commonly supported, /opt/local/bin.

Note that we cannot add /opt/homebrew/bin since there's a dependency
that would need changing as well (typescript.java).

For the time being, it is encouraged to add a symbolic link from
/opt/homebrew/bin/node to /opt/local/bin/node (and npm) if that's
necessary.
2023-10-06 20:00:56 +02:00
Christian Kohlschütter
6495c28ac9 test: Fix tests that spawn new processes
Some tests try to spawn a new Java process for the
JSweetCommandLineLauncher.

These tests fail with new Java versions >= 16.

Specify --add-opens=jdk.compiler/... statements to allow our code to
access the Java Compiler packages under com.sun.tools.javac...
2023-10-06 19:21:08 +02:00
Christian Kohlschütter
0da45da252 test: Rename Angular.java, JQuery.java
Tests would fail because "angular.ts" and "jQuery.ts" would already be
included with a differenent case.

Rename Angular to AngularCandy, JQuery to JQueryCandy, which is also in
line with "BackboneCandy".
2023-10-06 12:54:52 +02:00
Louis Grignon
f71d3da718
Merge pull request #720 from cincheo/dependabot/maven/candy-generator/com.google.code.gson-gson-2.8.9
Bump gson from 2.2.4 to 2.8.9 in /candy-generator
2022-09-02 17:24:30 +02:00
Louis Grignon
2b2cbd7110
Merge pull request #721 from cincheo/dependabot/maven/transpiler/com.google.code.gson-gson-2.8.9
Bump gson from 2.8.6 to 2.8.9 in /transpiler
2022-09-02 17:24:24 +02:00
Louis Grignon
2d6752e695
Merge pull request #735 from vorth/issue-730
Fix for issue #730
2022-09-02 17:23:50 +02:00
Scott Vorthmann
92927bdc93 Fix prior commit
Forgot to stage one removal.
2022-09-01 15:01:42 -07:00
Scott Vorthmann
8692e39ea6 Fixed issue #730
When an overloaded constructor calls another one using "this(...)", the `printInlinedMethod()` function is called
recursively, which initializes the object fields.  In this scenario, we cannot re-initialized those fields after that call,
since we will lose any changes due to constructor parameters passed to `this(...)`.

The fix is completely localized and simple, relying on the existing boolean `skipFirst` variable already set for
the reentrant scenario.
2022-09-01 14:42:23 -07:00
Scott Vorthmann
c6b4a9082b Test for issue 730 added 2022-08-20 22:52:13 -07:00
dependabot[bot]
ac79ba4b22
Bump gson from 2.8.6 to 2.8.9 in /transpiler
Bumps [gson](https://github.com/google/gson) from 2.8.6 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.8.6...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 20:53:34 +00:00
dependabot[bot]
8b9c4a4087
Bump gson from 2.2.4 to 2.8.9 in /candy-generator
Bumps [gson](https://github.com/google/gson) from 2.2.4 to 2.8.9.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-2.2.4...gson-parent-2.8.9)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 20:52:39 +00:00
lgrignon
29dbc704ec fix #702 add new node dir structure lookup for tsc 2021-09-21 07:56:57 +02:00
lgrignon
a65c654532 fix #694 wrapper function should always be null if original function is null 2021-07-28 16:35:04 +02:00
Louis Grignon
02cf01cdda
Merge pull request #691 from cincheo/dependabot/maven/candy-generator/org.apache.httpcomponents-httpclient-4.5.13
Bump httpclient from 4.5.2 to 4.5.13 in /candy-generator
2021-07-19 19:04:17 +02:00
Louis Grignon
414943332c
Merge pull request #688 from cincheo/dependabot/maven/candy-generator/commons-io-commons-io-2.7
Bump commons-io from 2.4 to 2.7 in /candy-generator
2021-07-19 19:03:49 +02:00
Louis Grignon
24915be131
Merge pull request #687 from cincheo/dependabot/maven/transpiler/commons-io-commons-io-2.7
Bump commons-io from 2.4 to 2.7 in /transpiler
2021-07-19 19:02:51 +02:00
lgrignon
6aff99e78c bump ts.java 2021-07-19 18:59:30 +02:00
Louis Grignon
ac8ef70abd
Merge pull request #696 from AlexGeller1/feat-hanging-tsc-timeout
- Added configurable option "hangingTscTimeout" which configures the …
2021-07-19 18:53:23 +02:00
Alex Geller
5752ffa3f4 - Made "if" body a compound statement
- Removed method parameter (hangingTscTimeout) that was accesible via
  another method parameter (JSweetOptions)
2021-07-19 15:33:01 +02:00
Alex Geller
99a96d2a01 - Added configurable option "hangingTscTimeout" which configures the duration in seconds after which a TSC compilation is considered to be hanging and therefore is aborted 2021-07-13 13:37:16 +02:00
dependabot[bot]
521cbccc0d
Bump httpclient from 4.5.2 to 4.5.13 in /candy-generator
Bumps httpclient from 4.5.2 to 4.5.13.

---
updated-dependencies:
- dependency-name: org.apache.httpcomponents:httpclient
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-04 01:32:51 +00:00