Skip to content

"class" snippet is not available #192

Closed

Description

@kawnnor

Spring Boot Tools Extension 1.3.0 caused the class / interface snippets and package / public keywords of "Language Support for Java by Red Hat" extension to be unusable. Rolled back to 1.2.0, everything works fine.

Activity

  1. added this to the 4.1.2.RELEASE milestone on Jan 30, 2019
  2. kdvolder commented on Jan 30, 2019

    @kdvolder
    Member

    Can you please explain what exactly is not working for you? I simply can't work it out from your description.

    Here's what I tried.

    • I started with a fresh vscode without any extensions.
    • Installed just the "Language Support for Java(TM) by Red Hat" extension.
    • I opened a random simple Java project I had sitting around
    • I created a new empty Java file called "NewClass.java" in my source folder
    • I press CTRL-space. I get nothing, no content assist no snippets.

    So how do I get to these snippets you are referring to exactly? How are they supposed to work? And how does the behavior you expected as 'correct' differ from the behavior when Spring Boot Extensions are installed?

    We'd like to get to the bottom of this. But I'm afraid that unless you explain precisely what you think is broken then this will be rather impossible.

  3. spring-projects-issues commented on Jan 30, 2019

    @spring-projects-issues

    (comment in Pivotal Tracker added by Kris De Volder:)

    Dropping this item to the back of the backlog since I can't reproduce it.

  4. kdvolder commented on Jan 30, 2019

    @kdvolder
    Member

    Gave it another try. Looks like I made a mistake the first time around. My new file wasn't actually a '.java' file. I forgot to add the '.java' extension.

    So the steps from above seem to work to get the interface and class snippets to show up (i.e. empty .java file, press CTRL-space).

    I then installed Spring boot tools 1.3.0 and tried the same steps again. It still works for me.

    So... I think I did figure out which snippets we are talking about and how to invoke them but they seem to work for me just fine, with and without Spring Boot Tools 1.3.0 installed.

    Cllosing this ticket as 'cannot reproduce'.

    If you can add precise steps, we can re-open the ticket and I'll give it another try. But as far as I can tell right now it is working fine.

    That probably means we are missing some details on what are the exact steps, or circumstances that cause this to break. Or perhaps you made silly mistake (much like I did when I tried first time to reproduce it :-)

  5. martinlippert commented on Feb 1, 2019

    @martinlippert
    Member

    Maybe there is a relationship between this and #193 ?

  6. kdvolder commented on Feb 1, 2019

    @kdvolder
    Member

    I think @martinlippert is onto something. Not totally sure, but in the video it looks like you are expecting completions to show 'as you type'. When I was trying it, I was explicitly pressing CTRL-space to trigger them.

    @kawnnor can you try installing spring-boot-tools 1.4 snapshot build. You can get it here: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html

  7. kawnnor commented on Feb 2, 2019

    @kawnnor
    Author

    @kdvolder spring-boot-tools 1.4.0-201902011927 works fine. 👍

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions