Skip to content
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

How to debug dekoration problems? #255

Closed
fsamir opened this issue Jul 12, 2019 · 2 comments
Closed

How to debug dekoration problems? #255

fsamir opened this issue Jul 12, 2019 · 2 comments

Comments

@fsamir
Copy link

fsamir commented Jul 12, 2019

Hi there,
I have been trying to use dekorate with gradle and every so often it fails to generate kubernetes.yml with no explanation.
Is it possible to enable some sorting of verbose logging?

gradle clean build --debug doesn't display any relevant info about dekorate.

Thanks

@fsamir fsamir changed the title Hot to debug problem? Hot to debug dekoration problems? Jul 12, 2019
@iocanel
Copy link
Member

iocanel commented Jul 12, 2019

Hi @fsamir, I am sorry to hear you are having issues with gradle.
At the moment dekorate doesn't log much (we are working on it see #38 ), so your best bet would be to enable stacktraces using something like --stacktrace.

I would gladly have a look at your project setup and try to identify possible issues.

@fsamir fsamir changed the title Hot to debug dekoration problems? How to debug dekoration problems? Jul 15, 2019
@fsamir
Copy link
Author

fsamir commented Jul 15, 2019

Thanks, but unfortunately none of Gradle logging options were helpful.

In my case, Dekorate stopped running completely once I changed the default source folders, like:

sourceSets {
    main {
        java {
            srcDirs = [] // don't compile Java code twice
        }
        groovy {
            srcDirs = ['src/main/groovy', 'src/main/java']
        }
    }
    test {
        java {
            srcDirs = [] // don't compile Java code twice
        }
        groovy {
            srcDirs = ['src/test/groovy', 'src/test/java']
        }
    }
}```

Removing it fixes the problem.  I guess Dekorate is setup to hook to one of the default compilation steps and gets confused when they are overwritten. 

@fsamir fsamir closed this as completed Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants