So my project worked okay till now. I got this exception when I tried to start in cuba Studio:
BUILD FAILED
Total time: 6.624 secs
[08:21:02.493] Task 'deploy, start' failed
org.gradle.api.GradleException: Unable to find SCSS file ...\myproject\modules\web\build\themes-tmp\VAADIN\themes\bin\styles.scss
And this is not the first time.
Sometimes it randomly happens. But I did not modify the VAADIN theme neither the scss files, So I am sure it is lying. Now I have a headache from it. Lots of time I had to restart my work from a backup. And it is really unpleasant.
Nowadays I found that, if I delete bin folder from here: …\myproject\modules\web\themes\ then it is build and works.
No, somewhy it is originally there. I did not modify this file
And in the working project is looks like the same. If I delete the second maven{…} I get an error:
Total time: 0.934 secs
[08:21:34.706] Task 'setupTomcat, deploy, start' failed
org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.haulmont.reports:reports-global:6.4.2.
Searched in the following locations:
https://repo.cuba-platform.com/content/groups/work/com/haulmont/reports/reports-global/6.4.2/reports-global-6.4.2.pom
https://repo.cuba-platform.com/content/groups/work/com/haulmont/reports/reports-global/6.4.2/reports-global-6.4.2.jar
Required by:
project :
Hi,
Of course I can.
Yes I created a new theme, based this documentation. But I did not changed much things.
No, I didn’t add custom Vaadin components.
Okay, I attached that.
And I have no idea why or how appeared the bin directory. I did the usual things. Friday I build my project, tested and left it as it works. And no theme modification. Monday morning I wanted to start it and then I got that exception. Unfortunately, I could not recognize what could occurs that exception.
The bin stucture is:
Was working on Friday and now error below. Moved from platform 6.5.5 to 6.5.7 today hoping issue was solved, it isn’t. Also moved to IDEA 2017.2. few days ago.
Made a clean, no change. Seems that build process thinks that ‘out’ is a legit theme, where it is in fact a product from build process within IDEA, and only when building from IDEA.
The generated dir structure which is problematic is
+web/themes/out
+production
+resources
+halo
IDEA compiling was using ‘out’ directories (default for projects), I set it to ‘build’ like studio, then cleaned everything. Assemble then worked but was not sure this is the solution.
Then the problem reappeared later. I just deleted the “…/modules/web/themes/out” directory then Studio was able to compile. But when I compile from IDEA the ‘out’ theme reappears, which is strange, because IDEA is supposed to replicate gradle build.
Tried to update gradle wrapper, no change. Project clean in Studio does not remove the ‘out’ theme either.
Tried with a fresh new project where i created a theme extension, same issue.
Then reverted to IDEA 2017.1.5 and problem seems gone.
Any updated on this issue. I started facing this recently and can assure that its some bug. The same code same config works on VM and fellow developers. It just stops working on my setup.
Only solution I found so far to delete the whole project folder, reclone and add as project in studio
Hi, works for me. thx. Do you see a way how to put the buildScssThemes gradle tasks to the extra.gradle. The build.gradle is partially generated and is sometimes overwritten.