Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read symlink when writing files #10339

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Conversation

kirawi
Copy link
Member

@kirawi kirawi commented Apr 10, 2024

Resolves #10326

@kirawi kirawi added C-bug Category: This is a bug A-helix-term Area: Helix term improvements labels Apr 10, 2024
Copy link
Member

@pascalkuthe pascalkuthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you try adding some intuegration tests for this so we catch if this ever regresses again?

Basically create some symlinks and then make sure that writing trough them modifier the original file as expected.

you can take a look at the git symlik tests to see an example ow how to set up tests like that

helix-view/src/document.rs Outdated Show resolved Hide resolved
@pascalkuthe pascalkuthe added this to the 24.04 milestone Apr 10, 2024
Co-authored-by: Pascal Kuthe <[email protected]>
@kirawi kirawi added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 10, 2024
@kirawi kirawi added S-waiting-on-review Status: Awaiting review from a maintainer. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 11, 2024
Copy link
Member

@pascalkuthe pascalkuthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! Tests are looking great too, gives me piece of mind to have those

@the-mikedavis the-mikedavis merged commit 6d363a9 into helix-editor:master Apr 12, 2024
6 checks passed
@kirawi kirawi deleted the symlink-fix branch April 12, 2024 01:55
dpc pushed a commit to dpc/helix that referenced this pull request Apr 18, 2024
postsolar pushed a commit to postsolar/helix that referenced this pull request Apr 20, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
Chirikumbrah pushed a commit to Chirikumbrah/helix that referenced this pull request Jun 15, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot recognize symbolic links on Windows
3 participants