Hi,
I have a lot of java code not working since OR stopped working with sub-modules. I already found the reason for some errors but I would need to know if it has more implications in the code by debugging the code. For this reason I want to run OR from IntelliJ, I used to be able to do it without any problem, but now I can’t do it.
The documentation still references using the ‘openremote’ folder which now doesn’t exist using artifacts (i.e. To run the manager app run npm run serve from the /openremote/ui/app/manager directory, or references to this folder inside dev-testing.yml).
If I run the ‘Custom deployment’ configuration from IntelliJ the error is:
INFO [main ] remote.manager.setup.KeycloakInitService : Connecting to Keycloak server: http://127.0.0.1:8081/auth
INFO [main ] remote.manager.setup.KeycloakInitService : Keycloak server not available, waiting...
I’m probably failing in some configuration issue, any hints?
Well, I fixed the keycloak problem by cloning the openremote repository to another location and running dev-testing.yml (changing the path), although I’m not sure if this is the right way to do it. Now I need to see the interface in the web browser, I didn’t manage to run the manager, npm doesn’t work in this case… any ideas please?
If you have a project based on our custom-project template you can run the “Custom Deployment” configuration in IntelliJ IDEA. When it has finished starting you can login to the Manager UI locally via using http://localhost:8080/manager in your browser.
When doing Manager UI development also run npm run serve in the /ui/app/manager directory of your openremote/openremote repository clone. Then you can use http://localhost:9000/manager/ and the browser will automatically reload after making Manager UI changes.
I can see the manager UI in the browser, happy with this, but every 30s the page refreshes and if I’m viewing the graph of some attribute it closes and I have to start again, it’s very annoying. Without any agent/asset I can see the following on the console, just every 30s. Finally I’m using OR 1.2.1 (my java code does not work with newer versions)
It doesn’t work either, although I think this is not necessary for what I want to do, just debug java code, which is the case above and it works except for those “reboots” every 30s.
With npm the error is:
> @openremote/manager@1.3.3 serve
> npx tsc -b --clean && npx shx rm -rf dist lib && npx orutil build && npx cross-env NODE_OPTIONS=--max_old_space_size=4096 webpack serve --mode development
This is not the tsc command you are looking for
To get access to the TypeScript compiler, tsc, from the command line either:
- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages
npm error Lifecycle script `serve` failed with error:
npm error code 1
npm error path /home/paco/openremote/ui/app/manager
npm error workspace @openremote/manager@1.3.3
npm error location /home/paco/openremote/ui/app/manager
npm error command failed
npm error command sh -c npx tsc -b --clean && npx shx rm -rf dist lib && npx orutil build && npx cross-env NODE_OPTIONS=--max_old_space_size=4096 webpack serve --mode development