-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
Scan for the Fossil checkout database instead of the config or repo database #1022
Comments
Shouldn't projectile be looking for |
That's the checkout database, which is different from the repository database. The documentation implies that common practice is to name the repo database as "project-name.fossil": http://fossil-scm.org/index.html/doc/trunk/www/tech_overview.wiki I don't use fossil often enough to know if people follow that convention or a different one. |
Yes, exactly. The checkout, where all the code for your project is checked out. Personally, I have my repository databases stored in one directory, as in
Regardless, I don't think anybody names it literally |
Oh! I see now, you're totally right. It should be looking for |
|
The fossil checkout database is named `.fslckout` or `_FOSSIL_`, not `.fossil`. Searching for a dominating .fossil file would just find `~/.fossil`, which is Fossil's user config database.
The fossil checkout database is named `.fslckout` or `_FOSSIL_`, not `.fossil`. Searching for a dominating .fossil file would just find `~/.fossil`, which is Fossil's user config database.
Same problem as #865, but I think projectile is doing the wrong thing here.
Expected behavior
Project without a VCS is able to list files when Fossil is installed, and there is a global fossil configuration database in the usual location.
Actual behavior
Projectile interprets Fossil's global configuration database as a VCS checkout since it's located at
~/.fossil
:https://www.fossil-scm.org/index.html/doc/trunk/www/tech_overview.wiki
This means that any non-VCS project created under my home directory can't list files correctly, reporting:
current directory is not within an open checkout
.Steps to reproduce the problem
Install Fossil
Init a fossil repo somewhere so that the configuration database will be created
Start a new projectile project and a file in it
Try to open the other file in the project (
C-c p f
). Instead of a file list, you'll see this message that projectile forwards from fossil:Environment & Version information
Note: fossil installed via homebrew. Probably not relevant.
Projectile version information
Emacs version
GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21)
Operating system
MacOS 10.9.5
My Workaround
Special casing fossil in
projectile-project-vcs
to ignore a.fossil
file if it's in the home directory worked for me. I don't know how portable using(expand-file-name "./" "~")
is.The text was updated successfully, but these errors were encountered: