Serhioromano / vscode-gitflow

Git Flow extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow
MIT License
42 stars 9 forks source link

Startup takes too long #40

Closed romanholidaypancakes closed 2 years ago

romanholidaypancakes commented 2 years ago

image

Serhioromano commented 2 years ago

There might be few reasons for that. Can you look in OUTPUT-> Gitflow and copy log from there to here. There is a time for each command I'll know which one takes the most time.

romanholidaypancakes commented 2 years ago
        1: INFO: (0ms) [activate] Extension activate
        2: INFO: (0ms) [Root] d:\github\reponame
        3: INFO: (0ms) [C:\Program Files\Git\cmd\git.exe] Git found (path)
        4: INFO: (76ms) ["C:\Program Files\Git\cmd\git.exe" version] git version 2.36.1.windows.1
        6: INFO: (569ms) ["C:\Program Files\Git\cmd\git.exe" status] On branch develop
       16: INFO: (7225ms) ["C:\Program Files\Git\cmd\git.exe" flow log] Comparing against "master" branch\n
     4536: INFO: (3872ms) ["C:\Program Files\Git\cmd\git.exe" flow config list] Branch name for production releases: master 
     4545: INFO: (67ms) ["C:\Program Files\Git\cmd\git.exe" rev-parse --abbrev-ref HEAD] develop
     4547: INFO: (70ms) ["C:\Program Files\Git\cmd\git.exe" branch] * develop
     4553: INFO: (67ms) ["C:\Program Files\Git\cmd\git.exe" branch -r]   origin/HEAD -> origin/master
     4561: INFO: (63ms) ["C:\Program Files\Git\cmd\git.exe" version] git version 2.36.1.windows.1
     4563: INFO: (338ms) ["C:\Program Files\Git\cmd\git.exe" status] On branch develop
     4573: INFO: (2383ms) ["C:\Program Files\Git\cmd\git.exe" flow log] Comparing against "master" branch\n
     9093: INFO: (75ms) ["C:\Program Files\Git\cmd\git.exe" remote] origin
     9095: INFO: (4856ms) ["C:\Program Files\Git\cmd\git.exe" ls-remote --tags origin] bf171e8a8a399a4c254ea8e45afee4d53c859bff refs/tags/461
     9100: INFO: (78ms) ["C:\Program Files\Git\cmd\git.exe" tag --sort=-v:refname] v20
Serhioromano commented 2 years ago

These are commands that takes long time.

"C:\Program Files\Git\cmd\git.exe" status
"C:\Program Files\Git\cmd\git.exe" flow log

Can you run those in terminal in your repository directory and see how long it takes?

Another long command is

"C:\Program Files\Git\cmd\git.exe" remote

But that is understandable, it fetches from remote and it depends on internet speed.

romanholidaypancakes commented 2 years ago

git.exe statusis quick. git.exe flow log needs to constantly trigger new information through the keyboard, it is not automatic output, it is difficult to obtain time, but there are many submission records of output.

Serhioromano commented 2 years ago

I published new version and change git flow log to git flow status. Should work faster. еest it 1.3.12

romanholidaypancakes commented 2 years ago

image


Error executing: "C:\Program Files\Git\cmd\git.exe" flow status : Error: Command failed: "C:\Program Files\Git\cmd\git.exe" flow status
Serhioromano commented 2 years ago

Check version 1.3.13

romanholidaypancakes commented 2 years ago

Check version 1.3.13


Error executing: "C:\Program Files\Git\cmd\git.exe" flow : Error: Command failed: "C:\Program Files\Git\cmd\git.exe" flow
Serhioromano commented 2 years ago

You have any configuration for git path?

Serhioromano commented 2 years ago

I also have this error but I can see elements in side bar. Do you?

romanholidaypancakes commented 2 years ago

I also have this error but I can see elements in side bar. Do you?

I can also see gitflow

Serhioromano commented 2 years ago

You see viewlet title or branches inside it?

romanholidaypancakes commented 2 years ago

You see viewlet title or branches inside it?

yes, can see. all the features i use are working fine

Serhioromano commented 2 years ago

I cannot find the reason of a long load apart from remote request. ше also require Git panel to lad before it starts to load at all.

romanholidaypancakes commented 2 years ago

well, it's just that each initialization has a delay but it doesn't affect the use of it