Skip to content

Realm handle multiple instances #6883

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 7, 2025

fix #6625

Problem is that Realm assume its a singleton but if you load different instance of a library it loads multiple singleton and fails

We could maybe expose a singleton helper that would help deal with that automatically.

@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Apr 7, 2025
Copy link
Contributor

github-actions bot commented Apr 7, 2025

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Realm handle multiple instance of compiler loaded at once

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 7, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin timotheeguerin marked this pull request as ready for review April 7, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: can not use a local build emitter in tsp 0.67.1
3 participants