Monday, January 11, 2021

Re: CodeServer looks for (not required?) source

On 10. 01. 2021. 15:53, Gordan Krešić wrote:
> When using SDM's Code Server, I get following error during initial load:
>
>     [ERROR] Could not find org.apache.commons.lang3.LocaleUtils in types
> compiled from source. Is the source glob too strict?
>
> That's it, no further reference which class depends on LocaleUtils. Is there
> a way to increase log verbosity of code server?

To summarize: one of my classes did reference LocaleUtils, but not directly.
It had static member field of type OffendingClass that internally had
methods which use LocaleUtils.

That field was not accessed in client code, co compiler, after it pruned AST
didn't stumbled upon it, as I suspected. SDM skips such optimizations and
did found OffendingClass in AST, but for some reason didn't report class name.

Decreasing log level od CodeServer didn't report offending class either, but
gave me some clues where to look for.

TIL:

1. When CodeServer doesn't report offending class, look at static members
and static class initializers.

2. GWT Gradle landscape is in poor condition.

-gkresic.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6ccd627b-d9ea-d5f2-e411-f8ee2df02eb8%40steatoda.com.

No comments:

Post a Comment