question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding Extra lib execution to fast for key naming convention

See original GitHub issue

monaco-editor version: 0.9.0 Browser: Google Chrome Version 61.0.3154.0 (Official Build) canary (64-bit) OS: Windows 10 Enterprise Steps assume monaco editor is already installed and createEditor has already been called. Steps or JS usage snippet reproducing the issue:

Load libraries statically:

// this._typescriptExtraLibs is used to dispose later
this._typescriptExtraLibs = monaco.languages.typescript.typescriptDefaults.addExtraLib(person.toString());
this._typescriptExtraLibs = monaco.languages.typescript.typescriptDefaults.addExtraLib(animal.toString());
this._typescriptExtraLibs = monaco.languages.typescript.typescriptDefaults.addExtraLib(flee.toString());
this._typescriptExtraLibs = monaco.languages.typescript.typescriptDefaults.addExtraLib(color.toString());

Receive error at: line 39, column 1220 (minified script) Error: Uncaught Error: ts:extralib-1499848020086 already a extra lib My conclusion: I stepped through the code and notice that due to the way that the keys in the this._extraLibs are generated using the date it has conflicts due to “too fast” processing.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Klustrecommented, Oct 10, 2018

@JohannWNel That indeed solved it. Thanks a lot!

0reactions
alexdimacommented, Dec 10, 2019

Closing as this will not be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with libraries that use different naming conventions?
Accept and use each library's preferred naming preferences. To do anything else would add a layer of abstraction between the true names and ......
Read more >
3. Shared Libraries - The Linux Documentation Project
The key to managing shared libraries is the separation of these names. Programs, when they internally list the shared libraries they need, should...
Read more >
Naming conventions | Cloud APIs
Google APIs must use product names approved by the product and marketing teams. The table below shows examples of all related API names...
Read more >
Extending with Shared Libraries - Jenkins
A Shared Library is defined with a name, a source code retrieval method such as by SCM, and optionally a default version. The...
Read more >
How to Write Beautiful Python Code With PEP 8 - Real Python
This tutorial outlines the key guidelines laid out in PEP 8. ... When you write Python code, you have to name a lot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found