angular-eclipse icon indicating copy to clipboard operation
angular-eclipse copied to clipboard

Configuration for "only" project AngularCLI

Open rubensa opened this issue 6 years ago • 6 comments

If you want to "only" use the project instance of AngularCLI (ng command) by "always" setting the install option when creating a new Angular Project, and then you access AngularCLI preferences (Preferences --> JavaScript --> TypeScript --> Angular --> CLI) you get an error message when trying to leave preferences page.

If you keep the default "ng configuration" as "Use ng global installation" and you don't have a global ng installed (as is my case) you get an:

The currently displayed page contains invalid values.

error message that prevents you from leaving the page.

If you change the option to "Use ng custom installation" and select the default value of "${project_loc:node_modules/.bin}" you get the same error message that prevents you from leaving.

The only way to leave the preferences page is by pressing Cancel button (despite you have or have not touched anything).

rubensa avatar Jul 07 '17 12:07 rubensa

I guess you are trying to configure the global preferences, not the project specific preferences right?
In that case, you are right. It is impossible to store project-specific paths, since there is currently no project.
The global preferences page should probably not validate the ng installation path.
However, you can now choose the ng location during the project-creation, by simply selecting "install angular-cli".

probert94 avatar Jul 10 '17 06:07 probert94

Yes, that's what I was doing.

The global preferences page should probably not validate the ng installation path.

Probably that should be the best option for now (or only show a warning, not an error; if that's possible).

rubensa avatar Jul 10 '17 06:07 rubensa

But I guess, the Project-Creation WIzard should be customized again to be able to use the global configuration.
For the moment you can only select "global CLI" and "install CLI". There is no option "use global preferences".
So the global settings won't matter for a newly created CLI-Project, at least for the moment.

probert94 avatar Jul 10 '17 07:07 probert94

@Springrbua can we close this issue?

angelozerr avatar Nov 07 '17 04:11 angelozerr

Yea I think we can close this.
If there are any issues with the new preferences, we should open a new issue

probert94 avatar Nov 07 '17 11:11 probert94

Does this require an update to the documentation?

ronatartifact avatar Nov 12 '18 03:11 ronatartifact