question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Import Cannot Be Resolved, IntelliJ and VS Code

See original GitHub issue

I’m getting an issue The import com.[company name].taskservice cannot be resolved on a project. I was getting this issue first and then I ran a mvn idea:idea and it resolved the dependencies. IntelliJ is showing up as resolved but on the VS Code plugin, the imports still cannot be resolved.

It looks like the mvn idea:idea generated an additional folder named target at the same directory level as the pom.xml and all the additional dependencies get stored there.

Is this part of the IntelliJ import issue #191 ?

Environment
  • Operating System: Mac OS X 10.12.6
  • JDK version: 1.8.0_131
  • Visual Studio Code version: 1.18.0
  • Java extension version: 0.14.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

32reactions
ImATechnophilecommented, Oct 1, 2019

Just clean the workspace directory.

You can clean the workspace directory in the following way:

Open the command palette (F1) select Java: Clean the Java language server workspace click Restart and delete

3reactions
zkxjzmswkwlcommented, Jan 5, 2022

This is still an issue.

There very much needs to be better support of Maven projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellij IDEA cannot resolve any import statement
Hi there,. I am struggling recently with very strange issue. Suddenly, my intellij IDEA stopped resolving all java import statements.
Read more >
Intellij Cannot resolve symbol on import - java - Stack Overflow
file -> Project Structure -> Modules , find the module with problems, click it and choose the Dependencies tab in the right side....
Read more >
java import cannot be resolved vscode
java the import cannot be resolved intellij​​ Open your java project with IntelliJ. Click File -> Project Structure -> Modules -> Dependencies; Click...
Read more >
Spring Boot support in Visual Studio Code
To install, launch VS Code and from the Extensions view (Ctrl+Shift+X), search for vscode-spring-initializr . Once you have the extension installed, open the ......
Read more >
Java Scanner import - TheServerSide.com
If you get the “Scanner cannot be resolved to a type” error message, just add the Java Scanner import statement to your code,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found