Skip to content

explain which singleton is already instanciated#398

Merged
minrk merged 1 commit intoipython:masterfrom
ankostis:singleton_errlog
May 3, 2017
Merged

explain which singleton is already instanciated#398
minrk merged 1 commit intoipython:masterfrom
ankostis:singleton_errlog

Conversation

@ankostis
Copy link
Contributor

@ankostis ankostis commented May 3, 2017

Improve the message when signleton instanciation fails because configurables already exist, by printing which is the offending class. Without this PR, in case there are many subclass candidates for a singleton, you need a debugger to identify which one has been instantiated on run-time.

This is the new error message:

An incompatible sibling of 'MyClass' is already instanciated as singleton: TerminalIPythonApp

instead of just:

Multiple incompatible subclass instances of MyClass are being created.

@ankostis ankostis changed the title fix(conf): explain which singleton is already instanciated feat(conf): explain which singleton is already instanciated May 3, 2017
@minrk minrk merged commit 3d41bb7 into ipython:master May 3, 2017
@minrk minrk changed the title feat(conf): explain which singleton is already instanciated explain which singleton is already instanciated May 3, 2017
@minrk minrk added this to the 5.0 milestone May 3, 2017
@Carreau Carreau added 5.0-re-review Need to re-review for potential API impact changes. 5.0-no-incidence change that has noincidence on 5.0 compat (eg: doc) and removed 5.0-re-review Need to re-review for potential API impact changes. labels Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.0-no-incidence change that has noincidence on 5.0 compat (eg: doc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants