robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
176 stars 14 forks source link

Loading More time (15-20 min.) whenever I opened IDE #112

Closed cb250446 closed 1 year ago

cb250446 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Load the Robot Code having more Testcases nearly 4000+ Testcases
  2. Wait till the Robot code plug-in loaded all files
  3. Close the IDE and re-open it.
  4. Again, it is taking 15-20 min every time.

Expected behavior It should be loaded quicker at least 2nd time.

Screenshots/ Videos image

Logs No Logs found in Output window

Desktop (please complete the following information):

d-biehl commented 1 year ago

I know RobotCode is sometimes a bit slow on large projects, but my test project (original test suite from RobotFramwork) contains more than 6000 test cases and loads in about 30-40 seconds.

So something is different with you.

Can you please answer me some questions?

How are your test cases organized? How do you bind library/resource imports organized? What is the extension of your resource files? Do you use dynamic or hybrid libraries? (Remote, Browser, Selenium, something of your own)

cb250446 commented 1 year ago

How are your test cases organized? A. It has multiple folders and organized like .resource files and .robot files separately

How do you bind library/resource imports organized? A. Those were imported at top of each resource file

What is the extension of your resource files? A. .resource and .py

Do you use dynamic or hybrid libraries? (Remote, Browser, Selenium, something of your own) A. only 3 resource files having only 50 keywords all together.

Let know if any gaps in understanding.

d-biehl commented 1 year ago

Sorry for the delay, I had a few days vacation.

You are using the remote library. When you start VSCode with RobotCode, are the remote library servers already started? If no, if you start the servers before, is it faster?

cb250446 commented 1 year ago

Sorry for the delay, I had a few days vacation.

You are using the remote library. When you start VSCode with RobotCode, are the remote library servers already started? If no, if you start the servers before, is it faster?

Yes, those were starts before I opened VS Code.

d-biehl commented 1 year ago

How do you use/import remote library and how often? Once in a resouce file and then import the resource file in robot file or in every robot file?

d-biehl commented 1 year ago

just published a new version of RobotCode, can you try this and then tell me if it is faster?

cb250446 commented 1 year ago

OMG. It's worked! Thanks alot man

d-biehl commented 1 year ago

Sound good. Then I can close the issue. You can reopen it as if you still have problems.

d-biehl commented 1 year ago

Maybe you can give me some more stars at the marketplace? ;-)

cb250446 commented 1 year ago

Done :)