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

bug(developer): kmc-generate fails with TypeError: Cannot read properties of undefined (reading 'length') if langtags are not provided as a parameter #13110

Closed
sentry-io bot opened this issue Feb 3, 2025 · 2 comments · Fixed by #13075
Assignees
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 3, 2025

Sentry Issue: KEYMAN-DEVELOPER-2G4

TypeError: Cannot read properties of undefined (reading 'length')
  File "../../../kmc-generate/src/basic-generator.ts", line 30, in BasicGenerator.preGenerate
    this.languageTags = this.options.languageTags.length
  File "../../../kmc-generate/src/keyman-keyboard-generator.ts", line 48, in KeymanKeyboardGenerator._KeymanKeyboardGenerator.run
    if(!this.preGenerate()) {
  File "../../src/commands/generate.ts", line 131, in doGenerate
    const result = await generator.run(options.id); // note: id is currently ignored here
  File "../../src/commands/generate.ts", line 118, in generate
    if(!await doGenerate(callbacks, generator, commanderOptions)) {
@mcdurdin mcdurdin moved this to Todo in Keyman Feb 3, 2025
@mcdurdin mcdurdin added this to the B18S1 milestone Feb 3, 2025
@mcdurdin
Copy link
Member

mcdurdin commented Feb 3, 2025

New bug in #13075.

Copy link
Author

sentry-io bot commented Feb 3, 2025

Sentry Issue: KEYMAN-DEVELOPER-2GE

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

Successfully merging a pull request may close this issue.

1 participant