Skip to content
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

[inversify] Error in construction injection #2451

Closed
AlexTugarev opened this issue Jul 26, 2018 · 1 comment
Closed

[inversify] Error in construction injection #2451

AlexTugarev opened this issue Jul 26, 2018 · 1 comment
Assignees
Labels
bug bugs found in the application

Comments

@AlexTugarev
Copy link
Contributor

It turns out that the construction injection has an important limitation. Subclasses should not add more dependencies as constructor arguments. It's even worse, inversify will plan to inject n arguments of sub's constructor, where n is the number of super constructor arguments, which is silly if you rearrange them in sub.

Injection fails in class FrontendConnectionStatusService extends AbstractConnectionStatusService for instance.

@AlexTugarev AlexTugarev added the bug bugs found in the application label Jul 26, 2018
@AlexTugarev AlexTugarev self-assigned this Jul 26, 2018
@AlexTugarev
Copy link
Contributor Author

it's related to es6! closing this and targeting PR for #2443.

AlexTugarev added a commit that referenced this issue Jul 26, 2018
…ed to es6 (Object.keys)

see #2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
akosyakov pushed a commit that referenced this issue Jul 27, 2018
…ed to es6 (Object.keys)

see #2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
akosyakov pushed a commit that referenced this issue Jul 27, 2018
…ed to es6 (Object.keys)

see #2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
akosyakov pushed a commit that referenced this issue Jul 31, 2018
…ed to es6 (Object.keys)

see #2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
akosyakov pushed a commit that referenced this issue Jul 31, 2018
…ed to es6 (Object.keys)

see #2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
marcdumais-work pushed a commit to marcdumais-work/theia that referenced this issue Oct 15, 2018
…ed to es6 (Object.keys)

see eclipse-theia#2451

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application
Projects
None yet
Development

No branches or pull requests

1 participant