svn-scm icon indicating copy to clipboard operation
svn-scm copied to clipboard

SVN sidebar icon is disappeared when VS Code restarted

Open harrykulkin opened this issue 4 years ago • 11 comments

  • VSCode Version:
  • OS Version: Windows 10 / WSL2 / Ubuntu 18.04.1 LTS
  • Extension Version: 2.11.4
  • System Language: Korean
  • SVN Version: 1.9.7

Issue

With Remote Development (WSL2 or Docker Dev Container), when VS Code restarted, SVN sidebar icon is disappeared and there is no connections in source control menu.

I have to check out it manually to fix this problem. But When VS Code starts up next time, it happens again.

Steps to Reproduce

  1. Install Remote Development package
  2. Run Remote Development with WSL2
  3. Install SVN extension
  4. checkout source
  5. Restart VS Code (and mostly automatically reconnect WSL2 remote session)

SVN Output

Using svn "1.9.7" from "svn"

Screenshots

image

harrykulkin avatar Jun 25 '20 05:06 harrykulkin

I'm seeing similar behaviour, but without any Remote extensions - I have stuff checked out locally on my machine.

[VS Code Help -> About] 1.48.0-insider (user setup) Commit: 8c426f9f3b6b18935cc6c2ec8aa6d45ccd88021e Date: 2020-07-23T05:50:56.947Z (11 hrs ago) Electron: 9.1.0 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.18362

SVN extension: v2.11.5 SVN: 1.14.0 (r1876290)

I noticed that if I have outstanding changes in the local copy, committing them to the repo appears to "fix" the problem, i.e. the SVN icon re-appears in the sidebar and under Source Control I can see the usual buttons + commit message box.

solomchuk avatar Jul 23 '20 17:07 solomchuk

It happens all the time to me too: randomly sometimes, restarting the program, the icon disappears and the output window shows only what you can see in the attached screenshot. Always randomly and just sometimes, after closing and restarting Visual Studio Code several times magically the icon reappears and i can use the extension.

Screenshot_20200820_102439

Versione: 1.48.0 Commit: db40434f562994116e5b21c24015a2e40b2504e6 Data: 2020-08-13T07:40:55.768Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 Sistema operativo: Linux x64 4.15.0-112-generic

SVN extension: v2.12.3 SVN: 1.11.1 (r1850623)

gatiba avatar Aug 20 '20 08:08 gatiba

Similar issue happened to me today. SVN extension worked yesterday, but now the SVN menu icon is gone (it shows briefly after startup), and source control wants to connect with git. (As the screenshot in the issue.)

I believe VSCode upgraded today, did they break something? https://code.visualstudio.com/updates/v1_48#_source-control

VSCode Version: 1.48.1
OS Version: Windows 10 / WSL1 / Ubuntu 18.04.4 LTS
SVN Extension Version: 2.12.3
TortoiseSVN 1.13.1, Build 28686
No docker involved.

PS: I did check that /c/Program Files/TortoiseSVN/bin is in my PATH

Solution: TortoiseSVN told me that my .svn database got corrupt, so the SVN extension actually failed to load. This happens often when I mix use of Tortoise (from windows side) and VSCode/SVN (from WSL1 side).

  • Delete the local SVN folder (to make sure WSL does not reference the wrong old folder).
  • Checkout SVN from scratch.

th0ger avatar Aug 25 '20 10:08 th0ger

Same Problem on my side (without docker). I can see the icon for a short moment after starting VSCode before it is gone.

VSCode Version: 1.50.0-insider OS Version: Windows: 10.0.18363 SVN Extension Version: 2.12.4 TortoiseSVN: 1.14.0 Build 28885

When there was no SVN installed, I could see the icon, after installing the SVN, the problem occurred.

adx-git avatar Sep 25 '20 12:09 adx-git

@adx-git did you test my fix? Try to update with TortoiseSVN to check for corrupt db.

th0ger avatar Sep 25 '20 18:09 th0ger

@adx-git did you test my fix? Try to update with TortoiseSVN to check for corrupt db.

Actually I did not, because it was a "new" installation and I did not use SVN on this machine before. Using the add-on was my first attempt to checkout the code.

adx-git avatar Sep 28 '20 07:09 adx-git

This issue even made me think that the plugin does not support Linux ...

Macyrate avatar Nov 19 '20 01:11 Macyrate

Same as everyone else, was starting to use vscode last week for some work, freshly updated that and installed the SVN plugin, I have the svn cli, but not tortoise. When first installed the icon o use is there, but after a restart, it’s gone! gone back to using eclipse as my company uses both svn and Git! Shame really!

mraandrews avatar Dec 07 '20 08:12 mraandrews

Same happened to me when I had my PC restarted and OS update occurred. After that SVN in VSCode was showing for a second and then dissapear.

I fixed it by updating the tortoise svn and then from file explorer clicked "SVN Update", suddenly the SVN icon showed in VSCode and everything works as it should now.

martinnikolov93 avatar Feb 11 '21 08:02 martinnikolov93

Not sure it is related but the svn icon (extension) also disappears for me after vscode starts. Then the log shows the same as other people reported. Using svn "1.14.1" from "svn"

However, after a little while it provides some output ... []$ svn info --xml []$ svn info --xml []$ svn info --xml e:\cygwin64\home\pavel\projects\ps_tmp\ps_app
[]$ svn: warning: W155010: The node '/home/pavel/projects/ps_tmp/ps_app/e:\cygwin64\home\pavel\projects\ps_tmp\ps_app' was not found. []$ svn: E200009: Could not display info for all targets because some targets don't exist []$ svn info --xml e:\cygwin64\home\pavel\projects\ps_tmp\ps_app\

It looks like the cygwin path and Windows path to repository are combined into one path, of course, that does not exist. cygwin path to repo: '/home/pavel/projects/ps_tmp/ps_app/ Windows path to repo: e:\cygwin64\home\pavel\projects\ps_tmp\ps_app\

used to work before, most likely cygwin, tortoise updates, however, not sure when exactly it started. perhaps give you some other clues what might be happening.

ozpavel avatar Mar 21 '21 10:03 ozpavel

Another reason why my subversion extension disappeared was the invalid certificate of the repository.

I resolved running the same command as the extension in the command prompt and resolving/accepting the certificate. After that the subversion extension is working again as expected.


"e:\Program Files\TortoiseSVN\bin\svn.exe" stat --xml --no-ignore --ignore-externals --show-updates

Error validating server certificate for 'https://svn.xxxxxxx.com.au:443':

  • The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information:
  • Hostname: svn.xxxxxxx.com.au
  • Valid: from May 7 13:35:39 2022 GMT until Aug 5 13:35:38 2022 GMT
  • Issuer: R3, Let's Encrypt, US
  • Fingerprint: XX:XX:XX (R)eject, accept (t)emporarily or accept (p)ermanently? p

ozpavel avatar May 20 '22 02:05 ozpavel

Hi, I noticed the same behaviour and fixed it by doing an SVN Update in explorer. My guess is it has something to do with the credentials.

credits to [martinnikolov93]

xeobit avatar Oct 24 '22 14:10 xeobit

So tickets for bugs just get closed without fixing them, this is still an issue for me, and has clearly caused others issues. I have stopped using VSCode for this reason for the SVN projects I work on. Quite shocked that it's been closed, and with little explanation why. 'Closed as not planned'. Means nothing!

mraandrews avatar Mar 06 '24 20:03 mraandrews

Feel free to submit a PR @mraandrews

JohnstonCode avatar Mar 07 '24 09:03 JohnstonCode

Sorry, don't know what a PR is in this context! surely the bug that has been raised should be enough to have someone look at it and fix it!

On Thu, 7 Mar 2024 at 09:05, Chris @.***> wrote:

Feel free to submit a PR @mraandrews https://github.com/mraandrews

— Reply to this email directly, view it on GitHub https://github.com/JohnstonCode/svn-scm/issues/982#issuecomment-1983035262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA422AOMBBOWSPKPJLLMBIDYXAUXHAVCNFSM4OH3URFKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYGMYDGNJSGYZA . You are receiving this because you were mentioned.Message ID: @.***>

mraandrews avatar Mar 07 '24 11:03 mraandrews

Okay, checkout the project look through the code find the bug and provide me with a patch to fix it

JohnstonCode avatar Mar 07 '24 11:03 JohnstonCode