Theia: TypeError: Cannot read property 'items' of undefined when selecting "Find All implementations"

Created on 13 May 2020  路  5Comments  路  Source: eclipse-theia/theia

Bug Description:

Selecting in the context menu -> Find All implementations
generates the following error:

root ERROR [hosted-plugin: 29023] Promise rejection not handled in one second: **TypeError: Cannot read property 'items' of undefined** , reason: TypeError: Cannot read property 'items' of undefined
root ERROR [hosted-plugin: 29023] With stack trace: TypeError: Cannot read property 'items' of undefined
    at g (/home/lmcbout/theia/theia/plugins/vscode-references-view/extension/dist/extension.js:1:8294)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Steps to Reproduce:

  1. Open Theia, select a file (quick-view-service.ts)
  2. From the context menu, select "Find All Implementations"
    --> Observe on the console, the error is reported


Additional Information

  • Operating System: Ubuntu 18.04
  • Theia Version: Latest
  • Builtin versions: 139.1 and 144.2
needs more info help wanted typescript

All 5 comments

@lmcbout the command still works correctly for me (it displays the implementations), is the same case for you?

  1. open quick-view-service.ts
  2. highlight QuickOpenModel
  3. execute the command 'Find All Implementations'
Screen Shot 2020-05-13 at 12 10 39 PM

@vince-fugnitto Yes, it display some information, but there is still the error log on the console. The priority to fix it is low since it returns some data

@vince-fugnitto Yes, it display some information, but there is still the error log on the console. The priority to fix it is low since it returns some data

It looks like it still works, I鈥檓 not sure when the error is reported it is likely only when there are no implementations available. The logging should not be harmful.

Getting rid of such logging is good as well, plus sometimes it reveals some incompatibilities to support VS Code extensions, then it should be fixed.

I cannot reproduce the error on the console any longer, the find all implementations functionality still works correctly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akosyakov picture akosyakov  路  3Comments

dhananjayharel picture dhananjayharel  路  3Comments

marechal-p picture marechal-p  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments