Lombok.NET: IntelliSense does not recognize generated constructors

Generated code with the NoArgsConstructor, AllArgsConstructor and RequiredArgsConstructor attributes does not get picked up by IntelliSense. The constructors can be used and the build passes without issues, however it would be nice if IntelliSense also recognized a presence of the generated constructors. This issue is observed in Visual Studio 2022 as well as Rider 2021.3.2.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

I think I am getting closer to diagnosing this issue. My current implementation of the Source Generators throws an exception when code cannot be generated (e.g. when a partial modifier is missing). This seems to cause issues in the IDE (see https://youtrack.jetbrains.com/issue/RIDER-74077). I will remove the thrown exceptions and replace them with Roslyn Analyzers. Hopefully this will solve the problem.

Interesting. The past few days it has been on and off for me as well. I will write up a bug ticket for ReSharper this week.