WebStorm not recognizing my project is under GIT control
Answered
We've just completed our migration from SVN to git. I've cloned one of our git repos and opened a WebStorm project from this location. Local repository, not opening from the remote.
WebStorm is acting like the project isn't a git working directory:
I cloned the repo name “acme” to ~/Documents/code/ which created a directory named “acme”, so our full path is ~/Documents/code/acme
The .git folder is in the acme directory. As a test, I tried opening the ~/Documents/code folder in WebStorm and it detected GIT was involved and the “Version control” menu item changed to show the branch ("main")
Soooo… I'm confused how this is supposed to work?
Please sign in to leave a comment.
Hi Steve,
Would you mind to reopen the project and share the entire logs folder zipped as per https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
I see you have a commit window enabled, does it open and detect changes properly? Are any other git actions available?
Also, what is the state of Settings | Version Control | Directory Mappings? Do you have your project correctly mapped there?
Hi Dino,
There isn't a way to attach the logs here?
There is nothing in the commit window, WebStorm is not understanding that this project is in a git working directory and is presenting options like “Create a Repository” (even though it's already in one).
Asking me to look at the Directory Mappings may be they key as there wasn't an entry for GIT there. After updating <project> to GIT I now see my main branch at the top and things “feel” right.
I guess we can close this as I can't attach the logs and manually setting the VCS provider seems to work. Thanks for the help.
BTW, I need to use a chromium based browser to login to JetBrains site. Firefox is my daily driver and your site doesn't work with it. That's pretty bad, IMO.
Steveklett
Use uploads.jetbrains.com and share the upload ID.
I'm using Firefox all the time to access JetBrains sites – works just fine.
Could be some extension, browser settings or (bad) cookies.
Additionally, you can check configuration here: Settings | Tools | Web Browsers and Preview
What is the error that you receive when using Firefox?
Interesting. I already tried in a private window and with all extensions disabled - same result. I've rebooted and still can't use Firefox. Thank you for the mention of uploads.jetbrains.com
No errors, it simply redirects back to the same page. Just tried again, same result.
Steveklett
Try creating a new Firefox profile (e.g.
firefox -p
orabout:profiles
) and use it for a test – any difference?To check if it could be some browser setting or a site specific option that you did earlier (the new profile will surely have nothing there).