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

fix: compilation-find-file advice #1696

Closed

Conversation

actondev
Copy link

We should check if file doesn't exist in the passed directory and not
the default directory. In cases where the compilation happens in
another directory (like ./build), the passed filename can be
relative (like ../file.cpp) and checking for its existence in the
default-directory fails

@actondev
Copy link
Author

actondev commented Jul 30, 2021

Was late at night so I was not quite verbose :)

I asked in emacs reddit before I understood what was happening ( https://www.reddit.com/r/emacs/comments/ouad7r/compilegotoerror_wrong_file/ )

Also, if I may ask, what is the reason of this advice?

We should check if file doesn't exist in the passed directory and not
the default directory. In cases where the compilation happens in
another directory (like ./build), the passed filename can be
relative (like ../file.cpp) and checking for its existence in the
default-directory fails
@actondev actondev force-pushed the fix/compilation-find-file-advice branch from 18d65e1 to 280c1db Compare July 30, 2021 17:11
@bbatsov
Copy link
Owner

bbatsov commented Aug 10, 2021

It seems to me this problem is already fix by #1691

@actondev
Copy link
Author

Nice!
I'm closing then this for now. Will test with the latest commit and if I get any problems will come back to you.

@actondev actondev closed this Aug 10, 2021
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.

2 participants