Repeated overwrite warnings accumulate on each recompilation

Open
#7,774 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

The report reproduces this by evaluating a .include line and recompiling the class library repeatedly; it does not name implementation files or tests. Start by tracing how class library recompilation reports extension method overwrites, then reproduce the steps and check that each recompilation posts the warning only once.

Written by the indexing model from the issue text.

Description

bug comp: class library

Environment

  • SuperCollider version: SuperCollider 3.15.0-dev, Built from branch 'develop' [831a11f]
  • Operating system: macOS, Windows
  • Other details (Qt version, audio driver, etc.):

Steps to reproduce

  1. Evaluate:
    "https://gitlab.com/rd--/sc3-dot".include
    
  2. Recompile
  3. Recompile again and see the post window
  4. Recompile again and see the post window

Expected vs. actual behaviour

Expected behaviour

From step 2 to 4, the post window should post the same output as follows:

Compiling class library...
	Found 879 primitives.
	Compiling directory 'C:\Users\prko\Downloads\SuperCollider\SCClassLibrary'
	Compiling directory 'C:\ProgramData\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\Vowel'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot'
	5783 method selectors, 2292 classes
	method table size 14164264 bytes
	big table size 106037088 bytes
	Number of Symbols 12936
	compiled in 4.68 seconds

Info: 3 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

Compile done.
Initialising runtime.
Executing 'Process.startup'...
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree initialized in 0.06 seconds
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
Intentional overwrites must be put in a 'SystemOverwrites' subfolder.


*** Welcome to SuperCollider 3.15.0-dev. *** For help press Ctrl-D.
Actual behaviour

The following message is repeatedly posted in sequence:

WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
  • At step 3, twice.
  • At step 4, three times.

See the complete output:

Compiling class library...
	Found 879 primitives.
	Compiling directory 'C:\Users\prko\Downloads\SuperCollider\SCClassLibrary'
	Compiling directory 'C:\ProgramData\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\Vowel'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot'
	5783 method selectors, 2292 classes
	method table size 14164264 bytes
	big table size 106037088 bytes
	Number of Symbols 12936
	compiled in 4.68 seconds

Info: 3 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

Compile done.
Initialising runtime.
Executing 'Process.startup'...
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree initialized in 0.06 seconds
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
Intentional overwrites must be put in a 'SystemOverwrites' subfolder.


*** Welcome to SuperCollider 3.15.0-dev. *** For help press Ctrl-D.
Compiling class library...
	Found 879 primitives.
	Compiling directory 'C:\Users\prko\Downloads\SuperCollider\SCClassLibrary'
	Compiling directory 'C:\ProgramData\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\Vowel'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot'
	5783 method selectors, 2292 classes
	method table size 14164264 bytes
	big table size 106037088 bytes
	Number of Symbols 12936
	compiled in 0.59 seconds

Info: 3 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

Compile done.
Initialising runtime.
Executing 'Process.startup'...
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree initialized in 0.02 seconds
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
Intentional overwrites must be put in a 'SystemOverwrites' subfolder.


*** Welcome to SuperCollider 3.15.0-dev. *** For help press Ctrl-D.
Compiling class library...
	Found 879 primitives.
	Compiling directory 'C:\Users\prko\Downloads\SuperCollider\SCClassLibrary'
	Compiling directory 'C:\ProgramData\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\Extensions'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\Vowel'
	Compiling directory 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot'
	5783 method selectors, 2292 classes
	method table size 14164264 bytes
	big table size 106037088 bytes
	Number of Symbols 12936
	compiled in 0.59 seconds

Info: 3 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll

Compile done.
Initialising runtime.
Executing 'Process.startup'...
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree initialized in 0.02 seconds
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
WARNING: Extension in 'C:\Users\prko\AppData\Local\SuperCollider\downloaded-quarks\sc3-dot\sc\ext\OutputProxy.ext.sc' overwrites OutputProxy:controlIndex in main class library.
Intentional overwrites must be put in a 'SystemOverwrites' subfolder.


*** Welcome to SuperCollider 3.15.0-dev. *** For help press Ctrl-D.

Dominant language
C++
Stars
6.8k
Forks
854
Avg merge
2d 15h
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supercollider/supercollider

All issues in supercollider/supercollider

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.