The Import Cannot Be Resolved, IntelliJ and VS Code
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:1
- Comments:17 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
This is still an issue.
There very much needs to be better support of Maven projects.