Skip to content

Imports break on git checkout #1280

Closed
Closed

Description

@calumapplepie

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%

Activity

  1. akaroml commented on Feb 18, 2020

    @akaroml
    Contributor

    @testforstephen may have some insights regarding this. AFAIK, switching branches introduces lots of file change events and the LS might have problems with handling those events.

  2. robstryker commented on Nov 4, 2026

    @robstryker
    Contributor

    switching branches messes up my eclipse and my vscode ide, as well as others. I don't think there's a reasonable fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions