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

symbolic link handling #1576

Closed
leventelist opened this Issue Mar 1, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@leventelist

leventelist commented Mar 1, 2017

Codelite has hard time handling symbolic links. If a source file is a symlink, it will delete the link, and create a file from the content it is was pointed to.

@eranif eranif closed this in 1a454eb Mar 8, 2017

@uffejakobsen

This comment has been minimized.

Show comment
Hide comment
@uffejakobsen

uffejakobsen Oct 31, 2017

It seems that this is still an issue with CL 11.0.0

CL 11.0.0 @ arch linux

uffejakobsen commented Oct 31, 2017

It seems that this is still an issue with CL 11.0.0

CL 11.0.0 @ arch linux

@leventelist

This comment has been minimized.

Show comment
Hide comment
@leventelist

leventelist Nov 1, 2017

@eranif was that fix went to 11.0.0? I haven't tested it yet.

leventelist commented Nov 1, 2017

@eranif was that fix went to 11.0.0? I haven't tested it yet.

dghart added a commit that referenced this issue Dec 14, 2017

Use realpath on Linux when saving in an editor. This makes the save w…
…ork for relative symlinks and symlinks-to-symlinks too.

This should fully fix #1576.

Also, move a comment line back to the code it refers to.
@dghart

This comment has been minimized.

Show comment
Hide comment
@dghart

dghart Dec 14, 2017

Collaborator

I wasn't able to get 'save' to overwrite a symlink. However the current code did fail to save at all when the symlink was relative (it complained about a non-existent permissions problem) and would probably have failed if there was >1 symlink ahead of the real file.

This should now have been fixed by 766d8c7. If you still have problems, please could you explain how to replicate them, or ideally provide a testcase project.

Collaborator

dghart commented Dec 14, 2017

I wasn't able to get 'save' to overwrite a symlink. However the current code did fail to save at all when the symlink was relative (it complained about a non-existent permissions problem) and would probably have failed if there was >1 symlink ahead of the real file.

This should now have been fixed by 766d8c7. If you still have problems, please could you explain how to replicate them, or ideally provide a testcase project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment