theia
theia copied to clipboard
There is no document for breakpointinput:vs.editor.ICodeEditor%3A1
It seems we provide documents for inline editors like breakpoint expressions editor to the plugin host process. Not sure we should do it.
Error: There is no document for breakpointinput:vs.editor.ICodeEditor%3A1
at CodeLensAdapter.provideCodeLenses (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages/lens.js:70)
at /theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:372
at LanguagesExtImpl.<anonymous> (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:153)
at step (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:47)
at Object.next (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:28)
at /theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:22
at new Promise (<anonymous>)
at __awaiter (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:18)
at LanguagesExtImpl.withAdapter (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:145)
at LanguagesExtImpl.$provideCodeLenses (/theia/node_modules/@theia/plugin-ext/lib/plugin/languages.js:372)
at editor.main.js:30
hello I also encountered the same problem, how can I solve it?
hello I also encountered the same problem, how can I solve it?
@jili544 thank you for the response, do you mind providing details on how you reproduced the issue (steps)?
To reproduce, open any file (for example, a package.json) while the debug view is open.
To reproduce, open any file (for example, a package.json) while the debug view is open.
Or even when the debug view isn't open. I seem to get it opening any source code file at all. Closing the debug view entirely doesn't stop the error. I hadn't seen this previously, but in the last 3-4 weeks (at least), it's been pretty constant.
To reproduce this problem, follow the steps below.
step 1: install the GitLens
VS Code extension
step 2: open any file
Error: There is no document for breakpointinput:vs.editor.ICodeEditor%3A26
at LinkProviderAdapter.provideLinks (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/plugin/languages/link-provider.js:31:35)
at :3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/plugin/languages.js:281:97
at LanguagesExtImpl.withAdapter (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/plugin/languages.js:112:20)
at LanguagesExtImpl.$provideDocumentLinks (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/plugin/languages.js:281:21)
at RPCProtocolImpl.doInvokeHandler (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/common/rpc-protocol.js:232:23)
at RPCProtocolImpl.invokeHandler (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/common/rpc-protocol.js:217:41)
at RPCProtocolImpl.receiveRequest (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/common/rpc-protocol.js:181:33)
at RPCProtocolImpl.receiveOneMessage (:3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/common/rpc-protocol.js:145:26)
at :3000/Users/finn/CloudIDE/theia/packages/plugin-ext/lib/common/rpc-protocol.js:69:48
at :3000/Users/finn/CloudIDE/theia/packages/core/lib/common/event.js:103:69
at errors.ts:26:12
I don't know if I found the root cause.
Probably when create the DebugBreakpointWidget
input editor, we should emit a event to notify the EditorAndDocumentStateComputer
a MonacoEditorModel
was added.
async createInline(uri: URI, node: HTMLElement, options?: MonacoEditor.IOptions): Promise<MonacoEditor> {
return this.doCreateEditor(uri, async (override, toDispose) => {
const overrides = override ? Array.from(override) : [];
overrides.push([IContextMenuService, { showContextMenu: () => {/** no op! */ } }]);
const document = new MonacoEditorModel({
uri,
readContents: async () => '',
dispose: () => { }
}, this.m2p, this.p2m);
toDispose.push(document);
// =======================================================
// probably we should emit a event to notify a model added
// =======================================================
const model = (await document.load()).textEditorModel;
return new MonacoEditor(
uri,
document,
node,
this.services,
Object.assign({
model,
isSimpleWidget: true,
autoSizing: false,
minHeight: 1,
maxHeight: 1
}, MonacoEditorProvider.inlineOptions, options),
overrides
);
});
}
Hi, I am now facing the same error in the console log, when using the vscode.git and vscode.git-ui extensions/plugins. When opening any text file I am seeing the error:
errors.ts:26 Uncaught Error: There is no document for breakpointinput:vs.editor.ICodeEditor%3A4
Error: There is no document for breakpointinput:vs.editor.ICodeEditor%3A4
at LinkProviderAdapter.provideLinks (c:\proj\node_modules\@theia\plugin-ext\lib\plugin\languages\link-provider.js:31:35)
at c:\proj\node_modules\@theia\plugin-ext\lib\plugin\languages.js:287:97
at LanguagesExtImpl.withAdapter (c:\proj\node_modules\@theia\plugin-ext\lib\plugin\languages.js:118:20)
at LanguagesExtImpl.$provideDocumentLinks (c:\proj\node_modules\@theia\plugin-ext\lib\plugin\languages.js:287:21)
at RPCProtocolImpl.doInvokeHandler (c:\proj\node_modules\@theia\plugin-ext\lib\common\rpc-protocol.js:232:23)
at RPCProtocolImpl.invokeHandler (c:\proj\node_modules\@theia\plugin-ext\lib\common\rpc-protocol.js:217:41)
at RPCProtocolImpl.receiveRequest (c:\proj\node_modules\@theia\plugin-ext\lib\common\rpc-protocol.js:181:33)
at RPCProtocolImpl.receiveOneMessage (c:\proj\node_modules\@theia\plugin-ext\lib\common\rpc-protocol.js:145:26)
at c:\proj\node_modules\@theia\plugin-ext\lib\common\rpc-protocol.js:69:48
at c:\proj\node_modules\@theia\core\lib\common\event.js:103:69
at http://<MY_URL>/vendors-node_modules_theia_markers_lib_browser_index_js-node_modules_theia_monaco_lib_browser-34ab92.js:29647:27
Any updates on this issue?
I believe I now understand the source of the issue. As part of the lifecycle of various widgets, we create Monaco editors for specific purposes (breakpoint log entry input and output), but we either don't register those with the document store available to extensions or their URI's get mangled and aren't accessible under the stringified name used by plugins. As a consequence, when the editor makes requests (for code lenses, for example) that would normally be served by plugins, the plugins find that they can't service the request, and errors are logged. I will do some further investigation and then work to ensure that editors that should not make these requests don't make them.
@colin-grant-work did you ever make progress on this?
Does anyone know of a workaround?
I also started to see this error after switching from @theia/git
to vscode git in https://github.com/eclipse-theia/theia/issues/10786
I just noticed that open-vsx.org is down, I wonder if that could be related.
Does anyone know of a workaround?
@danepowell the error itself should be pretty harmless and there is no workaround at the moment for it. You could investigate if you'd like to find a solution, the latest was to determine which editors might be making these requests when they shouldn't (ex: debug console) (https://github.com/eclipse-theia/theia/issues/7671#issuecomment-1171287973).
I just noticed that open-vsx.org is down, I wonder if that could be related.
The error is unrelated to the status of open-vsx.