Comments (11)
I've tried it on MAC OS and works fine. So there is no need to remove the drive letter.
I'll get this fix out soon.
from git-mob-vs-code.
Interesting, I specifically remove the drive letter to make ti work on Windows
I think the difference being you run the portable VS code version. I wonder if that has anything to do with it.
I'll try to find time to investigate it.
from git-mob-vs-code.
@r15ch13 I've setup Git Mob on a portable version of VS Code and was able to open the .git-coauthors
file.
Were you able to follow the path in the error message to the file? I'm just wondering if the path is incorrect somehow?
By chance are you using the environment variable GITMOB_COAUTHORS_PATH
?
from git-mob-vs-code.
The path itself is correct, except the missing drive letter. GITMOB_COAUTHORS_PATH
is not set.
It works just fine if I remove .replace(/^([a-z]:[\\]|[\/])/gi, "")
from
from git-mob-vs-code.
get path() {
vscode.window.showErrorMessage("without regex: " + path.join(os.homedir(), this.file));
vscode.window.showErrorMessage("with regex: " + path.join(os.homedir(), this.file).replace(/^([a-z]:[\\]|[\/])/gi, ""));
return path
.join(os.homedir(), this.file);
}
from git-mob-vs-code.
Interesting, I'm on windows 10 and used the latest version of git-mob, git-mob-vs-code and VS Code.
The only thing I don't know is what version of VS Code do you have?
As far as I understand Portable VS Code, it does not auto-update. Maybe that version does not support file paths in the same way as the latest.
from git-mob-vs-code.
Installed via Scoop to D:\scoop\apps\vscode-portable\current
from git-mob-vs-code.
I see, the issue could be that is looking for .git-coauthors on your D drive but it's on your C drive.
This is easy to fix for windows, just need to think about Unix based systems.
from git-mob-vs-code.
Shouldn't be os.homedir()
enough? The directory separators are correct in both cases.
const os = require('os')
const path = require('path')
console.log(path.join(os.homedir(), '.git-coauthors'))
from git-mob-vs-code.
I remember the issue was on a Mac. So I'll need to confirm the path on a Mac.
When I first did this, I thought os.homedir()
was the solution.
from git-mob-vs-code.
Will be part of release 1.3
from git-mob-vs-code.
Related Issues (20)
- GitHub fetch anonymous email if main one is hidden
- Include git-mob in open-vsx extension repository HOT 2
- Add user from GitHub - handle no name HOT 3
- Unexpected token } in JSON at position 102 HOT 1
- error message: `EACCES: permission denied, open '../.gitmessage'` HOT 9
- Cannot read properties of undefined (reading 'email') HOT 2
- Watch for commit failed ENOENT: no such file or directory \.git\COMMIT_EDITMSG
- UI Proposal: Replace Unselected and More with Favorites HOT 10
- Error message if Github PAT not entered or if no results HOT 4
- UI: Change in List dialog HOT 4
- On selecting co-author: Failed to update input: Cannot read property 'inputBox' of undefined HOT 4
- Handle support for prepare-commit-msg
- Toggle authors in alphabetical order ascending or descending
- Add co-author from "more authors" directly into "selected"
- Include co-author only contributors into the "more authors" list
- Append sign-off metadata
- Copy co-author metadata to clipboard
- Cannot read property 'inputBox' of undefined for workspaces HOT 3
- GitMob handleResponse: "git config --get commit.template" HOT 1
- Append co-authors via command palette
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 git-mob-vs-code.