Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some files are unexpectedly created when Theia (browser version, run on Linux) is accessed by a Windows machine if a slow frontend contribution is present #8562

Closed
federicobozzini opened this issue Sep 25, 2020 · 4 comments · Fixed by #8563
Labels
OS/Linux issues related to the Linux OS OS/Windows issues related to the Windows OS 🤔 needs more info issues that require more info from the author

Comments

@federicobozzini
Copy link
Contributor

Bug Description:

When Theia (browser version) is run on Linux, if there is a frontend contribution with a long starting time and Theia is accessed by a Windows machine some files (.theia/tasks.json, .theia/launch.json, .theia/settings.json, .vscode/tasks.json, .vscode/launch.json, .vscode/settings.json) might be created.

Steps to Reproduce:

  1. Add a frontend application contribution to Theia with a long starting time. Ideally a FrontendApplicationContribution with a configure method taking a few (>3) seconds to be completed.
  2. Start Theia (browser version) on a Linux machine.
  3. Access Theia from a Windows machine.
  4. The files mentioned above are created.

Additional Information

  • Operating System: Observed on Ubuntu 18, but any Linux version should work.
  • Theia Version: Tested with Theia 1.2.0 and 1.5.0
@vince-fugnitto vince-fugnitto added 🤔 needs more info issues that require more info from the author OS/Linux issues related to the Linux OS OS/Windows issues related to the Windows OS labels Sep 25, 2020
@vince-fugnitto
Copy link
Member

I think it's best to try and debug why the bug is happening for this particular use-case.
I think it's difficult for anyone in the community to properly reproduce the issue and it looks like you have the proper setup already to do so.

@federicobozzini
Copy link
Contributor Author

It's actually pretty simple to reproduce.

Even just delaying the step where the configure method is called for all frontend contributions is enough to see it.

The simplest way would be to just use something like

        const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
        await wait (4000);

before that step.

In any case if I can help you to reproduce it, I'd be happy to do it.

@vince-fugnitto
Copy link
Member

It's actually pretty simple to reproduce.

The part I was referring to was more steps 2-3 (which is not possible for everyone in the community to reproduce):

Start Theia (browser version) on a Linux machine.
Access Theia from a Windows machine.

@federicobozzini
Copy link
Contributor Author

I see. Using docker on a Windows machine would work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS/Linux issues related to the Linux OS OS/Windows issues related to the Windows OS 🤔 needs more info issues that require more info from the author
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants