Git Product home page Git Product logo

Comments (33)

yannduran avatar yannduran commented on September 21, 2024 10

Well, by complete accident, I just stumbled over a place where I can actually sign in.

image

But it's pretty counter-intuitive for this to be the place to sign in. If I'm looking to clone a GitLab repo, but haven't yet been able to sign in, I'm not going to think to look on the Synchronisation tab.

You should be able to sign in through the Connect section, like @JulienBodin86 and I both assumed was the place to look. I'm pretty sure that most people will assume that's the place to sign in as well.

This GitLab section should not appear on the Home tab. It doesn't belong there.

image

It should appear as a section on the Connect tab, above or below the GitHub section.

image

If the user has not yet signed in, it should display the introductory text (like it currently does in the Home section) as well as the Login and Sign Up buttons (like it currently does in the Synchronisation tab).

Essentially, the experience should be the same for both GitHub and GitLab.

from gitlab.visualstudio.

JulienBodin86 avatar JulienBodin86 commented on September 21, 2024 5

Thanks :)

Of course it was the first thing i've tried.
From there I can connect to TFS or a "simple" git repository. Gitlab is not displayed.

from gitlab.visualstudio.

anrichter avatar anrichter commented on September 21, 2024 5

+1
Same Problem here. See no GitLab UI elements on VS 2017.

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024 3

image

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024 2

Thanks, you are right it is a gitlab problem ! It also shows me localhost in the WEB Site which has nothing to do with your plugin, Sorry maikebing!

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024 1

Oh man, OK , I must switch the Default sourcecodemanagement to git. Now I see the sync tab.
gitlab2

from gitlab.visualstudio.

sagneta avatar sagneta commented on September 21, 2024 1

What's the trick to login to gitlab with the latest GitLab extension for 2017 MS Visual Studio.

I give it my username and password and the proper gitlab url and I get a Failed to Login 404 not found error. THere also is no place to insert an access token per the docs. I tried it as the password to no avail so the access token thing doesn't work. Have you guys had any luck?

from gitlab.visualstudio.

PirouzNik avatar PirouzNik commented on September 21, 2024

Hi I have the same problem... @JulienBodin86 did you solve it?

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

Why is this issue closed? I'm having the same problem on VS 2017 v15.5.7 in Feb 2018!

I haven't been able to find ANY way of connecting to a GitLab repo.

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

I also impossible to me to find the Extension.
gitlab

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

How can I use it ? VS2017 15.5.7

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

Ok, sorry with the Back/Forward symbols in the team explorer view I see the Extension, but still I dont know how to use it.
@yannduran: Where I can find the Synchronisation Tab ? Should it have a valid Connection to a TFS? My TFS Connection is currently down because the Server is off for a week, did I see this tab when I be connected to a TFS?

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

💯

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

@TFreudi1 Yes, you'll only see Git-related UI if you're using Git, as you've discovered. I'm glad that, like me, you've stumbled onto how to find a way to sign in.

@maikebing Would you care to make some comments on the UI changes that I've suggested? I'm curious to know whether you agree or disagree. I also have to add that, now that I've actually managed to sign in, I still see the GitLab "advertising" on the Home tab. It's VERY annoying!

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

The Problem is ... I can sign in (local IP, local own gitlab Server) , it shows me the reposities but if I want to clone he replace my lokal IP 192.168.10.50 with localhost. The rest of the clone URL is correct.
@maikebing: should I open a new issue? I can't do any git function accept listing the repos.

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

@TFreudi1 https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

@yannduran
Each solution needs to be logged in again because Gitlab and GitHub differ in that it is possible that each solution comes from a different Gitlab server, and I keep the login information in the solution directory and cause some display exceptions if the status of the current solution is not refreshed in time.

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

Did you use a own gitlabserver ? I have my own and I have the latest vs2017 + gitlab Extension and it still works althoug I use sometimes the git commandline. Your accountdata is save in your Project path in .vs/.gitlab
I also have a token inside of that but I don't where it come from. The first connect attempt if you never uploaded your current Project Looks like this:
gitlab

My .gitlab:
{
"User": {
"Id": 4,
"Username": "thomasf",
"Name": "Thomas",
"Email": "[email protected]",
"AvatarUrl": "http://www.gravatar.com/avatar/801158a17ff79f18261e8ca?s=80&d=identicon",
"PrivateToken": "bSjp2......",
"Host": "http://192.168.10.50:10080",
"TwoFactorEnabled": false,
"ApiVersion": 0
}
}

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

V1.0.160

Automatically detects the API version of Gitlab

from gitlab.visualstudio.

pedoc avatar pedoc commented on September 21, 2024

same problem,vs 2017 and vs2019 preview1.1
no one way is effective

from gitlab.visualstudio.

dtpthao avatar dtpthao commented on September 21, 2024

same problem vs 2017, impossible to find gitlab @pedoc did you fix it?
image
image
image

from gitlab.visualstudio.

TFreudi1 avatar TFreudi1 commented on September 21, 2024

Did you make the GIT Sourcecodeplugin default ?
#9 (comment)
And you must use the entry with the fox symbol, what you use is the default gitlab Plugin from Microsoft.

from gitlab.visualstudio.

dtpthao avatar dtpthao commented on September 21, 2024

Yes, I did, nothing better. I just uninstalled VS and reinstall, I got connected now.

from gitlab.visualstudio.

GauriKudtarkar avatar GauriKudtarkar commented on September 21, 2024

I faced the same scenario where I wanted to connect to project in gitlab server from visual studio.
After many hrs of trying I found simplest way to connect :

  1. You first need to install Git for windows. You can download that from this site. https://git-scm.com/downloads
  2. Once git is installed then open .gitconfig file. you can find it in c drive=>users=>yourUserName=>.gitconfig file (open with notepad or notepad++)
  3. There you have to write following lines:
    [user]
    name = userName used to login to gitlab
    email = email id used for gitlab
    [http]
    proxy = http://domainName:port
    [https]
    proxy = http://domainName:port
    [credential]
    helper = manager

  1. Open windows credential Manager =>
    image
    Click on "Add a Generic Credential" - shown above.
  2. Enter details asked:
    Internet or Network Address=> git:https://gitlab.xxx.com --------here xxx will be your domain name or the address which you use to connect to gitlab server. Dont miss the "git:" part at start.

User Name: userName used to login to gitlab

Password: Enter the accessToken generated in gitlab.

Then click "OK"

You will see this name in generic credentials list
image

  1. Steps for how to create accessToken in gitlab:
    a) Go to gitlab account=> settings=> Access Tokens (left side panel) => Enter any valid name and expiration date => select all check boxes in Scopes => Click on "create personal Access Token" button.
    b) Screen will display an alphanumeric token. Copy it and save it for future use. Gitlab will not store it. This token will be used as a password in above step.
    Note: This token have expiry date.

  2. Open Visual Studio => Tools => Options => Source Control => Select "Git" in dropdown

  3. Open Team explorer => Manage Connections => Under Local Git Repositories => click on "Clone" and proceed.
    Visual studio will automatically use credentials and clone the repository.

Hope this will help someone.

from gitlab.visualstudio.

Ddog800 avatar Ddog800 commented on September 21, 2024

Why is it 2019 and the UX with this extension is still such a mess? You should not need to go to the Sync tab to log in. This is not how VS is meant to operate. If you're going to build an extension for an application, you need to follow the established paradigms of the application. It should be done through the connect tab. Why is this issue closed? I just wasted 45 minutes trying to figure out why the extension was seemingly broken only to finally google this page with the instructions above.

Now that I've found where to sign in, I'm now unable to do so. I simply get login failed no matter which API level or option I choose, which also appears to be an old problem.

Guys, this extension really needs some UX work to be usable.

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

Guys, this extension really needs some UX work to be usable.

@Ddog800 yes I agree. It would be best if the Gitlab extension behaved the same as the GitHub and VSTS (Azure Repos) ones behave.

And I agree that this issue should NOT be closed until it's been properly addressed.

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

@yannduran
Each solution needs to be logged in again because Gitlab and GitHub differ in that it is possible that each solution comes from a different Gitlab server, and I keep the login information in the solution directory and cause some display exceptions if the status of the current solution is not refreshed in time.

@maikebing I really suggest that you look at the source code for GitHub's extension

from gitlab.visualstudio.

ChanceNCounter avatar ChanceNCounter commented on September 21, 2024

It's astonishing to me that this issue has been closed twice. It's now 2.5 years since it was opened for the first time, and every single aspect of the original complaint remains - plus, I can't figure out how to log out!

So, first I had the same experience as others above. I couldn't figure out where to log in, and a web search led me to the wiki, which does not explain where to log in, only what to enter in the various entirely self-explanatory text fields on a standard login form.

But that wiki page does lead to this issue, so thanks for that, I guess.

So I logged in, and the extension didn't connect to my project. Nothing changed in the repo view. I realized that this was probably because I connect to the project by SSH, but logged into the extension using HTTP. I don't know if it's possible to do it the other way, but I wanted to try, so I went looking for a "log out" button. I still haven't found one.

Hence, I resorted to uninstalling and reinstalling the extension, meaning I had to restart VS three times.

And I was still logged in. Someone else in this thread noted that your account info should be in the project folder, at .vs/.gitlab. There is no .gitlab in my project's .vs folder.

So now I have an extension from which I can't log out, which appears to be using a single project's server as the global server, and which isn't actually doing a single one of the things it's supposed to do.

In other words, I have a useless extension, which has put some data in a mysterious place on my system that I'll never even be able to remove.

Meantime, you (the author) responded to several minor questions, without responding to any of the serious issues raised herein, and this extension is still available right there through the main marketplace in Visual Studio itself, which means people will keep having this miserable experience until you do something about it.

Unacceptable.

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

@ChanceNCounter

It's a real pain, but you can find and delete the extension's folder from the Extension folder in the following path. <your vs id> is the random value generated for your VS install. For VS 2019 it'll be 16.0_ + a random eight characters.

Type this into Windows Explorer:

%localappdata%\Microsoft\VisualStudio\<your vs id>\Extensions

In this folder you'll find many randomly named folders. Each one is for an installed extension. It's a pain because you' have to manually examine the contents of each folder to see if you can identify the one that contains the Gitlab extension.

Delete the folder you find, and that should delete the extension and its data from your VS install. To be extra certain, delete all of the files find at the bottom of the same Extensions folder that have that have .cache as their extension. Don't worry, those cache files will be regenerated by VS when it opens again.

I hope that helps you out.

If not I suggest that you open a new issue that only addresses the fact that you can't find a way to log out of the extension (titled something like "How Do I Log Out Of This GitLab Extension".

@maikebing this issue should not be closed as the UI concerns raised in it have not been addressed.

from gitlab.visualstudio.

yannduran avatar yannduran commented on September 21, 2024

@maikebing it's great that you've re-opened this issue, thank you for doing that!

But are you going to be addressing any the UI issues that have been raised? It's been over two years without anything being done so far (as far as I know).

People are having trouble logging in and logging out! That needs to be fixed, n'est-ce pas?

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

Please test it.
@yannduran @ChanceNCounter
http://vsixgallery.com/extensions/54803a44-49e0-4935-bba4-7d7d91682273/GitLab%20Extension%20for%20Visual%20Studio%20v1.0.193.vsix

from gitlab.visualstudio.

maikebing avatar maikebing commented on September 21, 2024

@yannduran Thank you very much for your suggestion. I'm sorry to be busy with my work for the last two years. Later, I'll take the time to do something seriously.

from gitlab.visualstudio.

ChanceNCounter avatar ChanceNCounter commented on September 21, 2024

Did I fail to test this for six months?! I'm so sorry! I don't remember seeing the November notification, just the one this morning that closed the issue!

I'll flag this in my inbox to remind me to check it out next time I'm at a Windows box.

from gitlab.visualstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.