Comments (11)
It's a Polymer comment change in paper-button.html (line 174) that causes this issue:
before:
@param {{node: Object}} detail Contains the animated node.
now:
Event param: {{node: Object}} detail Contains the animated node.
It seems that the missing @param
annotation causes the extension of the TransitionendEvent
to TransitionendEventparamnodeObjectdetailContainstheanimatednode.Event
from gwt-api-generator.
Fixed in ecb419c
from gwt-api-generator.
I am not committer to this project.
But if you are going for the latest polymer version then download the components manually with bower, fix this line and generate the wrapper classes.
$ bower install --save PolymerElements/paper-elements
$ gwt-api-generator
from gwt-api-generator.
I can verify the same compilation errors. I did the following steps in an empty test directory.
bower install paper-elements
gwt-api-generator --pom
mvn package
Could you @manolo take a look at this?
from gwt-api-generator.
Yes, the basic sample from the README does not work anymore :
$ gwt-api-generator --package=PolymerElements/paper-elements --pom
$ mvn package
returns the same errors. I'd love to help to get this fixed if @manolo could provide some pointers ?
from gwt-api-generator.
Can we be a bit more forgiving for this kind of errors in the comments when generating ?
@muelbr can you past a link to the relevant part of the generator code ?
from gwt-api-generator.
As a note, the Polymer team changed from @param
to Event param
due to compiler issues:
PolymerElements/paper-button@2f44db5
Basically, I think the "name" function (at least for events) needs to take newlines into account.
It doesn't make sense that an event name would span multiple lines.
from gwt-api-generator.
@komasoftware Using a split on newlines and taking the first line seems to fix the issue.
(Granted, the event's generated NAME string still has the long comment nonsense with only this change in camelCase
, so probably making the same change with other functions)
camelCase: function(s) {
return (s.split('\n')[0] || '').replace(/^Polymer\./, '').replace(/[^\-\w\.]/g,'').replace(/(\b|-|\.)\w/g, function (m) {
return m.toUpperCase().replace(/[-\.]/g, '');
});
},
from gwt-api-generator.
Back here. The change did not really solve the issue.
Wondering if @manolo still plans to support this library. Otherwise I need to look into another solution and rewrite my code. I would really like to know !
from gwt-api-generator.
I used an awful solution.
The solution of helpers.js line 61 dind't work for me, so i changed it to
camelCase: function(s) {
if (s.toLowerCase().startsWith('transitionend')){
console.log('name--:' + s);
return 'Transitionend';
}
return (s || '').replace(/^Polymer\./, '').replace(/[^\-\w\.]/g,'').replace(/(\b|-|\.)\w/g, function (m) {
return m.toUpperCase().replace(/[-\.]/g, '');
});
}
It's horrible, but it compiles. Then i had to use the fix mentioned here.
The problem I have now is that in Chrome the PaperInput does not work. It is visible, but i can't get the focus.
Anyone with the same problem? Could it have to do with the change i made in the function camelCase?
For what i could see, the compilation now is showing a lot of errors/warnings (?) like this one but with many components
Behavior Polymer.Templatizer not found when mixing properties into vaadin-infinite-scroller!
Any idea why this could be? Could this be the problem?
from gwt-api-generator.
How can I "npm install -g vaadin/gwt-api-generator" a specific commit ecb419c ?
Or will a new release soon follow ?
Thx for all the work !
from gwt-api-generator.
Related Issues (20)
- Ambiguous 'setSelected' on PaperMenu / PaperTabs / PaperListbox / PaperRadioGroup HOT 1
- Duplicate method ensureRipple in PaperIconButtonLight(Element) HOT 3
- Dependency failure hydrolysis HOT 1
- Widget.template should import Polymer HOT 2
- Polymer#saveProperties ruins Vaadin's connectorId handling HOT 2
- Polymer clears the value of window.performance HOT 3
- Polymer.dom(...).removeChild(...) does not exist HOT 1
- GWTPolymer Elements 1.7.0 : Polymer.setGwtBowerLocation(""); missing HOT 2
- pom.template's ant rules doesn't take variable groupId into account HOT 1
- Polymer is not initialized with polymer-bundler imports
- Volunteer collaborators are needed HOT 5
- Depend directly on Elemental2 HOT 10
- Add model.item to Event HOT 1
- Task to create and build a starter project HOT 4
- Event parsing failure
- Generating GWT wrapper for a local Polymer element
- wrong SRC path in generated Java files
- Polymer (2.0) + GWT => Stock of the situation ? Coming GWT 3 soon or not ? What is the right way for a LTS application ? HOT 10
- Can't generate proper function with return type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-api-generator.