redhat-developer / redhat-developer/vscode-java

Imports break on git checkout

Open
#1,280 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

ls-out-of-sync
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Issue Type: Bug

  1. Have a java codebase that is heavy on git branches and 3rd party libraries. (The repo in question is at github.com/frc999/frc-2020)
  2. Switch branches (this always happens if you switch branches in another window: sometimes if you switch within VS code)
  3. A random assortments of imports will "not be found", causing errors to show up wherever they are used.
  4. To clear the issue, one must run "clean the java language server workspace"

As the git expert on staff, this is annoying, to the point where I am considering giving the key command a keybinding.

Extension version: 0.55.1
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.88GB (2.62GB free)
Process Argv
Screen Reader no
VM 0%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the listed frc-2020 repository, branch-switching steps, and the Java language server workspace cleanup command. Trace the VS Code extension's handling of branch changes and import resolution; done means imports remain found after switching branches without manually cleaning the workspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.