-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
[BUG] au new project
never returns on windows with GIT Bash shell
#859
Comments
does return for me. |
Well, modify
cli.run(commandName, commandArgs)
.then(() => {
process.exit(); // add explicit exist
})
.catch((error) => {
console.log(error);
process.exit(1);
}); |
I'm experiencing this same problem, only with git bash, power shell is fine. What I am noticing in task manager is this,
At no point, during the running of au new is the first node process ever killed. If I kill that process either using "End Task" in task manager or CRTL-C in git bash then the au new process completes, as you would expect. |
@lancelot316 thx for your inside. Can you try modify your global cli's |
@huochunpeng your code will fix the “an new” problem, but it breaks “au run” |
Thx, I did not try that. |
It feels like something is holding some resource like file handler or socket, which prevents nodejs to exit. |
@lancelot316 could you try another round of test without my fix? I just found out with default cli 0.33.1 (by clean re-install @si2030, does |
@huochunpeng no
I'm not getting the |
As a Mac user, I tried. Some Windows master needs to jump in here. The problem is we don’t know what edge condition on Windows triggers this issue. It seems like majority of Windows users are not affected. |
The webpack error is known : #852. Webpack is looking into it. Any information to reproduce is welcome |
I bet it is again some external dependency... like node (-: |
This one is likely related: #269, but without a way to reproduce the problem it’s difficult to debug and fix |
This is likely related to these two issues. if I pull up a cmd window and run |
It is related to webpack 4.2. I have intentionally left all my webpack dependencies at version 4.1.1 when I first saw this issue mentioned and have not had this problem even once. As a workaround, you can use the |
to summarize - au new - not working because of git bash to workaround git bash - use bloody cmd (-: right? |
@Alexander-Taran Yes, au new works fine for me in both power shell and cmd. It is just git bash that has the problem. |
@JeroenVinke tested in requirejs based app, my previous fix in To improve compatibility with GIT bash shell on Windows. It is possible to create a new activity in {
"id": 1100,
"type": "project-install"
// currently project-install has no nextActivity
"nextActivity": point_to_new_activitiy_for_exit
}, @Alexander-Taran a proper shell is very important for non-Windows users 😄 |
au new project
never returns on windowsau new project
never returns on windows with GIT Bash shell
proper shell would be proper bash on windows.. which is totally supported in windows 10 |
Thx, will try that. |
Indeed, that bash is a proper shell. It works. |
apt-get is your friend.. I think (-: |
Yes, I am talking about the nodejs/npm versions installed by apt-get. I might use nodenv to get better nodejs. |
Can't you add another source? |
Probably yes. But using nodenv can avoid apt-get and sudo. Doesn't matter, I can keep using and testing nodejs v4 (which I never did) on Windows. |
can be closed then |
I'm submitting a bug report
Library Version:
0.33.1
Operating System:
Windows 10
Node Version:
8.9.4 and 9.9.0
NPM Version:
5.6.0, 5.8.0
Browser:
N/A
Language:
all
Loader/bundler:
all
Current behavior:
au new project
command never returns back to shell.It does nothing after "Happy Coding!" or "Dependencies not installed." depending on whether you choose install the dependencies or not.
This issue was raised from https://discourse.aurelia.io/t/problems-with-the-cli/989
Read more there.
Well, it should return.
The text was updated successfully, but these errors were encountered: