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

Programmatically fetch CodeMirror version #1398

Open
Opisek opened this issue Jun 28, 2024 · 1 comment
Open

Programmatically fetch CodeMirror version #1398

Opisek opened this issue Jun 28, 2024 · 1 comment

Comments

@Opisek
Copy link

Opisek commented Jun 28, 2024

Describe the issue

Given how CodeMirror is used in many closed-source applications, it can be difficult to hunt down bugs, when users of those apps report them, since the version of CodeMirror is not known.

Over at CodeMirror-Vim we are introducing a :version command:
replit/codemirror-vim#180

For now, we can print the CodeMirror-Vim version. In CodeMirror 5, it was possible to fetch the used version inside the source code.

It would be great if this ability was also given in CodeMirror 6. Then, we could print the version of CodeMirror-Vim, as well as CodeMirror itself or its individual components.

Browser and platform

No response

Reproduction link

No response

@marijnh
Copy link
Member

marijnh commented Jun 29, 2024

I've thought about this, but since a CodeMirror 6 system generally consists of 10+ packages, all with their own version number, it'd be a pain to use (how do you even figure out which packages to query?) and doesn't seem worth the additional complexity in the release machinery and package interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants