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

file-truename when caching current file. Closes #667 #691

Merged
merged 1 commit into from
Jun 19, 2015

Conversation

colonelpanic8
Copy link
Contributor

No description provided.

@bbatsov
Copy link
Owner

bbatsov commented Mar 28, 2015

Change to commit message to "[Fix #667] Use file-truename ...".

@bbatsov
Copy link
Owner

bbatsov commented Apr 2, 2015

Mention the bugfix in the changelog and remove the . from the commit message (commit message titles are not sentences).

@@ -30,6 +30,9 @@ to behave like `helm-find-files`, such as multifile selection and opening or del
buffers by name
* New `defcustom` `projectile-globally-ignored-file-suffixes` allows
you to globally ignore files with particular extensions
* Use file-truename when caching filenames to prevent
Copy link
Owner

Choose a reason for hiding this comment

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

This should be in the Bugs fixed section of the master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, so really, what you mean is that this needs to be merged with master...

Copy link
Owner

Choose a reason for hiding this comment

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

Yes.

On Saturday, April 25, 2015, IvanMalison [email protected] wrote:

In CHANGELOG.md
#691 (comment):

@@ -30,6 +30,9 @@ to behave like helm-find-files, such as multifile selection and opening or del
buffers by name

  • New defcustom projectile-globally-ignored-file-suffixes allows
    you to globally ignore files with particular extensions
    +* Use file-truename when caching filenames to prevent

Okay, so really, what you mean is that this needs to be merged with
master...


Reply to this email directly or view it on GitHub
https://github.com/bbatsov/projectile/pull/691/files#r29098818.

Best Regards,
Bozhidar Batsov

http://www.batsov.com

@@ -45,6 +45,9 @@ to behave like `helm-find-files`, such as multifile selection and opening or del
* Prevent `projectile-kill-buffers` from trying to kill indirect
buffers.
* [#412](https://github.com/bbatsov/projectile/issues/412): Handle multiple possible targets in `projectile-toggle-between-implementation-or-test`.
* Use `file-truename` when caching filenames to prevent
Copy link
Owner

Choose a reason for hiding this comment

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

The place of this entry has to be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What? Is it not currently in the right place?

Copy link
Owner

Choose a reason for hiding this comment

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

0.12 was already released. See the latest version of the changelog and you'll understand what I mean.

@bbatsov
Copy link
Owner

bbatsov commented Jun 2, 2015

@IvanMalison ping

@colonelpanic8
Copy link
Contributor Author

I can take a look at this soon

@bbatsov
Copy link
Owner

bbatsov commented Jun 10, 2015

//cc @vspinu

@vspinu
Copy link
Contributor

vspinu commented Jun 10, 2015

I think this patch indeed fixes a bug. As project root's name is always true name. Ths all files expanded against it should be truename as well. Also the defadvice on delete-file uses a similar logic to projectile-cache-current-file and it already calls file-truename.

This function is not critical in any sense. It's called either interactively or from the file-find-hook and only when projectile-enable-caching is on, which it's nil by default.

@@ -548,7 +548,7 @@ The cache is created both in memory and on the hard drive."
"Add the currently visited file to the cache."
(interactive)
(let* ((current-project (projectile-project-root))
(abs-current-file (buffer-file-name (current-buffer)))
(abs-current-file (file-truename (buffer-file-name (current-buffer))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please move these last two bindings inside the following (when. There is no point for them unless that conditional is true.

Also remove the double call to projectile-project-root on this occasion.

@colonelpanic8
Copy link
Contributor Author

status?

bbatsov added a commit that referenced this pull request Jun 19, 2015
file-truename when caching current file. Closes #667
@bbatsov bbatsov merged commit e22a775 into bbatsov:master Jun 19, 2015
@bbatsov
Copy link
Owner

bbatsov commented Jun 19, 2015

👍

@vspinu
Copy link
Contributor

vspinu commented Jun 19, 2015

In that case, the truename is horrendous

That's a relative name, not true name. From what you have said, I don't understand what's the exact problem nor how the new behavior "is a bug".

@kini
Copy link

kini commented Mar 22, 2017

FWIW, even if you made that an absolute path, it would look like /foo/bar/sos_cache/prj_name/prj_name_sos_cache/prj_name/FILES/dir1#dir1_1#dir1_1_1#file_name_v_1.23_456789, which is still horrendous :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants