eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
190 stars 71 forks source link

Angular: Editor does not recognize nested projects are using parents tsconfig #383

Closed bes1002t closed 3 years ago

bes1002t commented 4 years ago

I have an angular9 project with two subprojects in 'projects' directory. I imported the subprojects using 'configure > Configure and detect nested projects' from context menu. So I have 3 projects in eclipse, but two of them are subprojects.

In my main project I configured "experimentalDecorators": true' in tsconfig, but in the subprojects I always get this error: "Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."

mickaelistria commented 4 years ago

I'm not much familiar with Angular project. Are you sure the tsconfig settings are supposed to be propagated to children in that case? I though it's one tsconfig per "module". Note that you don't need all 3 projects, you can totally work with a single project (the top level one) and code directly from folders of this project. However, if you prefer 3 projects, it should be fine too.

bes1002t commented 4 years ago

@mickaelistria angular documentation says yes: "Project-specific TypeScript configuration files inherit from the workspace-wide tsconfig.json"

so there are project specific 'tsconfig.app.json' files, but they inehrit everything from main projects 'tsconfig.json' and only subproject specific configs should be changed in 'tsconfig.app.json'.

mickaelistria commented 4 years ago

@mickaelistria https://github.com/mickaelistria angular documentation says yes: "Project-specific TypeScript configuration files inherit from the workspace-wide tsconfig.json"

OK, and is it made explicit what "workspace-wide" means technically?

bes1002t commented 4 years ago

Note that you don't need all 3 projects, you can totally work with a single project (the top level one) and code directly from folders of this project. However, if you prefer 3 projects, it should be fine too.

yes I don't need three projects, but its easier to handle them this way instead of clicking through the projects directory. By importing only the projects I want, I don't have to handle all subprojects.

OK, and is it made explicit what "workspace-wide" means technically?

the workspace in angular is everything inside the main projects root directory. From Angular doc: "All projects within a workspace share a CLI configuration context. The top level of the workspace contains workspace-wide configuration files, configuration files for the root-level application, and subfolders for the root-level application source and test files."

mickaelistria commented 3 years ago

Can you please try latest release of Wild Web Developer and report whether this issue still happens?

bes1002t commented 3 years ago

The latest version is broken. I've updated, now there is no editor anymore and .ts files are opened via chrome per default... After the update I'm not able to work with this plugin anymore. Either I have to update my eclipse version or downgrade the plugin I guess

mickaelistria commented 3 years ago

Have you verified Wild Web Developer is correctly installed?

bes1002t commented 3 years ago

How do I verify that? I used the Eclipse market place to install the plugin.

I worked with it for months without an issue -> updated -> nothing works anymore. Uninstalled it, reinstalled it, still nothing works. I'm going to update Eclipse tomorrow and hope the latest version of booth tools are working together.

mickaelistria commented 3 years ago

Can you look in the eclipse log (/.metadata/.log) if there is anything interesting?

bes1002t commented 3 years ago

While installing the current version, I get the following error: Cannot complete the install because one or more required items could not be found. Software being installed: Wild Web Developer 0.10.5.202012011111 (org.eclipse.wildwebdeveloper.feature.feature.group 0.10.5.202012011111) Missing requirement: Manager for embedded Node.js 0.2.1.202011222154 (org.eclipse.wildwebdeveloper.embedder.node 0.2.1.202011222154) requires 'osgi.bundle; org.eclipse.core.runtime 3.18.0' but it could not be found Cannot satisfy dependency: From: Wild Web Developer: web development in Eclipse IDE 0.5.13.202012011111 (org.eclipse.wildwebdeveloper 0.5.13.202012011111) To: osgi.bundle; org.eclipse.wildwebdeveloper.embedder.node 0.2.0 Cannot satisfy dependency: From: Wild Web Developer 0.10.5.202012011111 (org.eclipse.wildwebdeveloper.feature.feature.group 0.10.5.202012011111) To: org.eclipse.equinox.p2.iu; org.eclipse.wildwebdeveloper [0.5.13.202012011111,0.5.13.202012011111]

So I think I need to update eclipse.

mickaelistria commented 3 years ago

Are you using latest release of the Eclipse IDE?

bes1002t commented 3 years ago

Not yet, otherwhise I could not update eclipse :D I will give you an update on monday. I just have to update the whole java environment on my linux system and make sure no other tools are negatively affected by this.

bes1002t commented 3 years ago

Ok Update:

New Eclipse version:

Thanks a lot for your help :)