Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Companion not detected unless connecting HtmlImport is the first in the list #1712

Closed
anssit opened this issue Apr 17, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@anssit
Copy link
Contributor

anssit commented Apr 17, 2018

Steps to reproduce

  1. Create a new Flow template, foo-bar.html with a companion class
  2. Verify that FooBar.java is connected to the template
  3. Close the template
  4. Open FooBar.java and add a HtmlImport before the one pointing to foo-bar.html, for example
import com.vaadin.flow.templatemodel.TemplateModel;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.HtmlImport;
import com.vaadin.flow.component.polymertemplate.PolymerTemplate;

@Tag("foo-bar")
@HtmlImport("styles/shared-styles.html")
@HtmlImport("frontend://src/foo-bar.html")
public class FooBar extends PolymerTemplate<FooBar.FooBarModel> {

    public interface FooBarModel extends TemplateModel {

    }
}
  1. Open foo-bar.html

Actual behavior

Companion file is not connected.

Expected behavior

Companion file is connected.

IDE, Designer and OS version

Any, Designer 3.0.0.beta7, Any

@anssit anssit added the bug label Apr 17, 2018
@anssit anssit changed the title Java Companion not detected if unless connecting HtmlImport is the first in the list Java Companion not detected unless connecting HtmlImport is the first in the list Apr 17, 2018
@szolo szolo self-assigned this Jun 1, 2018
@qtdzz qtdzz self-assigned this Jun 1, 2018
@anssit anssit assigned anssit and unassigned qtdzz Jun 4, 2018
@ripla ripla removed the backlog label Jun 5, 2018
@ripla ripla added this to the 3.0.3 milestone Jun 7, 2018
@ripla ripla closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants