Skip to content

[NICE TO HAVE] Unable to use Bazel Plugin with IDEA Ultimate 2019.3.3 #1693

Description

@kigster
IntelliJ IDEA 2019.3.3  Build #IU-193.6494.35
JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
OS: Mac OS X
Plugin to blame: Bazel version: 9999
Last Action: EditorBackSpace
No SyncPlugin present which provides a default workspace type.

I have tries both official plugin from the marketplace and locally built from commit 06c777fa58b00c49fd887279df382f1c41ad49fc with the following command"

bazel build //ijwb:ijwb_bazel_zip --define=ij_product=intellij-ue-2019.3

I see the following exception in the IJ log:

java.lang.IllegalStateException: No SyncPlugin present which provides a default workspace type.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:508)
	at com.google.idea.blaze.base.sync.projectview.LanguageSupport.getDefaultWorkspaceType(LanguageSupport.java:47)
   ....... etc (many lines removed)

I put together a detailed error report gist — please take a look if you need more information.

Please help. I am stuck! 🥺

Activity

  1. stefanobaghino-da commented on Mar 4, 2020

    @stefanobaghino-da

    I had the same issue when starting from a blank installation where I disabled a lot of bundled plugins. I believe the Bazel plugin relies on some bundled plugin to be there at runtime and worked around it by restoring my 2019.2 config that had the plugins enabled. Hope this may help.

  2. kigster commented on Mar 4, 2020

    @kigster
    Author

    @stefanobaghino-da I agree with you. I wonder what plugin is needed. Ill see if I can try to turn them all.

  3. nollbit commented on Mar 5, 2020

    @nollbit

    I had the same issue, and removing all configuration and restarting with default plugins solved the problem for me as well.

  4. kigster commented on Mar 22, 2020

    @kigster
    Author

    To be clear — here is how I was able to restore this on a Mac:

    1. Remove ~/Library/Preferences/IntelliJIdea2019.3 folder
    2. Start IDEA
    3. Choose 'Reset to Default Plugins'
    4. Start — Import Bazel Project.
  5. rayman1104 commented on Mar 23, 2020

    @rayman1104

    @stefanobaghino-da I agree with you. I wonder what plugin is needed. Ill see if I can try to turn them all.

    You were right, the problem is lack of some plugins.
    Empirically just determined that plugin is JUnit (at least it was a deal breaker for me).

  6. changed the title [-]Unable to use Bazel Plugin with IDEA Ultimate 2019.3.3[/-] [+][NICE TO HAVE] Unable to use Bazel Plugin with IDEA Ultimate 2019.3.3[/+] on Jul 22, 2020
  7. AlexeyGy commented on Mar 19, 2021

    @AlexeyGy
    Collaborator

    Closing this as a stale issue.

  8. stefanobaghino-da commented on Mar 20, 2021

    @stefanobaghino-da

    Closing this as a stale issue.

    I'm not sure this is stale but it may need some rewording.

    Some contributor may be interested in fixing this. Probably just improving the error message to allow people to know how to work around this may help others. 🙂

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