Zac Sweers
06/17/2023, 3:15 AMkirillrakhman
06/17/2023, 8:08 AMdmitriy.novozhilov
06/17/2023, 9:11 AMSupport for generating resources during compilations, which were de-scoped for K2.I doubt that issue you mentioned is related, because it is a feature request for compiler API from community. It doesn't relate to KSP
Lack of support for suppressing invisible_member diagnosticAs Kirill said, there is no
INIVISIBLE_MEMBER
anymore. You can add -Xrender-internal-diagnostic-names
CLI arg to see names of each diagnostics reported during the build. It can help to adjust existing suppresses in case diagnostic name was changed (there is a number of such changes)
The issue you menitioned is not about supporting INIVISIBLE_MEMBER
in K2, but about lack of any diagnostics in K2 in some cases where K1 reported INIVISIBLE_MEMBER
Zac Sweers
06/17/2023, 6:50 PMZac Sweers
06/17/2023, 7:20 PMI doubt that issue you mentioned is related, because it is a feature request for compiler API from community. It doesn't relate to KSPThat's the one you linked me when I asked about this in the past 🙂 https://kotlinlang.slack.com/archives/C03PK0PE257/p1670251130734739?thread_ts=1670130290.585809&cid=C03PK0PE257 Basically I have a compiler plugin that generates resources during AnalysisHandlerExtension phase like KSP does. It tracks its own source dir and attaches it manually to the eventual resources task like KSP does, I guess what I'm wondering is if that means this is compatible with K2 and I misunderstood before (because KSP says this is ok too)
kirillrakhman
06/17/2023, 7:22 PMdmitriy.novozhilov
06/18/2023, 6:53 AMSo the IDE isn't happy about it, but that does compile on the command lineYou can also enable internal mode in IDEA to see names of diagnostics for K1 in IDE too
Basically I have a compiler plugin that generates resources during AnalysisHandlerExtension phase like KSP doesOh, I misunderstood your issue then. I thought you have some troubles with KSP, not the custom plugin Could you please ask KSP team how did they done it (I'm not much into details) and check if their approach suties for you
Zac Sweers
05/01/2024, 3:16 AMINVISIBLE_REFERENCE
, but that's now a warning to use in K2 and breaks -Werror. Is there something else we should be using?Zac Sweers
05/01/2024, 3:16 AMERROR_SUPPRESSION
appears to be non-suppressible)Zac Sweers
05/01/2024, 3:19 AMdmitriy.novozhilov
05/01/2024, 5:45 AMZac Sweers
05/01/2024, 2:20 PMkirillrakhman
05/01/2024, 2:23 PMZac Sweers
05/01/2024, 2:48 PMdmitriy.novozhilov
05/01/2024, 2:54 PMdmitriy.novozhilov
05/01/2024, 2:56 PMmain
visible in `test`" case)Zac Sweers
05/01/2024, 3:30 PMsemoro
05/06/2024, 10:16 PMERROR_SUPPRESSION
is a warning and we aren’t yet planning to elevate it to an error. The intention here is to prevent error suppression from further spreading.
We will indeed consider the use-cases before completely prohibiting it.
And for the use-case - I completely understand it, but the problem is that we aren’t ready to guarantee (nor able to reasonable implement) anything about how the compiler behave in the case of error suppression. The goal here is to warn about entering the dangerous land.Zac Sweers
05/06/2024, 10:17 PMallWarningsAsError
. I'd even settle for just a loud println, but we consider regressions to -Werror as build breaking since we rely on the ability to use that, and for things that trigger it to have viable alternatives/replacementssemoro
05/06/2024, 10:21 PM-Xdont-warn-on-error-suppression
as it was mentioned before in the thread. It doesn’t break the ability to use allWarningsAsError
Zac Sweers
05/06/2024, 10:22 PM-Xsuppress-werror
? 😅Zac Sweers
05/06/2024, 10:23 PMsemoro
05/06/2024, 10:25 PMZac Sweers
05/06/2024, 10:25 PMsemoro
05/06/2024, 10:26 PMsemoro
05/06/2024, 10:29 PM-Xsuppress-werror
- but it will have different meaning in such case, isn’t it?semoro
05/06/2024, 10:31 PM-Werror
?Zac Sweers
05/07/2024, 6:00 PM