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

JS console is being spammed with Promise being deprecated #7409

Closed
turt2live opened this issue Sep 27, 2018 · 9 comments
Closed

JS console is being spammed with Promise being deprecated #7409

turt2live opened this issue Sep 27, 2018 · 9 comments
Labels
P1 T-Task Tasks for the team like planning X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@turt2live
Copy link
Member

Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.

This started happening with the webpack 4 changes

@lampholder lampholder added T-Task Tasks for the team like planning P1 labels Oct 1, 2018
@lampholder
Copy link
Member

The last thing the console needs is more spam.

What's the right way to fix this? Silence the warnings? Or heed them?

@lampholder lampholder added the X-Needs-Info This issue is blocked awaiting information from the reporter label Oct 1, 2018
@turt2live
Copy link
Member Author

I'd vote for fixing them. They seem to be coming from deep within the js-sdk, so this may be non-trivial to fix. I'm not sure suppressing them is a good idea given it's already at the deprecation stage and we risk forgetting about it and having it all break down on us.

@aaronraimist
Copy link
Collaborator

aaronraimist commented Oct 1, 2018

@turt2live
Copy link
Member Author

Hopefully they are all that simple...

aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 3, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 3, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 3, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 5, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 5, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 5, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 5, 2018
Signed-off-by: Aaron Raimist <aaron@raim.ist>
aaronraimist added a commit to aaronraimist/riot-web that referenced this issue Oct 5, 2018
I guess that turns on warnings for everything, not just riot-web

Signed-off-by: Aaron Raimist <aaron@raim.ist>
turt2live added a commit that referenced this issue Oct 9, 2018
 Fix riot-web Promise.defer warnings (#7409)
Ashaman- added a commit to neocrypto-io/riot-web that referenced this issue Oct 9, 2018
* Document how to turn off Piwik and bug reports (element-hq#6738)

* Fix reskindex on matrix-react-side not being called if using build script

* Add text saying that bug reports aren't automatic

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Fix double-closed tags

* Use HTTPS cloning for riot-web too

* Silence bluebird warnings

* Disable webpack-dev-server auto reload

As per comment

* Fix Promise.defer warnings in getconfig.js (element-hq#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Fix Promise.defer warnings in index.js (element-hq#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Fix Promise.defer warnings in WebPlatform.js (element-hq#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Fix lint warnings and turn warnings back on (element-hq#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Undo turning warnings back on (element-hq#7409)

I guess that turns on warnings for everything, not just riot-web

Signed-off-by: Aaron Raimist <aaron@raim.ist>
@dbkr
Copy link
Member

dbkr commented Oct 10, 2018

Current status: I turned the warnings off in #7462 matrix-org/matrix-react-sdk#2198 and matrix-org/matrix-js-sdk#757 . @aaronraimist fixed the ones in riot-web and tuned warnings back on in #7444 but there are still plenty in react-sdk and js-sdk.

@aaronraimist
Copy link
Collaborator

aaronraimist commented Oct 10, 2018

Actually I didn't turn them back on. I tried. It seems like when I did it turned the warnings back on in Riot-web, they also turned back on for matrix-react-sdk and matrox-js-sdk.

There are a few more I can do in matrix-react-sdk but I'm afraid there are a bunch that I'm not sure if I understand enough to be able to rewrite them.

@sparky-raccoon

This comment has been minimized.

@turt2live

This comment has been minimized.

@t3chguy
Copy link
Member

t3chguy commented Dec 17, 2019

Bluebird is now gone :D

@t3chguy t3chguy closed this as completed Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 T-Task Tasks for the team like planning X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

6 participants