Closed MatthewMaclean closed 9 years ago
learn to copy+paste :-1:
try inserting
Logger.info(file)
above this line in RepoModel#updateCounts(commit: Commit):
val repoFile = RepoFile.getByFile(file).get
then crossreference that against the database:
select * from RepoFile where file = 'whateveryougotabove';
does it exist? if not, does ANYTHING?
select * from RepoFile;
if nothing exists, does the COMMIT?
-- backticks are necessary here
select * from `Commit`;
if nothing exists, database is fucky. if the repofile exists, something's going wrong with matt's parsing stuff probably. if things exist but the repofile doesn't, then check RepoFileModel#touchFiles and see if that's ever getting hit.
closing this due to no follow up
I tried it twice, the first time it tried to find README.md, the second it tried to find back/app/controlelrs/Appliation.scala. Both exist in the database, but when it tries to get by file, it fails.
delete the db and try again On 8 Mar 2015 16:21, "MatthewMaclean" notifications@github.com wrote:
I tried it twice, the first time it tried to find README.md, the second it tried to find back/app/controlelrs/Appliation.scala. Both exist in the database, but when it tries to get by file, it fails.
— Reply to this email directly or view it on GitHub https://github.com/isovector/take2/issues/41#issuecomment-77771925.
or ortherwise get me more useful information
That was after deleting the db and restarting the server. I'll just not use my local machine I guess.
naw, this is definitely something we should fix
On Sun, Mar 8, 2015 at 4:57 PM, MatthewMaclean notifications@github.com wrote:
Closed #41 https://github.com/isovector/take2/issues/41.
— Reply to this email directly or view it on GitHub https://github.com/isovector/take2/issues/41#event-248215423.
for the meantime actually i guess you can just early return from that function so the .get doesn't happen