Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Hildreth
16,170 PointsUnit Test not creating PointTest class
So I am getting an error when creating the Unit Test for the Point class. My error is as follows:
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
How do I know which of those are too long?
2 Answers
Chris Jones
Java Web Development Techdegree Graduate 23,933 PointsHey Daniel, have you tried moving your project to a different, shorter filepath? Can you share the filepath of your project?
If you really want to know whether it's the file or filepath, I would just count the characters of both and see which is causing the filepath to go over 260 characters.
This may also be a good place to start.
Sorry I don't do much with C#, but those seem like good things to try first.
Daniel Hildreth
16,170 PointsOk so did some playing around with it. It did not like the file in my documents folder, but had no problem with it in my repos folder for GitHub related projects. So I got it working.