eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.55k stars 2.46k forks source link

FileService dies during execution #13892

Open BarryDrez opened 1 week ago

BarryDrez commented 1 week ago

I have a Theia extension that has been working perfectly fine with Theia 1.40.0. I recently upgraded to Theia 1.50.1, and the FileService.exists (@theia/filesystem/lib/browser/file-service) is causing my extension to crash without throwing any kind of exception. I went through all of the breaking changes since 1.40.0 and fixed a couple that were required.

Any ideas what this could be? Could there be a dependency I am missing or need to upgrade?

dipliveweb commented 1 day ago

Hello, Theia team,

I am following up on Barry's query. We are still having the same issue. We would appreciate any suggestions or pointers.

Thank you

msujew commented 1 day ago

What kind of crash are we talking about here? Does the error crash the whole tab/browser window?

Aside from that, I'm not aware of any breaking changes in that area of Theia. Do you have reproduction steps for the issue?

BarryDrez commented 1 day ago

@msujew I have an iframe for my JSE extension that I invoke from one of my parent pages outside of Theia. When the following line is executed: if (await this.fileService.exists(URIofFileInMyWorkspace)) {

The iframe disappears, and throws me back to the parent page.

Nothing in my code has been changed in this area since I upgraded Theia. I did however upgrade to nodejs version 20 from 18.