eclipse-theia / theia

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

Issue in theia with after network disconnection #14516

Open chamangurjardev opened 3 days ago

chamangurjardev commented 3 days ago

I'm facing following issue in theia with after network disconnection above version 1.45.0

When i'm using Once theia after some time theia disconnect and connects again. After that theia is not working it stuck in reloading the plugins. Then i am facing following issues :-

  1. If i'm writing any thing in theia it does not get synk, files remains unsaved even i have enabled auto save.
  2. File explorer doesn't open show loader only.
  3. If A java file is open, it shows Run And Debug options in the file but if i click any of the option nothing happens. It does not run.

In kind of a way i am totally stuck and the only option that works in reload. It's hard to reload again and again because this issue is happening very frequently.

Additional Information :-

Theia - >=1.45.0 Node :- v18.20.4 and v20.18.1 - Issue on both node versions.

Same issue can be replicated on https://theia-ide.org/ as well.

Steps :-

  1. Go to https://theia-ide.org/
  2. Click on Try Theia IDE online option, login and it will start theia latest version with latest plugin versions.
  3. There will be a default project, open java file. Write something and play with this file for some time(5-10 minutes). You will face same issue.
  4. P.S. -> If this issue not happening, then please move away from window for some time, then come back and you will face this issue.
chamangurjardev commented 3 days ago

@tsmaeder

tsmaeder commented 3 days ago

@chamangurjardev that you have to reload the window after a period of inactivity is normal behavior in the browser version of Theia. Are you saying this is happening even though your're actively developing in the window? You are speaking of "network disconnection". How do you know the network disconnected and why does it disconnect? You also say this is happening in Theia > 1.45.0. How do you get to this exact version number? Did you try this out locally?

chamangurjardev commented 3 days ago

@tsmaeder ,

  1. How do you get to this exact version number? Did you try this out locally? - Yes i tried this locally, with help of this doc :- https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md Here i am running yarn in theia and then brower start I first tried with latest version then checked with previous versions as well till 1.45.0

  2. Are you saying this is happening even though your're actively developing in the window? - Yes it is happening then as well. For example i am running theia in browser and then i added a java file and writing code in that java file. After some time it disconnect and connects again and then it stucks in plugin reloading. This is visible at the bottom of theia in blue bar where it shows that it is activating a plugin and does not move ahead for a long time.

Also @tsmaeder I am assuming this inactive time for which i need to refresh will be a bit longer time like 20-30 minutes. But for me its happening within very sort span of 2-3 minutes. For example

  1. I opened a theia ide - https://theia-ide.org/
  2. Then i opened default App.Java file. Clicked RUN button. It ran successfully.
  3. Then i opened a new window google searched like mergesort in java. And read a bit and copied the code, it hardly took 2-3 minutes. Once i am back in my window where theia ide is open, But
    1. RUN and Debug not working. And if i press enter their UI also gets break.
    2. If i am writing something in the file, file is not getting auto saved while AutoSave is enabled in setting. Neither it is saving if i am pressing COMMAND+SAVE on mac. You can see the black dot in file name.
    3. At the bottom of theia idea you can check that it is saying Activating Git Base (Built in) and a loader and it gets stuck here. I waited for more then 10 minutes.

I am attaching screenshot for the same to verify.

Screenshot 1 - With yellow bottom bar with text OFFLINE. Screenshot 2 - It change to blue bottom bar automatically and start activating the plugins where it gets stuck.

Now the bigger problem here is that if i refresh the page all my code that i wrote after theia idea behaved unexpectadly, all that code get's reverted. It means once i came back at that window and if i wrote some code, then that code is not getting saved/synced. So refreshing the page is not helping me here because my code gets lost.

  1. How do you know the network disconnected - I am assuming from this - The bottom bar of theia changes to a light Yellow color and left bottom text changes to offline.

Screenshot 2024-11-25 at 5 45 36 PM (3)

Screenshot 2024-11-25 at 5 33 38 PM (3)