Git Product home page Git Product logo

Comments (11)

 avatar commented on June 7, 2024 2

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 TransitionendEventto TransitionendEventparamnodeObjectdetailContainstheanimatednode.Event

from gwt-api-generator.

manolo avatar manolo commented on June 7, 2024 2

Fixed in ecb419c

from gwt-api-generator.

 avatar commented on June 7, 2024 1

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.

tehapo avatar tehapo commented on June 7, 2024

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.

komasoftware avatar komasoftware commented on June 7, 2024

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.

komasoftware avatar komasoftware commented on June 7, 2024

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.

cpboyd avatar cpboyd commented on June 7, 2024

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.

cpboyd avatar cpboyd commented on June 7, 2024

@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)

In helpers.js line 61:

  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.

komasoftware avatar komasoftware commented on June 7, 2024

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.

andrescirulo avatar andrescirulo commented on June 7, 2024

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.

komasoftware avatar komasoftware commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.