cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

Missing imports in generated TS #535

Closed RamiroWincor closed 4 years ago

RamiroWincor commented 5 years ago

I have a custom module that I am using in my code, so I made a API bridge for it. My code import the bridge and use it in the code and the generated TS matches with that, but the generated TS is not including the import to the bridge module, so TSC just generate errors like "ERROR output:55 - cannot find name" it does still generate the final JS wich I did not expect.

Creating a bundle works as expected as all TS is bundled so no import is needed for JS generation.

I am using the lastest maven plugin (but tested with previous ones with the same results) and after searching for whatever I could be doing wrong I think I am doing everything as expected. I have attached my project so you can try it (you will need to remove the parent from the pom, everything else should be fine). pumaWampy.zip

Maven traces:

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< com.dieboldnixdorf:pumaWampy >--------------------
[INFO] Building pumaWampy 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pumaWampy ---
[INFO] Deleting C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target
[INFO] 
[INFO] --- jsweet-maven-plugin:2.3.1-SNAPSHOT:jsweet (generate-bundle) @ pumaWampy ---
[INFO] maven version: 3.5.3
[INFO] JSweet transpiler version 2.3.1-SNAPSHOT (build date: 2019-06-23 09:31:20)
[INFO] dependencies=[Dependency {groupId=org.jsweet, artifactId=jsweet-core, version=6.0.1-SNAPSHOT, type=jar}]
[INFO] candies detection: add project dependency Dependency {groupId=org.jsweet, artifactId=jsweet-core, version=6.0.1-SNAPSHOT, type=jar} => org.jsweet:jsweet-core:jar:6.0.1-SNAPSHOT:compile
[INFO] all candies artifacts: [org.jsweet:jsweet-core:jar:6.0.1-SNAPSHOT:compile (1; enabled)]
[INFO] candies jars: [C:\Users\ramiro.aparicio.ext\.m2\repository\org\jsweet\jsweet-core\6.0.1-SNAPSHOT\jsweet-core-6.0.1-SNAPSHOT.jar]
[INFO] classpath from maven: C:\Users\ramiro.aparicio.ext\.m2\repository\org\jsweet\jsweet-core\6.0.1-SNAPSHOT\jsweet-core-6.0.1-SNAPSHOT.jar
[INFO] jsOut: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\javascript\modules
[INFO] bundle: null
[INFO] tsOut: null
[INFO] tsOnly: null
[INFO] tsserver: null
[INFO] declarations: null
[INFO] ignoreDefinitions: null
[INFO] declarationOutDir: null
[INFO] candiesJsOutDir: null
[INFO] ecmaTargetVersion: ES6
[INFO] moduleKind: es2015
[INFO] sourceMap: null
[INFO] sourceRoot: null
[INFO] verbose: true
[INFO] veryVerbose: null
[INFO] jdkHome: C:\Program Files\Java\jdk1.8.0_131\jre
[INFO] factoryClassName: null
[INFO] ignoredProblems: null
2019-07-10 12:57:02.002 DEBUG JSweetConfig:107 - adding tools.jar in classpath
2019-07-10 12:57:02.002 DEBUG JSweetConfig:110 - lookup in C:\Program Files\Java\jdk1.8.0_131\jre
2019-07-10 12:57:02.002 DEBUG JSweetConfig:141 - updated classpath with: C:\Program Files\Java\jdk1.8.0_131\jre\..\lib\tools.jar
2019-07-10 12:57:02.002 DEBUG JSweetConfig:146 - updated classpath with: file:/C:/WORK/PruebasWorkspace/jsiWampGenerator/pumaWampy/jsweet_extension
[INFO] extraSystemPath: null
2019-07-10 12:57:02.002 DEBUG JSweetConfig:91 - tools.jar already in classpath
2019-07-10 12:57:02.002 DEBUG JSweetConfig:99 - extension dir already in classpath
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:403 - no configuration file found at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\jsweetconfig.json
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:508 - creating transpiler version 2.3.1-SNAPSHOT (build date: 2019-06-23 09:31:20)
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:510 - current dir: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\.
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:511 - base directory: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:512 - working directory: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\.jsweet
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:513 - tsOut: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts - C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:514 - jsOut: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\javascript\modules - C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\javascript\modules
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:515 - candyJsOut: null
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:516 - factory: org.jsweet.transpiler.JSweetFactory@3113a37
2019-07-10 12:57:02.002 DEBUG JSweetTranspiler:517 - compile classpath: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\jsweet_extension;C:\Users\ramiro.aparicio.ext\.m2\repository\org\jsweet\jsweet-core\6.0.1-SNAPSHOT\jsweet-core-6.0.1-SNAPSHOT.jar
2019-07-10 12:57:02.002 DEBUG JSweetTranspiler:518 - runtime classpath: C:\Users\ramiro.aparicio.ext\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.9.0.20180606-2035\jars\plexus-classworlds-2.5.2.jar
2019-07-10 12:57:02.002 DEBUG JSweetTranspiler:519 - extension directory: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\jsweet_extension
2019-07-10 12:57:02.002 INFO  CandyProcessor:117 - candies processor classpath: C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\jsweet_extension;C:\Users\ramiro.aparicio.ext\.m2\repository\org\jsweet\jsweet-core\6.0.1-SNAPSHOT\jsweet-core-6.0.1-SNAPSHOT.jar
2019-07-10 12:57:02.002 INFO  CandyProcessor:132 - extracted candies directory is set to default
2019-07-10 12:57:02.002 INFO  CandyProcessor:135 - extracted candies directory: null
[INFO] source includes: {}
[INFO] source excludes: {}
[INFO] sources paths: [C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java]
[INFO] sources paths from resources: [C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java]
[INFO] sourceFiles=[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\def\wampy\Wampy.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBarCodeReaderPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBeeperPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCameraPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardDispenserPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardEmbossPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCheckReaderPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsCylindersDispenserPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDepositPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDispenserPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDepositPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDiagnosticsPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDispenserPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDocumentPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceJournalPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceNotesDepositPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePassBookPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePinPadPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceReceiptPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceScalePuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSensorsPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSystemPuma.java, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceTTUPuma.java]
2019-07-10 12:57:02.002 DEBUG ProcessUtil:66 - extra path: 
2019-07-10 12:57:02.002 INFO  CandyProcessor:220 - 1 candies found in classpath
2019-07-10 12:57:02.002 INFO  CandyProcessor:157 - candies are up to date
2019-07-10 12:57:02.002 DEBUG JSweetTranspiler:624 - encoding: null
2019-07-10 12:57:02.002 DEBUG JSweetTranspiler:628 - strict mode: false
2019-07-10 12:57:02.002 INFO  JSweetTranspiler:736 - ENTER phase: RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\def\wampy\Wampy.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBarCodeReaderPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBeeperPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCameraPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardDispenserPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardEmbossPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCheckReaderPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsCylindersDispenserPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDepositPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDispenserPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDepositPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDiagnosticsPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDispenserPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDocumentPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceJournalPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceNotesDepositPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePassBookPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePinPadPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceReceiptPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceScalePuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSensorsPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSystemPuma.java],RegularFileObject[C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceTTUPuma.java]
2019-07-10 12:57:03.003 INFO  JSweetTranspiler:744 - ATTRIBUTE phase
2019-07-10 12:57:03.003 INFO  JSweetTranspiler:747 - FLOW phase
2019-07-10 12:57:03.003 INFO  JSweetTranspiler:753 - REPORT DEFERRED phase
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\def\wampy\Wampy.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: def\wampy\Wampy.d.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\def\wampy\Wampy.d.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBarCodeReaderPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceBarCodeReaderPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceBarCodeReaderPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBeeperPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceBeeperPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceBeeperPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCameraPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCameraPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCameraPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardDispenserPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCardDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardEmbossPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCardEmbossPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardEmbossPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCardPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCheckReaderPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCheckReaderPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCheckReaderPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsCylindersDispenserPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCoinsCylindersDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsCylindersDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDepositPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCoinsDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDispenserPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceCoinsDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDepositPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDiagnosticsPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceDiagnosticsPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDiagnosticsPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDispenserPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDispenserPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDocumentPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceDocumentPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDocumentPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceJournalPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceJournalPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceJournalPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceNotesDepositPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceNotesDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceNotesDepositPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePassBookPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServicePassBookPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServicePassBookPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePinPadPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServicePinPadPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServicePinPadPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceReceiptPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceReceiptPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceReceiptPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceScalePuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceScalePuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceScalePuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSensorsPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceSensorsPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceSensorsPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSystemPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceSystemPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceSystemPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:938 - scanning C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceTTUPuma.java...
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:959 - output file: wampyJSI\JamServiceTTUPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:984 - created C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceTTUPuma.ts
2019-07-10 12:57:04.004 INFO  JSweetTranspiler:859 - ts2js on org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler@4d71476c sourceFiles=24
2019-07-10 12:57:04.004 DEBUG TypeScript2JavaScriptWithTscTranspiler:33 - ts2js with TSC: [C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\def\wampy\Wampy.d.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceBarCodeReaderPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceBeeperPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCameraPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardDispenserPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardEmbossPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCardPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCheckReaderPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsCylindersDispenserPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsDepositPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceCoinsDispenserPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDepositPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDiagnosticsPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDispenserPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceDocumentPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceJournalPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceNotesDepositPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServicePassBookPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServicePinPadPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceReceiptPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceScalePuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceSensorsPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceSystemPuma.ts, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts\wampyJSI\JamServiceTTUPuma.ts]
2019-07-10 12:57:04.004 INFO  TypeScript2JavaScriptWithTscTranspiler:80 - launching tsc...
2019-07-10 12:57:04.004 DEBUG ProcessUtil:225 - run command: C:\Users\ramiro.aparicio.ext\.jsweet-node_modules\tsc.cmd --target ES6 --module es2015 --moduleResolution classic --experimentalDecorators --emitDecoratorMetadata --rootDir C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts --outDir C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\javascript\modules .tsc-rootfile.ts def\wampy\Wampy.d.ts wampyJSI\JamServiceBarCodeReaderPuma.ts wampyJSI\JamServiceBeeperPuma.ts wampyJSI\JamServiceCameraPuma.ts wampyJSI\JamServiceCardDispenserPuma.ts wampyJSI\JamServiceCardEmbossPuma.ts wampyJSI\JamServiceCardPuma.ts wampyJSI\JamServiceCheckReaderPuma.ts wampyJSI\JamServiceCoinsCylindersDispenserPuma.ts wampyJSI\JamServiceCoinsDepositPuma.ts wampyJSI\JamServiceCoinsDispenserPuma.ts wampyJSI\JamServiceDepositPuma.ts wampyJSI\JamServiceDiagnosticsPuma.ts wampyJSI\JamServiceDispenserPuma.ts wampyJSI\JamServiceDocumentPuma.ts wampyJSI\JamServiceJournalPuma.ts wampyJSI\JamServiceNotesDepositPuma.ts wampyJSI\JamServicePassBookPuma.ts wampyJSI\JamServicePinPadPuma.ts wampyJSI\JamServiceReceiptPuma.ts wampyJSI\JamServiceScalePuma.ts wampyJSI\JamServiceSensorsPuma.ts wampyJSI\JamServiceSystemPuma.ts wampyJSI\JamServiceTTUPuma.ts
2019-07-10 12:57:04.004 DEBUG ProcessUtil:240 - started [C:\Users\ramiro.aparicio.ext\.jsweet-node_modules\tsc.cmd, --target, ES6, --module, es2015, --moduleResolution, classic, --experimentalDecorators, --emitDecoratorMetadata, --rootDir, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\target\ts, --outDir, C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\javascript\modules, .tsc-rootfile.ts, def\wampy\Wampy.d.ts, wampyJSI\JamServiceBarCodeReaderPuma.ts, wampyJSI\JamServiceBeeperPuma.ts, wampyJSI\JamServiceCameraPuma.ts, wampyJSI\JamServiceCardDispenserPuma.ts, wampyJSI\JamServiceCardEmbossPuma.ts, wampyJSI\JamServiceCardPuma.ts, wampyJSI\JamServiceCheckReaderPuma.ts, wampyJSI\JamServiceCoinsCylindersDispenserPuma.ts, wampyJSI\JamServiceCoinsDepositPuma.ts, wampyJSI\JamServiceCoinsDispenserPuma.ts, wampyJSI\JamServiceDepositPuma.ts, wampyJSI\JamServiceDiagnosticsPuma.ts, wampyJSI\JamServiceDispenserPuma.ts, wampyJSI\JamServiceDocumentPuma.ts, wampyJSI\JamServiceJournalPuma.ts, wampyJSI\JamServiceNotesDepositPuma.ts, wampyJSI\JamServicePassBookPuma.ts, wampyJSI\JamServicePinPadPuma.ts, wampyJSI\JamServiceReceiptPuma.ts, wampyJSI\JamServiceScalePuma.ts, wampyJSI\JamServiceSensorsPuma.ts, wampyJSI\JamServiceSystemPuma.ts, wampyJSI\JamServiceTTUPuma.ts]
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceBarCodeReaderPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBarCodeReaderPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceBarCodeReaderPuma.ts(94,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBarCodeReaderPuma.java(102)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceBeeperPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBeeperPuma.java(12)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceBeeperPuma.ts(106,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceBeeperPuma.java(101)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCameraPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCameraPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCameraPuma.ts(132,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCameraPuma.java(140)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardDispenserPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardDispenserPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardDispenserPuma.ts(215,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardDispenserPuma.java(215)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardEmbossPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardEmbossPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardEmbossPuma.ts(194,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardEmbossPuma.java(203)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardPuma.java(14)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCardPuma.ts(369,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCardPuma.java(362)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCheckReaderPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCheckReaderPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCheckReaderPuma.ts(521,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCheckReaderPuma.java(482)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsCylindersDispenserPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsCylindersDispenserPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsCylindersDispenserPuma.ts(384,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsCylindersDispenserPuma.java(360)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsDepositPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDepositPuma.java(12)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsDepositPuma.ts(335,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDepositPuma.java(294)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsDispenserPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDispenserPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceCoinsDispenserPuma.ts(384,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceCoinsDispenserPuma.java(360)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDepositPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDepositPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDepositPuma.ts(281,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDepositPuma.java(281)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDiagnosticsPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDiagnosticsPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDiagnosticsPuma.ts(89,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDiagnosticsPuma.java(97)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDispenserPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDispenserPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDispenserPuma.ts(379,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDispenserPuma.java(355)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDocumentPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDocumentPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceDocumentPuma.ts(266,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceDocumentPuma.java(242)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceJournalPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceJournalPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceJournalPuma.ts(159,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceJournalPuma.java(151)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceNotesDepositPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceNotesDepositPuma.java(15)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceNotesDepositPuma.ts(615,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceNotesDepositPuma.java(553)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServicePassBookPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePassBookPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServicePassBookPuma.ts(291,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePassBookPuma.java(267)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServicePinPadPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePinPadPuma.java(14)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServicePinPadPuma.ts(850,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServicePinPadPuma.java(878)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceReceiptPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceReceiptPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceReceiptPuma.ts(224,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceReceiptPuma.java(208)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceScalePuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceScalePuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceScalePuma.ts(106,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceScalePuma.java(106)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceSensorsPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSensorsPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceSensorsPuma.ts(385,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSensorsPuma.java(385)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceSystemPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSystemPuma.java(12)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceSystemPuma.ts(169,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceSystemPuma.java(168)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceTTUPuma.ts(5,14): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceTTUPuma.java(13)
2019-07-10 12:57:08.008 INFO  TypeScript2JavaScriptWithTscTranspiler:90 - wampyJSI/JamServiceTTUPuma.ts(131,37): error TS2304: Cannot find name 'Wampy'.
2019-07-10 12:57:08.008 ERROR output:55 - cannot find name 'Wampy' at C:\WORK\PruebasWorkspace\jsiWampGenerator\pumaWampy\src\main\java\wampyJSI\JamServiceTTUPuma.java(141)
2019-07-10 12:57:08.008 INFO  JSweetTranspiler:843 - transpilation process finished in 5783 ms 
> java2ts: 2364.893479ms
> ts2js: 3376.197334ms

[ERROR] transpilation failed
org.apache.maven.plugin.MojoFailureException: transpilation failed with 46 error(s) and 0 warning(s)
    at org.jsweet.AbstractJSweetMojo.transpile(AbstractJSweetMojo.java:526)
    at org.jsweet.JSweetMojo.execute(JSweetMojo.java:43)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.710 s
[INFO] Finished at: 2019-07-10T12:57:08+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:2.3.1-SNAPSHOT:jsweet (generate-bundle) on project pumaWampy: transpilation failed: transpilation failed with 46 error(s) and 0 warning(s) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
RamiroWincor commented 5 years ago

I kept thinking on this issue and there is no import as there is no need for it, only the type reference is needed for TSC. I have no previous experiencie with TS but after looking around what it is missing is the "/// <reference path=" for the type definition. I asume that as we are not using the class anywhere (just objects of that class, not as if we were creating new objects) the generated TSC does not add the import wich is nice but also it is not creating the reference when it should.

lgrignon commented 5 years ago

Hello, thanks for reporting

I assume Wampy is accessible globally.

You should be packaging Wampy JSweet definition as a JSweet candy: https://github.com/cincheo/jsweet/blob/master/doc/jsweet-language-specifications.md#packaging-a-jsweet-jar-candy It is the best way to create a bridge to a JS / TS API. And then, you add it as a maven dependency in your project. This should solve your problems. Also, I recommend that you use package-info.java in def.wampy and wampyJSI

@jsweet.lang.Root()
package def.wampy;

Please close issue if your problem get solved

RamiroWincor commented 5 years ago

Hi, It is not globally accesible but it is ony a type dependency. You can check the code but it is something like this:

public class A {
    private B client;
    public void c (B param) {
       param.test();
    }
}

B is used in TS but not in JS as all B references are just for typing, so no import is needed. I moved the bridge (that was in the project) to an external candy but I see no diference even including or not the Root package-info.java annotations.

Just for reference here is my bridge:

package def.wampy;

import java.util.function.Consumer;

import def.js.Promise;

@jsweet.lang.Interface
public abstract class Wampy extends def.js.Object {
    public native Promise<Object> call(String topicURI, def.js.Array<Object> payload);
    public native Promise<Object> call(String topicURI);
    public native Wampy subscribe(String paramString, Consumer<java.lang.Object> paramConsumer);
}

And this is one of the classes that use it:

package wampyJSI;

import def.js.Promise;
import def.wampy.Wampy;
import java.lang.Object;
import java.lang.String;

public class JamServiceBeeperPuma {
    String name;

    Wampy client;

    public Promise<Object> run() {
        return client.call(name + ".run");
    }
    public void configureClient(Wampy client, String name) {
        this.client = client;
        this.name = name;
    }
}
lgrignon commented 5 years ago

Yes, I understand that it is only to create type definitions byt I was talking about the Wampy library itself. It shouldn't be imported as a module, it's used as a global scope variable, right? Do you need to import Wampy module or is it just a lib you access with a global reference, that's the question. According to this it seems that it's a global lib.

Either ways, you have to put your definitions in a candy, packaged in the way described at link I sent you.

You have plenty of examples here: https://github.com/jsweet-candies

Please tell me if you have everything you need.