Closed Paulo-Weber closed 4 years ago
Which environment are you using? Windows 10? WSL? Can you please be as specific as possible, then I will try to reproduce.
Admittedly, most of us develop on macOS, but there is me knowingly no real blockers which should prevent you from using Windows. It will be some kind of regression.
Sorry for the inconvenience, will try to reproduce as soon as I know which env you are using.
Extra question: Are you on the next
branch of the repo?
I'm running on Windows 10 Pro 64bits, not a WSL. And using the branch next
.
Prior to this error, I was not being able to run the services that use npm run ...
, because the windows was trying to somehow open the npm.cmd, instead of executing it. So I changed the wicked-pm2.config.js
file, editing all scripts that run npm, to run a bash script that will run npm run ...
So after that I got this error, I'm not sure if this one is related to another.
OK. I will need to look into this. The dev env is currently certainly not optimized for development on Windows. But not saying this must stay like that, we just haven't tried it out.
Running the wicked-cli and the wicked box works though?
Sorry for not responding - I actually had - but GitHub was stuck in some weird limbo state and never accepted my comment.
wicked-cli and wicked box worked just fine. So it's something only on the development environment.
@DonMartin76 Any update on this Issue?
Not yet, no, sorry. I was busy with doing the current release. I'll try to find some time in the next days, but my Windows machine is hopelessly outdated :-D
Amid this Corona thing I have finally managed to arrange for myself a Windows computer in my home office and can now look at this. Grmbl.
I have spent quite some time with this, and I am starting to think it's probably not going to work to run the development environment directly on Windows. Which bash shell have you been using? I have been trying with git bash (mingw) and got pretty far. But then I run into really bad issues.
I will give a WSL setup a try, using the docker engine from Windows via the docker sock, and use a native Ubuntu node installation instead. Let's see whether that works.
I used the mingw as well, and I haven't tried a WSL setup.
I can now reproduce the issue, and I have some ideas what the reason is. It seems to - under certain circumstances - resolve the wrong local IP address. I get two of them, and the scripts pick the wrong one. Using WSL for now, and that works nice in the rest of the aspects. I will try to fix the IP address thing, and then update the docs to work via WSL on Windows.
(I will add this to the official documentation; if you still are having issues, please respond here oor file a new issue)
NOTE: This is not yet adapted to WSL2; this still uses the "old" firs version of WSL.
In the docs now: https://github.com/Haufe-Lexware/wicked.haufe.io/blob/next/doc/development-environment.md
Closing this. Feel free to reopen or create a new issue in case you find other things.
I have a similar error as the described on this issue. The portal can't find the access token,![image](https://user-images.githubusercontent.com/14895907/74840893-871dae80-5306-11ea-9293-b30f9956ca9c.png)
I had tried the
build.sh
script, as thenpm install
on all the subfolders (and./install.sh
) but it still didn't work.Logs from ui-error.log: