Comments (11)
Looking into it.
from vscode-gitflow.
Welcome!
Thank you for finding time to write an issue and help to make this extension better. I`ll appreciate if you find some time to rate this extension here.
I`ll get to this Issue ASAP.
from vscode-gitflow.
Thank you for pointing out this issue. I added check of git.path
parameter. Also, I added git.path
when there is no such a parameter. That is useful especially on Windows systems with CMD terminal.
Check version 1.3.1
Also, I'll very appreciate if you rate this extension here
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow&ssr=false#review-details
from vscode-gitflow.
Not sure if I missed right version, but I'm still getting 'git' is not recognized as an internal or external command
for any flow operation. I.e current v1.3.11
does not seem to heed neither VSC native git.path
(pointing to git executable) nor gitflow.path
pointing to usr\bin
in git directory (but I don't see any real "flow executable" there, only configs and shell scripts or something).
Tried with vanilla portable profile of VSC insider build with config:
{
"git.path": "<...>\\git-for-windows\\bin\\git.exe",
"gitflow.path": "<...>\\git-for-windows\\usr\\bin\\"
}
(Config in is "portable" data
folder that is next to code executable.)
VSC SCM actions like fetch
work
OK. Invoking git flow version
(git from that git.path
above) gives me 1.12.3 (AVH Edition)
.
Is there anything else I should set in some config?
from vscode-gitflow.
Try to empty both parameter. Your path looks strange. If you use WSL remote then path have to have /
not\
. And git.exe
will not work when VS Code in WSL remote.
from vscode-gitflow.
Sorry, I didn't make it clear: that is literally content of the settings.json
-- technically JSONC, you know, that file VSC shows if you invoke "Preferences: Open User Settings (JSON)" where all user settings are stored -- with unimportant pieces of paths collapsed to <…>
(let's say D:\portable-programs
) and escaped backslashes (JSON necessity).
As I suggested, I'm using the "portable mode" for storing user data and basically everything orchestrated in a portable manner (unpacked and configured to be using each other, so deleting the git.path
would strip such VSC from all git features altogetger).
Full paths then look like:
- VSC executable:
D:\portable-programs\VSCode-insider\Code - Insiders.exe
- VSC settings in
data
folder:
D:\portable-programs\VSCode-insider\data\user-data\User\settings.json
- GIT executable (using cmder, keeping
vendor\git-for-windows
updated with recent release ofPortableGit-<version>-64-bit.7z.exe
):
D:\portable-programs\cmder\vendor\git-for-windows\bin\git.exe
from vscode-gitflow.
if in terminal you run which git
what do you get as return?
from vscode-gitflow.
Clean OS terminal has naturally no clue about git, until its executable path is added to environmental path (either by install or manually), what is not my case.
When I run where git
in my portable, specifically configured cmder instance I get what I should:
λ where git
D:\portable-programs\cmder\vendor\git-for-windows\cmd\git.exe
D:\portable-programs\cmder\vendor\git-for-windows\mingw64\bin\git.exe
(it is added to its path
by some init sctripts.) Same applies for terminal inside VSC, because is is configured to use the same thing.
When I invoke at VSCode native command Git: Show Git Output
, it starts with
[2022-07-29T10:26:44.747Z] Log level: Info
[2022-07-29T10:26:44.805Z] [info] Validating found git in: D:\portable-programs\cmder\vendor\git-for-windows\bin\git.exe
[2022-07-29T10:26:44.858Z] [info] Using git 2.37.1.windows.1 from D:\portable-programs\cmder\vendor\git-for-windows\bin\git.exe
[2022-07-29T10:26:45.015Z] > git rev-parse --show-toplevel [151ms]
[2022-07-29T10:26:45.292Z] > git rev-parse --git-dir --git-common-dir [271ms]
[2022-07-29T10:26:45.295Z] [info] Open repository: ░░░░
[2022-07-29T10:26:45.408Z] > git status -z -uall [103ms]
(etc)
Presumably that's because of that git.path
pref. Using other git-related extensions (notably GitLens or Git History) works as well. But admittedly, not all git-related extensions honour the git.path
and work in portable mode.
from vscode-gitflow.
This for instance [2022-07-29T10:26:45.015Z] > git rev-parse --show-toplevel [151ms]
say that it calls git with simply git
command without path.
from vscode-gitflow.
This for instance
[2022-07-29T10:26:45.015Z] > git rev-parse --show-toplevel [151ms]
say that it calls git with simplygit
command without path.
Haven't dug into that much but I assume that it's that git
mentioned on second and third line ("[…] found git in [path]", "[…]using git [version] from [path]"). That [path] coincidentally matches that one set by git.path
preference.
from vscode-gitflow.
Seems there remains one bare git
to be replaced by "${this.util.path}"
in const checked = this.util.execSync(`git check-ref-format --branch ${name}`).trim();
.
Also looking elsewhere it seems other extensions are waiting for "initialized" gitExt API state before relying on the executable path. (Vs yours. But IDK if that matters.)
from vscode-gitflow.
Related Issues (20)
- the characters # are supported when creating gitflow branch names HOT 4
- branches with more than 1 slash are truncated HOT 7
- command 'gitflow.quickPick' not found HOT 8
- Startup takes too long HOT 15
- After latest release/1.3.16 I don't see anything in tabs HOT 2
- `pre-merge-commit` seems not triggered during `Feature - Finish` action HOT 2
- Making this extension available on OpenVSX marketplace HOT 7
- Not working on Windows WSL for Ubuntu 20.04 HOT 34
- Support git hooks like gitflow-avh HOT 7
- Not working under OSX (git-flow config list error) HOT 7
- Branch does not show correctly HOT 4
- Create options for default finish behaviors HOT 2
- Add option for auto publish a branch
- Set Tag name on finish Release or HotFix HOT 2
- Error executing `git-flow config list` command HOT 4
- command 'gitflow.switchRepo' not found HOT 2
- Feature request : Add option to turn off `git flow init` prompt HOT 2
- Missing icons on hover for features in the Gitflow view HOT 1
- Multilingual support HOT 4
- add option to edit commit message of merges HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-gitflow.