-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello World Instructions don't work #545
Comments
Hi @murphye! How did you manage to create the project, I just did this in a clean VM with stock OpenJDK11
Do you have |
If you go to this page: It implies that you can simply create a |
I'm also having issues getting the hello world project to work on Windows 10 after installing es4x globally using
|
Uninstalled es4x 0.15.0 and tried
|
I also cannot start with es4x due to
My environment:
Any workaround? |
I do see you have Unix like paths in your output. What are you using to install and launch the application? I assume it's not I also need to be fair and say that on windows i pretty much only tested CMD. If you share what's your setup I'll try to get a dev VM to test that mode too. From what I can tell, it must be a path issue translating from Windows to Unix somewhere. |
I used GitBash, now switched to My concern is that after Cleanup: I uninstalled c:\workspace\sandbox>npm uninstall -g @es4x/create
removed 1 package, and audited 2 packages in 37s
found 0 vulnerabilities
c:\workspace\sandbox>rmdir "c:/Users/myuser/AppData/Roaming/nvm/v16.13.1/node_modules/@es4x" The content of cleaned installation dir: c:\workspace\sandbox>dir "c:/Users/myuser/AppData/Roaming/nvm/v16.13.1"
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1
02.01.2022 17:34 <DIR> .
02.01.2022 17:34 <DIR> ..
30.12.2021 17:15 59 385 480 node.exe
02.01.2022 17:05 <DIR> node_modules
30.12.2021 17:15 1 365 npm
30.12.2021 17:15 483 npm.cmd
30.12.2021 17:15 1 507 npx
30.12.2021 17:15 539 npx.cmd
c:\workspace\sandbox>dir "c:/Users/myuser/AppData/Roaming/nvm/v16.13.1/node_modules"
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1\node_modules
02.01.2022 17:01 <DIR> .
02.01.2022 17:01 <DIR> ..
30.12.2021 17:15 <DIR> npm Install c:\workspace\sandbox>npm install -g @es4x/create
added 1 package, and audited 3 packages in 5s
found 0 vulnerabilities Check the content of the installaton directory: c:\workspace\sandbox>dir "c:/Users/myuser/AppData/Roaming/nvm/v16.13.1"
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1
02.01.2022 17:05 <DIR> .
02.01.2022 17:05 <DIR> ..
02.01.2022 17:05 344 es4x
02.01.2022 17:05 343 es4x.cmd
02.01.2022 17:05 877 es4x.ps1
30.12.2021 17:15 59 385 480 node.exe
02.01.2022 17:05 <DIR> node_modules
30.12.2021 17:15 1 365 npm
30.12.2021 17:15 483 npm.cmd
30.12.2021 17:15 1 507 npx
30.12.2021 17:15 539 npx.cmd
8 File(s) 59 390 938 bytes c:\workspace\sandbox>dir /S "c:/Users/myuser/AppData/Roaming/nvm/v16.13.1/node_modules/@es4x"
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1\node_modules\@es4x
02.01.2022 17:05 <DIR> .
02.01.2022 17:05 <DIR> ..
02.01.2022 17:05 <DIR> create
0 File(s) 0 bytes
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1\node_modules\@es4x\create
02.01.2022 17:05 <DIR> .
02.01.2022 17:05 <DIR> ..
02.01.2022 17:05 121 783 asm-9.0.jar
02.01.2022 17:05 <DIR> bin
02.01.2022 17:05 335 042 commons-codec-1.11.jar
02.01.2022 17:05 501 879 commons-lang3-3.8.1.jar
02.01.2022 17:05 118 778 es4x-pm-0.14.0.jar
02.01.2022 17:05 778 156 httpclient-4.5.12.jar
02.01.2022 17:05 328 593 httpcore-4.4.13.jar
02.01.2022 17:05 16 537 jcl-over-slf4j-1.7.30.jar
02.01.2022 17:05 11 357 LICENSE
02.01.2022 17:05 57 824 maven-artifact-3.6.3.jar
02.01.2022 17:05 14 262 maven-builder-support-3.6.3.jar
02.01.2022 17:05 215 412 maven-model-3.6.3.jar
02.01.2022 17:05 192 302 maven-model-builder-3.6.3.jar
02.01.2022 17:05 27 158 maven-repository-metadata-3.6.3.jar
02.01.2022 17:05 149 089 maven-resolver-api-1.6.1.jar
02.01.2022 17:05 45 724 maven-resolver-connector-basic-1.6.1.jar
02.01.2022 17:05 179 584 maven-resolver-impl-1.6.1.jar
02.01.2022 17:05 66 242 maven-resolver-provider-3.6.3.jar
02.01.2022 17:05 38 397 maven-resolver-spi-1.6.1.jar
02.01.2022 17:05 15 645 maven-resolver-transport-file-1.6.1.jar
02.01.2022 17:05 43 618 maven-resolver-transport-http-1.6.1.jar
02.01.2022 17:05 168 478 maven-resolver-util-1.6.1.jar
02.01.2022 17:05 288 package.json
02.01.2022 17:05 85 327 plexus-interpolation-1.25.jar
02.01.2022 17:05 261 801 plexus-utils-3.2.1.jar
02.01.2022 17:05 1 493 README.md
02.01.2022 17:05 41 472 slf4j-api-1.7.30.jar
02.01.2022 17:05 8 510 slf4j-jdk14-1.7.30.jar
27 File(s) 3 824 751 bytes
Directory of c:\Users\myuser\AppData\Roaming\nvm\v16.13.1\node_modules\@es4x\create\bin
02.01.2022 17:05 <DIR> .
02.01.2022 17:05 <DIR> ..
02.01.2022 17:05 2 139 es4x-cli.js
1 File(s) 2 139 bytes Following the steps on https://reactiverse.io/es4x/get-started/install.html#project-tools,
...
let launcher = path.join('node_modules', '.bin', 'es4x-launcher.jar');
if (existsSync(path.join(process.cwd(), launcher))) {
argv.push(`${launcher}${path.delimiter}${path.join(__dirname, '..', pm)}`);
argv.push('io.reactiverse.es4x.ES4X');
const subProcess = spawn(java, argv.concat(process.argv.slice(2)), {
cwd: process.cwd(),
env: process.env,
stdio: 'inherit'
});
subProcess.on('error', (err) => {
console.error(`es4x ERROR: ${err}`);
process.exit(3);
});
subProcess.on('close', process.exit);
} else {
console.error(`Missing ${launcher}`);
process.exit(3);
} Following the steps on https://github.com/reactiverse/es4x#usage, c:\workspace\sandbox>mkdir es4x-hellow
c:\workspace\sandbox>cd es4x-hellow
c:\workspace\sandbox\es4x-hellow>npm init @es4x project
Missing node_modules\.bin\es4x-launcher.jar
npm ERR! code 3
npm ERR! path c:\workspace\sandbox\es4x-hellow
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c es4x "project"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\myuser\AppData\Local\npm-cache\_logs\2022-01-02T16_53_12_344Z-debug.log However, it creates some files:
Result of
Therefore, it is possible to get help now: es4x --help
Usage: java io.reactiverse.es4x.ES4X [COMMAND] [OPTIONS] [arg...]
Commands:
bare Creates a bare instance of vert.x.
dockerfile Creates a generic Dockerfile for building and deploying
the current project.
install Installs required jars from maven to 'node_modules'.
jlink Creates a slim runtime (requires java >= 11).
list List vert.x applications
project Initializes the 'package.json' to work with ES4X.
run Runs a verticle called <main-verticle> in its own instance
of vert.x.
security-policy Initializes a secure by default VM 'security.policy'.
start Start a vert.x application in background
stop Stop a vert.x application
test Runs a Vert.x Unit test called <test-verticle> in its own
instance of vert.x.
version Displays the version.
versions Displays the versions.
vscode Launcher for vscode project.
webstorm Launcher for vscode project.
Run 'java io.reactiverse.es4x.ES4X COMMAND --help' for more information on a
command.
c:\workspace\sandbox\es4x-hellow>es4x versions
VM: OpenJDK 64-Bit Server VM - 11.0.13
VM Vendor: GraalVM CE 21.3.0
Vert.x: 4.0.0
ES4X: 0.14.0
graaljs: 20.3.0 |
Been a while since I tried es4x, so I went right to the Hello World example. Doesn't seem to work.
The text was updated successfully, but these errors were encountered: