Skip to content

Import Problem : ..cannot be resolved as a type #3831

@baptleduc

Description

@baptleduc

Hi, I'm new to Java and am using Visual Studio Code (VSCode) for my development. I’ve encountered a problem when creating a package named "robot" located in "src/robot". The Java linter indicates that a class I used from the default package (located in "src") cannot be resolved as a type. I use a makefile to compile my code and I don't use maven or anything else.

Here is the error I have :
image

Here is my project structure :
image

Environment
  • Operating System: WSL Ubuntu 22.04.4 LTS
  • JDK version: 23.0.1
  • Visual Studio Code version: 1.94.2
  • Java extension version: 0.29.0

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

..cannot be resolved as a type

Expected Result

.

Additional Informations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions