Skip to content

Missing symbol for databind in 2.18.1 and 2.18.2, 2.18.0 working as expected in IntelliJ #4899

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

Closed
1 task done
Lorondos opened this issue Jan 12, 2025 · 4 comments
Closed
1 task done
Labels
to-evaluate Issue that has been received but not yet evaluated

Comments

@Lorondos
Copy link

Lorondos commented Jan 12, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

I am trying to update my POM to the latest Jackson Databind version, currently on 2.18.0 but unfortunately, 2.18.1 and 2.18.2 seem to not allow referencing to databind in IntelliJ.

I found this issue which sounds similar, perhaps this fix introduced a regression?

#4727

2.18.1 and 2.18.2:
image
image

2.18.0:
image
image

Version Information

2.18.1 and 2.18.2 are the affected versions, 2.18.0 is working as expected.

Reproduction

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.18.1</version>
        </dependency>
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

Expected behavior

IntelliJ should be able to resolve the symbol and not complain it cannot find it.

Additional context

Happy to provide further details to a degree, this is an internal company project.

@Lorondos Lorondos added the to-evaluate Issue that has been received but not yet evaluated label Jan 12, 2025
@Lorondos Lorondos changed the title Missing symbol for databind in 2.18.1 and 2.18.2, 2.18.0 working as expected Missing symbol for databind in 2.18.1 and 2.18.2, 2.18.0 working as expected in IntelliJ Jan 12, 2025
@pjfanning
Copy link
Member

Have you raised an intellij issue? Noone else is complaining about jackson-databind.

I use intellij and see no issues like what you describe.

@yihtserns
Copy link
Contributor

That looks like a symptom of your IDE didn't manage to download the dependency, for whatever reason.

Have you confirmed that it's really downloaded, by looking at IDE > Project window > External Libraries?

@pjfanning
Copy link
Member

or run 'Rebuild' on the project

@Lorondos
Copy link
Author

Lorondos commented Jan 12, 2025

Thanks for the rapid input, gave me some ideas and manage to fix it, IntelliJ decided to exclude the classes in the project structure, invalidating the cache in IntelliJ and restarting has fixed it, not excluding the classes now for 2.18.2.

Edit: Got led astray a bit as it did not complain about the changes I made for Maven model v4 oddly enough, but it also excluded those classes when I updated it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-evaluate Issue that has been received but not yet evaluated
Projects
None yet
Development

No branches or pull requests

3 participants