Comments (51)
Any thoughts on when this might become available?
from lombok-intellij-plugin.
Version of lombok plugin (0.8.8) still doesn't support configuration files, but already provides support for editing and auto completion of it.
Full support of configuration files is on the TODO list.
from lombok-intellij-plugin.
So I am a little confused by your description. If the plugin does not support loading and recognizing the config file, why does it support auto completing values in the file? Or did i misunderstand u?
from lombok-intellij-plugin.
At any rate thanks for working on this request. This is pretty important and without this we would be totally unable to use Lombok.
from lombok-intellij-plugin.
You can now edit lombok.config files and gets autocomplete etc. But plugin will still not use it for providing lombok-support in Intellij. It only the initial step to full support.
from lombok-intellij-plugin.
Cool. Thanks for the update. Look forward to full support.
from lombok-intellij-plugin.
I would love to see that as well:)
from lombok-intellij-plugin.
Any updates on this issue?
from lombok-intellij-plugin.
Just checking. Any progress on this? This really is blocker for us to use lombok.
from lombok-intellij-plugin.
Which configuration parameters you want to be supported at first?
from lombok-intellij-plugin.
Most importantly, I'm stuck on configuring the logger field name. That would be good for a start as well as the ability to stop bubbling.
from lombok-intellij-plugin.
Ok, support for lombok.log.fieldName and lombok.log.fieldIsStatic is already done, I'll add stop.bubbling next.
from lombok-intellij-plugin.
The configuration allowing fluid setters would be nice
On Dec 29, 2014 8:51 AM, "Michail Plushnikov" [email protected]
wrote:
Ok, support for lombok.log.fieldName and lombok.log.fieldIsStatic is
already done, I'll add stop.bubbling next.—
Reply to this email directly or view it on GitHub
#53 (comment)
.
from lombok-intellij-plugin.
Perfect. Thank you.
from lombok-intellij-plugin.
Accessor prefix would be a nice-to-have.
from lombok-intellij-plugin.
I need support for lombok.getter.noIsPrefix
Could you add support for this parameters, too?
from lombok-intellij-plugin.
Here is the lombok.config I am dieing to use!! Please add the missing support.
clear lombok.accessors.prefix
lombok.accessors.chain = true
lombok.accessors.prefix += m
lombok.anyConstructor.suppressConstructorProperties = true
config.stopBubbling = true
from lombok-intellij-plugin.
Thanks for the good work. Here is my wishlist :-)
lombok.accessors.chain = true
lombok.accessors.fluent = true
from lombok-intellij-plugin.
At the moment following lombok-configuration-keys were already added to plugin:
config.stopBubbling
lombok.log.fieldName
lombok.log.fieldIsStatic
lombok.equalsAndHashCode.doNotUseGetters
lombok.anyConstructor.suppressConstructorProperties
lombok.toString.doNotUseGetters
lombok.toString.includeFieldNames
lombok.accessors.chain
lombok.accessors.fluent
lombok.getter.noIsPrefix
from lombok-intellij-plugin.
@mplushnikov great work. much appreciated. do u have a sense of when the next release might be cut?
from lombok-intellij-plugin.
Version 0.9.0 of plugin is available now. It contains some work for this issue, feel free to test and comment it.
from lombok-intellij-plugin.
Does not seem to work for me.
I have IDEA 14.0.3 enterprise and lombok plugin 0.9.0 installed. My project is a multi-module maven project that consists of close to 20 sub-modules. In the parent directory where the root pom is, I have added:
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.2</version>
<scope>provided</scope>
</dependency>
The plugin is enabled for the parent and all other modules. Annotation processing is also enabled for all modules. My compiler is set to use javac and I am running JDK 1.7.
Also, in the very root directory where the parent pom is, I have a lombk.config file with the following:
config.stopBubbling = true
lombok.log.fieldIsStatic = false
lombok.log.fieldName = 'logger'
Pretty simple. I restarted IDEA once just to be sure everything is activated. and rebuilt the project again, to be extra sure.
I then annotated a class with @slf4j and started getting compiler errors, because no "logger" field was generated for me. I do see "log" but there is no logger per my configuration.
What's missing?
from lombok-intellij-plugin.
I am also not clear on when the changes are activated. If change something in lombok.config, do I have to restart IDEA? Do I have to rebuild the project?
from lombok-intellij-plugin.
It would also be good to be able to review which settings are recognized by the plugin. I see that I can modify fonts and colors for the config file but I have no idea which of the settings are loaded.
from lombok-intellij-plugin.
enabled annotation processing?
from lombok-intellij-plugin.
Yes. See the screenshot please.
from lombok-intellij-plugin.
Do I have to specify the lombok jar as an explicit processor? IDE is set to pick up processors from the classpath.
from lombok-intellij-plugin.
You have to put your "lombok.config" files into project src directory at the moment. For example in maven project it could be under "src/main/java".
from lombok-intellij-plugin.
thanks for the tip. That didn't seem to work either. Moved the config file to src/main/java for a given module, made sure javac was the compiler, closed and reopened idea and rebuilt the project. same result.
from lombok-intellij-plugin.
any other suggestions or thoughts as to why this isn't working? do you have a sample project by any chance I could try?
from lombok-intellij-plugin.
It doesn't work for me as well.
IntelliJ IDEA: 14.0.3 Enterprise
Lombok plugin: 0.9.1
I'm using lombok.accessors.fluent
I've tried to put lombok.config
into src/main/java
and src/main/lombok
, no effect.
Thank you.
from lombok-intellij-plugin.
It would be great if the plugin could pick the config file up from the project directory. I have a multi-project gradle build and if the lombok.config file is in src/main/java then it doesn't build. We have to have two copies of the config file, one in src/main/java for the plugin and one in project root dir for gradle.
from lombok-intellij-plugin.
+1 to @addedsparkle
from lombok-intellij-plugin.
+1 to @addedsparkle and @dmiescgm (running IDEA 14.1.1 and lombok plugin 0.9.2) I have a few modules and have to copy lombok.config to src/main/java folders of each module. This is biggest issue with pluging for me at the moment, hope you'll put it on top of your todo list.
Btw, I checked the pluging about 6 months ago and it was totally unusable for me at that moment. With the latest version of plugin I can at last start using lombok in my projects. Thanks for your work!
from lombok-intellij-plugin.
Is there any ETA on support for this, especially accessor prefixes? Implementation of this for config files would literally make my teams life so much easier
from lombok-intellij-plugin.
Support for accessor prefix configuration would be very helpful.
from lombok-intellij-plugin.
+1, I am writing field names with a different convention in files enhanced by lombok versus other files, which makes my eye twitch. Really looking forward to lombok.accessors.*
support in IDEA.
from lombok-intellij-plugin.
Ah, works for me now that I saw that lombok.config has to be in src/main/java. I too wish that the plugin could pick up the settings from the base project directory like lombok does. (Right now we have to have 44 copies of our lombok.config just to rename the logging package....
from lombok-intellij-plugin.
Interesting.. According to Lombok source code it should bubble up the lookup until it gets stop bubbling configuration:
That seems to be starting off a file that Lombok is parsing and all the way up. Can it be that the plugin is triggering Lombok slightly differently compared to Eclipse/Gradle ?
Would also love the ability to properly configure Lombok in a multi-module project.
from lombok-intellij-plugin.
According to the method getStringLombokConfigProperty
in:
The plugin seems to have its own implementation to read the global configuration.
It does not do exactly like Lombok: it starts from the folder containing the file that it is parsing but does not go all the way up, instead it stops at the default package. That is why it works when the configuration file is in src/main/java.
from lombok-intellij-plugin.
@baracil Exactly, at the moment you have to place lombok.config file in the src/main/java or src/main/resource directory (or other source root directory).
I will check the possibility of reading of config file from the module/project directory. That would help to simplify multi-project configuration.
from lombok-intellij-plugin.
With Android Studio 1.5 and Plugin v 0.9.6.14, IDE can't find lombok.config
. I've put it under /src/main/java
.
from lombok-intellij-plugin.
Of course it's the same with IntelliJ 15. Neither src/main/java
nor src/main/resource
works for me.
A nice side effect is, if i put the @Accessors
annotation above my class, the class structure changes to the configured behavior. Unfortunately it has no effect on the generated Class files.
from lombok-intellij-plugin.
This is interesting. Im using 15.0.2 (and was using both EAP and prod versions of 15) and everything works fine for me. Naturally I had to ensure that In Preferences -> Other Settings -> Lombok plugin, I have "Enable Lombok plugin for this project" enabled.
I have Lombok Plugin 0.9.6.14 installed as well.
You do have Lombok as dependency in the project (in pom.xml or build.gradle), right?
from lombok-intellij-plugin.
Of course, otherwise it won't compile
from lombok-intellij-plugin.
I have customised logger variable name that is being found by the plugin. Could it be that this is an issue of some configurations not being applied properly rather than lombok.config not being found?
from lombok-intellij-plugin.
@alexejk i am trying to use
lombok.anyConstructor.suppressConstructorProperties = true
which does not work
from lombok-intellij-plugin.
I have set the Maven dependeny for Lombok in my pom.xml and the plugin is enabled for the project.
(Lombok Plugin 0.9.6.14 and IntelliJ 15.0.2 )
I my src/main/resource/lombok.config
i have set the property lombok.getter.noIsPrefix = true
. But i was mistaking with the @Accessors
annotation. I rebuilded my project and lombok created all Class Files with no Is-Prefix.
But the Class Structure didn't changed and stayed with the Is-Prefix. And IntelliJ can't make the project cause it didn't find the symbol for the getter without IS-Prefix. After that I applied the @Accessors
annotation to my class and everything worked as intended (Class Structur had Get-Prefix too).
But shouldn't it just work without the extra annotation?
And you're right, this is more like an issue for this configuration property which is not being applied properly.
from lombok-intellij-plugin.
From what I know, @Accessors
is the experimental feature in Lombok, and the IntelliJ plugin has to support each and every feature to make sure IDEA understands it.
I would suggest that you create a separate issue for this specific functionality.
from lombok-intellij-plugin.
lombok.accessors.chain = true
doesn't work if you don't have an @Accessors
annotation on the bean. But according to the Lombok's doc:
lombok.accessors.chain = [true | false](default: false)
If set to true, any class that either doesn't have an @accessors annotation, or it does, but that annotation does not have an explicit value for the chain parameter, will act as if @accessors(chain = true) is present.
Tested with version 0.10.16 and Intellij IDEA 2016.1.1
from lombok-intellij-plugin.
New version (0.11) of plugin was released today. It contains many improvements for configuration system of lombok. Please verify it and open new issues for new problems:)
from lombok-intellij-plugin.
Related Issues (20)
- Lombok plugin for Android Studio
- Support for experimental @WithBy?
- build tag releasebuild_0.32-2017.1 fail HOT 1
- Support for idea 2022.3 HOT 1
- @Builder.Default-annotated fields excluded as parameters for @RequiredArgsConstructor-generated constructors HOT 1
- @lombok.experimental.Helper annotation is not supported
- SneakyThrows permits missing 'catch' blocks in checked-exception-throwing try-with-resource blocks within lambdas HOT 1
- Lombok plugin 0.34.1 breaks code completion in Android Studio Electric Eel | 2022.1.1 HOT 4
- Android StudioAndroid Studio Electric Eel | 2022.1.1 Support HOT 3
- The static method generate using @Value(staticConstructor = "of") isn't correctly resolved by IntelliJ HOT 1
- inherit annotations HOT 1
- Intellij documentation tab fails to load info from constructor created with AllArgsConstructor
- Request: Mark fields for which getters and/or setters are overrides
- Incompatible: requires IDE build 193.* or earlier HOT 1
- android studio Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 - manual plugin
- Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x77d05032) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x77d05032 HOT 1
- [FEATURE] Add an option to auto import val in IntelliJ
- Like Kotlin, support method extension for intelligent completion and automatic import.
- How to Run?
- Lombok plugin incompatible with version 241.18034
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok-intellij-plugin.