Comments (5)
Thanks for reporting!
It looks like you are on Windows and aren't using the latest version, 0.11.4 at the moment. There the issue you are describing should be fixed. Could you try to update and try again? Thank you.
from gitbutler.
I'm on Linux. Maybe I wasn't using 0.11.4 at the time, but now I am. The log now shows:
2024-04-26T13:42:33.040736Z ERROR add_project: crates/gitbutler-tauri/src/projects.rs:27: error=Error(failed to add 'foo.socket' to temporary index
Caused by:
0: failed to open repository
1: failed to run initial flush
2: failed to build working directory tree
3: failed to build wd index
4: failed to add 'foo.socket' to temporary index
5: could not open '/tmp/tmp.PdmNlywACH/foo.socket': No such device or address; class=Os (2)) �[3mpath�[0m�[2m=�[0m"/tmp/tmp.PdmNlywACH"
2024-04-26T13:42:33.040780Z INFO add_project: crates/gitbutler-tauri/src/projects.rs:27: close time.busy=16.7ms time.idle=57.7µs �[3mpath�[0m�[2m=�[0m"/tmp/tmp.PdmNlywACH"
from gitbutler.
Thanks you!
That's strange - foo.socket
shouldn't be touched if it is ignored. If the .gitignore
file contains foo.socket
and git ignores it, then the answer must be some part of the code that doesn't respect .gitignore
- I will take a look.
from gitbutler.
I actually can't reproduce this on MacOS. Not only does our client ignore it, but even the Git CLI ignores it entirely, even without a .gitignore
.
EDIT: This looks like a symlink, that's a clue. Let me check.
I still can't reproduce on Mac for some reason; I tried
- Socket directly in the working dir
- Socket (daemon is dead) directly in the working dir
- Gitignored version of the above two
- Symlinked version of the above two
- Hard linked version of the above two
This might be linux specific. I'm not sure why we'd be trying to open it, though, given that it's gitignored. That's really strange and doesn't seem like it'd be platform-specific.
A clue that this is a symlinked + closed (server is dead) socket is that the realpath gets resolved to /tmp
and the error, No such device or address
, means that the socket file exists but no endpoint (server) is responding on the other side.
We do have a bug, however, that GItButler will show a symlinked/hardlinked socket in the file tree erroneously, but it seems to be unaffected by commits (as it should be). Git CLI at least follows the symlink and tries to stat
the file it points to when determining if the file should be ignored - we should be doing that for anything that isn't a Normal/Dir file node on *nix systems.
However that doesn't address the fact I still can't reproduce on Mac 😓 I'll have to try this on Linux when I get a chance.
from gitbutler.
Possibly related issues: #2608 and #2672
from gitbutler.
Related Issues (20)
- Cannot commit parts of the code to other branch because it's "locked" HOT 3
- Cannot close the file card opened by clicking Trunk's commit history files
- Remove the commits field from VirtualBranch in favor of list_remote_commit_files
- Feature request: Support for putty/plink ssh.variant (Windows-specific) HOT 2
- Enable GitButler Features Slider by Default HOT 1
- Cannot generate message using local LLM with icon option enabled HOT 3
- Replace "Create PR" with "Setup GitHub" button if not integration is in place
- [Research|Draft] The great refactor (for lack of a better title) HOT 2
- Gracefully handle scenario when user make a commit to gitbutler/integration
- Extremely slow since MacOS Sonoma 14.5 HOT 11
- "Open in VSCode" does not open the current repository HOT 5
- super slow in a windows 10 virtual machine with no Internet HOT 16
- Toast message with the new version change log contains an error field with "undefined"
- Show "Integrations" tab even when user's not logged in, for the purpose of discoverability
- Release tagging
- Feature Request: Open in VSCode in a New Window HOT 7
- High CPU load if "You are up to date" is showing (Linux) HOT 4
- Can't open GitButler if closed when maximized (WSL) HOT 1
- First usage: "GibButler's integration commit not found on head" HOT 4
- Workspace Refresh fails when there is a locked file in the folder HOT 3
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 gitbutler.