nus-cs2103-AY1920S1 / forum

Forum
1 stars 1 forks source link

Repo Sense: issue with "invalid filepath" #137

Closed huiminlim closed 5 years ago

huiminlim commented 5 years ago

Environment

Describe your development environment

Issue

I was trying to make RepoSense work in my local repo by trying the following instructions from this page: https://github.com/reposense/RepoSense/blob/release/docs/UserGuide.md#configuring-a-repo-to-provide-additional-data-to-reposense

I added the config.json and followed all the way up to this step java -jar RepoSense.jar --repo C:/Users/user/Desktop/tp/main where my RepoSense.jar exists.

However, RepoSense shows a "Invalid filepath" error, which I am not too sure why.

image

I also tried to go to the file path .\\src\\test\\java\\dream\\fcard\\util\\data\\Test.java in my code to check and commented out lines with slashes in related test files, but does not solve the issue as well.

This is the link to the filepath in github for easy reference: https://github.com/huiminlim/main/blob/master/src/test/java/dream/fcard/util/data/Test.java

Any advice on why this error exist? Thanks in advance!

Code/Log Trace

My local repo currently has the code from this master branch: https://github.com/huiminlim/main

damithc commented 5 years ago

I've asked RepoSense devs to take a look

huiminlim commented 5 years ago

@damithc I think I resolved the problem, by removing a file with name " .\src\test\java\dream\fcard\util\data\Test.java " from my repo. Then, RepoSense produced a valid report after I removed this file with slashes in the name.

https://github.com/huiminlim/main/commit/c3215ba03a6d3d2c126d98f9b6c0b2376a3ffebc

I think that RepoSense does not accept files with slash in names.

Thank you and RepoSense dev team for the help anyway!