-
Notifications
You must be signed in to change notification settings - Fork 682
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
[#1823] Fix play.exceptions.CompilationException #786
Conversation
play-1-3-x-pull-requests #243 FAILURE |
@Notalifeform could you have a look on my PR (some tests to check if there isn't any problem on mac, forx ex)? |
play-1-3-x-pull-requests #244 FAILURE |
// 1. check if there is a folder (without extension) | ||
VirtualFile javaFile = path.child(fileOrDir); | ||
|
||
if (javaFile.exists() && javaFile.isDirectory() && javaFile.matchName(fileName)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don´t know who that came into it. My original PR was
if (javaFile.exists() && javaFile.isDirectory()) {
return null; // we found a package
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but as I said there was still problem with your PR, your PR only work with play precompile
.
example with name = controllers.Application, it was sometimes detect as a directory on windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the problem is than, that the name of a directory must be cheched as well by its canonical name. My implementation was base on the assumption, that java packages must be allways lower case and i do not have to check the directory for case insensitivity. I will update my pull request.
You tested this with the normal "play run" on the small sample application from #786 1823 lighthouse ticket?
synapplix@e76ded2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I used the project sample attached to the issue, I run also the ApplicationTest as a Junit Test. The function matchName
just do waht you said : directory "must be cheched as well by its canonical name".
So I think my change are ok, aren't they?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no it is not I think on this line it must be:
javaFile.matchName(fileOrDir)
and not
javaFile.matchName(fileName)
Nevertheless with this patch we have a new problem with the template code itself. On Linux it is possible to create two different directories "application" and "Application": Perhaps a other naming schema for templates would be better something like this: |
We cannot change the naming schema for templates, I thinks the simpliest solution to make it work on windows is not to user the |
…ion error [#1823] Some fix on the method getJava
play-1-3-x-pull-requests #246 FAILURE |
How is it possible to see the actual failure of this build? If I click on the link i only see a Login screen from CloudBees. Is there any chance to get the build script to try the same on our own jenkins server (i hate those restrictive build services, hope you will leave it soon)? |
Yes I saw that since some update from cloudee, anonymous cannot access build, I try to male make it accessible.
We have it for all PR base on the 1.3.x branch, but I don't know why, as I didn't have this issue on my computer. |
[#1823] Fix play.exceptions.CompilationException
[#1823] Fix play.exceptions.CompilationException (fix for the fix #786)
lighthouse #1823