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

Code maat is not parsing date in TFS log #54

Open
mauro2357 opened this issue Jan 10, 2018 · 6 comments
Open

Code maat is not parsing date in TFS log #54

mauro2357 opened this issue Jan 10, 2018 · 6 comments

Comments

@mauro2357
Copy link

I am trying to execute code maat in TFS but i get the following error:

Invalid argument: Unsupported TFS Date Format: Thursday, December 21, 2017 9:26:46 AM
This is Code Maat, a program used to collect statistics from a VCS.
Version: 1.0-SNAPSHOT

This is the command i am using

java -jar code-maat.jar -l "C:\TFS\Loc\Dev\Satrack.Loc.Core\Domain\tfslog.csv" -c tfs -a revisions

And this is the tfs log i am using.

tfslog.txt

I checked and the date is in the locale that you recommend.

Thanks!

@laenas
Copy link
Contributor

laenas commented Jan 10, 2018

This was my patch, I'll take a look at it!

@laenas
Copy link
Contributor

laenas commented Jan 10, 2018

I am having difficulty reproducing this issue:
lein -run -l tfslog.txt -c tfs -a revisions
puts output that I'd expect, a list of files with a single revision each.

Is there any other information you have? Perhaps the previous entry in the TFS log is somehow throwing off the parsing grammar?

@mauro2357
Copy link
Author

This is the complete log i get in the console.

maat.txt

In this link is the jar i am using. https://drive.google.com/file/d/1sJeYRZqaAmz27ZTXzaS9npm6tLdZsHDC/view?usp=sharing
it was generated on 2018-january-2 with the code commited until that day on github.

I am running the program in windows 7 professional with the locale US

image

Thanks in advance

@laenas
Copy link
Contributor

laenas commented Jan 10, 2018

Even that JAR is working as expected for me, and I'm wondering what could be causing a problem, it shouldn't be down in the system settings at this point, because the TFS log you shared is in the correct format. I'm wondering if somehow there's a grammar issue that's trickling down?

Have you confirmed you get the same behavior if you use the same tfslog.txt that you provided(and not your original CSV file)?

@mauro2357
Copy link
Author

I used the txt that i uploaded and the problem is the same. Does the program use environment variables or depend on a specific version of OS?

@laenas
Copy link
Contributor

laenas commented Jan 10, 2018

It shouldn't be affected by anything like that, and even when I toggle my system's formats from en-us to no-no, this is still parsing as expected for me. Are you able to debug this and provide any additional info out of the exception that clj-time is throwing?

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

No branches or pull requests

2 participants