angular-eclipse
angular-eclipse copied to clipboard
Configuration for "only" project AngularCLI
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).
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".
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).
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.
@Springrbua can we close this issue?
Yea I think we can close this.
If there are any issues with the new preferences, we should open a new issue
Does this require an update to the documentation?