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

Field has no corresponding field in template file abc.ui.xml #395

Open
slavap opened this issue Oct 2, 2019 · 2 comments
Open

Field has no corresponding field in template file abc.ui.xml #395

slavap opened this issue Oct 2, 2019 · 2 comments

Comments

@slavap
Copy link

slavap commented Oct 2, 2019

After updating Eclipse (current version I'm using is 4.12), all @UiField in java files started to be highlighted red, though there are corresponding fields in ui.xml, and project compiles and runs successfully without any errors or warnings.
Sometimes when did some changes and saved java file these red marks disappear and everything works till next project clean.

@protoism
Copy link
Contributor

protoism commented Feb 8, 2023

Hi @slavap,
if you can describe a repeatable sequence of actions (say... create a project, modify UI file, and so on... I may try to have a look at it.

@slavap
Copy link
Author

slavap commented Feb 17, 2023

@protoism Unfortunately, I have no reproducible example of this problem. It looks like this:

image

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
  xmlns:ui="urn:ui:com.google.gwt.uibinder"
  xmlns:g="urn:import:com.google.gwt.user.client.ui"
  xmlns:e="urn:import:com.sksamuel.jqm4gwt.form.elements">

  <ui:import field="com.vx.sw.client.i18n.Labels.i18n"/>
  <ui:import field="com.vx.sw.client.Resources.r"/>
  <ui:import field="com.vx.sw.client.Resx.rx"/>

  <g:FlowPanel>
    <e:JQMNumber ui:field="id" text="{i18n.textCompanyID}" addStyleNames="{r.style.hideInputNumSpinBtns}" />
  </g:FlowPanel>
</ui:UiBinder>

The interesting part is:

  1. If I do a dummy change to ui.xml (for example add a space symbol) and save it - the problem is immediately fixed.
  2. If java file is opened in the editor and I close and reopen Eclipse - again problem solved (but not every time, sometimes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants