Skip to content

This repository demonstrates the Bazel IntelliJ project view issue.

Notifications You must be signed in to change notification settings

aherrmann/reproduce-intellij-project-view-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduce Bazel IntelliJ Project View Issue

This repository demonstrates the Bazel IntelliJ project view issue.

Steps for reproduction

  • Install the following version of IntelliJ IDEA or similar

    IntelliJ IDEA 2018.2.5 (Community Edition)
    Build #IC-182.4892.20, built on October 16, 2018
    
    JRE: 1.8.0_152-release-1248-b6-amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    
  • Install the following version of the Bazel IntelliJ plugin from ij.bazel.build.

    2018.10.08.0.2
    
  • Download this repository.

  • Import this repository as follows.

    • "Import Bazel Project"
    • "Workspace": Select this repository
    • "Next"
    • "Generate from BUILD file"
    • "BUILD file": Select the BUILD file in this repository
    • "Next"
    • Leave all defaults except modify the "Project View" to enable Scala support.
      directories:
        .
      
      targets:
        //...:all
      
      additional_languages:
        # Uncomment any additional languages you want supported
        # android
        # dart
        # kotlin
        # python
        scala
      
    • "Finish"
  • Unfold the repository folder in the "Project" pane.

  • Unfold the "src" item.

  • Unfold the "main" item.

  • Observe two "scala" entries as shown here:

    one "scala" folder under "src/main", one under "src"

    Expectation: The tree should look like this:

    src
    ├── main
    │   ├── resources
    │   └── scala
    └── test
        └── scala
    
  • Delete the src/main/resources directory.

  • Observe two "scala" entries as shown here:

    two "scala" folders under "src"

    Expectation: The tree should look like this:

    src
    ├── main
    │   └── scala
    └── test
        └── scala
    

About

This repository demonstrates the Bazel IntelliJ project view issue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published