-
Notifications
You must be signed in to change notification settings - Fork 272
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
Extend handling of symbolic links #222
Comments
I haven't been able to replicate the incorrect behaviour you're describing. Could you please confirm the following details:
|
After using the "Add Issue Linking" dialog, and pressing save, has the Repository Settings Widget > Issue Linking section changed to display the "Issue Regex" & "Issue URL" you have entered? What do you mean by "Issue Linking" is blank: does it shown nothing at all in the section, the "Add Issue Linking" message & button, or are the "Issue Regex" & "Issue URL" fields are listed but the values are blank? Looks like nothing is setup Comments Steps to Reproduce Expected Behaviour Environment
@reporter123 reporter123 added the bug label 1 hour ago I haven't been able to replicate the incorrect behaviour you're describing. Could you please confirm the following details:
This also fails to save. Once you've re-launched Visual Studio Code, open the Visual Studio Code Output View, and switch to viewing the "Git Graph" Output Channel. Please copy and paste the output into a text file and include it in your response. [2019-11-29 16:18:22.254] Starting Git Graph ... |
Thanks for your response, as you can see in the Output Channel, line 3 On startup the extension performs two checks for each existing repository that results in them being deleted, either:
What is the workspaces path that you're opening in Visual Studio Code? |
I have not specifically opened a workspace so vscode is using whatever default it goes to when using "Open Folder". The repo was indeed opened via symlink what you see in the logs is the resolved absolute path. |
Thanks for confirming that! Could you please provide the full path of the symbolic link that you're opening with the "Open Folder" dialog? (so I can see the symbolic link and the absolute path it resolves to) Because the symlink you're opening in Visual Studio Code appears to be a different path to the absolute path of the detected repository, Git Graph is not detecting that the repository belongs to the workspace, and is consequently deleting it's stored state. This is preventing any Git Graph repository state from being persisted across Visual Studio Code sessions (which prevents configuration of functionality like Issue Linking, and the Commit Details View File View Type from being persisted across sessions). I'll rename & relabel this issue accordingly, as the current behaviour is functioning correctly, the extension just doesn't fully support symbolic links (in the specific circumstance you have). I'll include this functionality in the next beta release, which should be available in the next few days. |
The symlink path is /home/michael/kdesrc. Usually shown as ~/kdesrc. |
Which of the following is the actual symlink?
|
/home/michael/kdesrc -> /usr/src/kdesrc |
Could you confirm how you're opening the Git Graph View, is it via the Status Bar Item, or from the Visual Studio Code Git Panel? I've tried Windows, Mac, WSL & Linux, and the only way I've found that causes the extension to fall back to the actual path (instead of using the symbolic link) is if the Git Graph View is opened via the VSCode Git Panel. If this is the case, in the repo dropdown in the Git Graph View you should be able to select the symbolic path repo instead of the actual path version (using the repo with the symbolic path will allow Git Graph to retain the previous sessions state). I found that the VSCode Git Panel provides the actual path of the repo, not the symbolic path (unlike every other integration point with VSCode). If opened from it, Git Graph currently creates a new repo using the actual path, instead of opening the symbolic path version. (I'll definitely extend symbolic link support for this) |
I use the "Visual Studio Code Git Panel" incidentally your extension isn't the only one that seems be confused by the symlink. |
Awesome, I just updated my previous reply with more information (which you might find interesting). I'll implement support for this now and have a beta release available soon. Apologies for the delay, it took a while to work out the cause of your issue. |
This will be available in v1.20.0. If you'd like to use it before the next release, you can download v1.20.0-beta.0, and install it following the instructions provided here. |
Steps to Reproduce
Steps to reproduce the behaviour:
Create an Issue Linking regexp in "Respository Settings"
Close vscode
Relaunch vscode with same workspace
"Issue Linking" is blank.
Expected Behaviour
"Issue Linking" regexp should be restored.
Environment
The text was updated successfully, but these errors were encountered: