-
Notifications
You must be signed in to change notification settings - Fork 58
The filename or extension is too long #92
Comments
Your working directory is probably so long already that every path on the classpath becomes so long that the total classpath exceeds the windows path limit. You can try working from a shorter working path (try C:/myproject for instance) and see if you get the same result. You could also check if you have unnecessary dependencies on the classpath and remove those. Besides that there is not much that can be done by the plugin as it is a Windows OS limitation. |
We ran into the same problem with the This may not immediately useful since forking a process would probably be a sizeable effort, but thought I'd at least mention it. |
Thanks @dstine for the suggestion, looks like it could be solved in the plugin after all. I'm going to reopen this if anyone with wants to take a stab at solving this. |
Most of file pathes in my classpath was not related to project, there were pathes to gradle artifacts. |
Another approach it seems would be to create a dummy jar with a manifest listing all the dependencies as done here http://stackoverflow.com/questions/201816/how-to-set-a-long-java-classpath-in-msdos-windows. This could be done on-the-fly before running the tasks that require the long classpath. Edit: Looks like Maven's Surefire plugin also uses a booter jar for long classpaths http://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html |
This problems starts to hit me too. I have an application with many larger dependencies (jasper reports, Apache Poi, ...) and up until now I could circumvent it by excluding unused parts of the dependency but it gets harder and harder now. Everytime I add a dependency I pray that I don't reach the limit again. :( PS: this "Long Path Tool" sound very fishy and also wouldn't be a solution for this problem. |
@ssindelar we solved this issue changing GRADLE_HOME to the root of disk instead of having it in user home dir. This operation made classpath shorter. |
@TSergey Thanks thats a good idea, but i fear it only delays the problem. |
With the GRADLE_HOME trick I am at around 28k now. So I have some room to breath now. Maybe instead of building some intermediate jar it would be easier to provide a possibility to exclude some groups/modules or a simple text based filter. Most of the classpath just isn't needed for compiling the widgetset Maybe just another gwt property, e.g: After the classpath in Util.getClientCompilerClassPath is collected just filter out the entries that match the any entry in the given exclude-list. |
@ssindelar The filter sounds like a good idea. |
I recently added an option for using a classpath jar when the classpath gets too long (27613e0). It should be available through the snapshots and by setting the property Maybe it will work better for you? |
Closing this as |
While using this option I get:
any suggestions? |
Would it be possible to add this to the vaadinUpdateAddonStyles task? I'm getting a "filename or extension is too long" there too. |
@kjordan2001 Yes, fixed this in #208. Should work with the next maintenance release (0.10.3). |
@Samantha258 do you plan to create new github users every week now to report back here? assuming, that you are an employee or do the "marketing" for that tool, it must be pretty pish, if that's your attempt in selling it... |
Oh great, the marketing department is back from summer vacation. What viral surprise strategy will it take this time? The last one found it's early end by GH deleting that user... |
Hello, we run into the same problem but with the maven plugin for vaadin :( https://vaadin.com/forum#!/thread/14201472 |
@wrightsanches1 reported you again. Long Path pleeps are the worst... |
@PeterCooks2 reported |
Hi.
When I try to build vaadin application with the plugin I get the following error:
Execution failed for task ':rms-ui:updateAddonStyles'.
> Cannot run program "java": CreateProcess error=206, The filename or extension is too long
Debugging plugin I see that my classpath is really long and it's longer than allowed limit in windows (32 767 characters are allowed and I have about 33400).
Is there a chance this could be fixed?
The text was updated successfully, but these errors were encountered: