-
Notifications
You must be signed in to change notification settings - Fork 160
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
jquery and jqueryui #76
Comments
Hello ssatguru, I will take a look at it. Do you use the Eclipse plugin or the maven plugin? Thanks for your help |
I finally fixed this issue, see PR #77 I installed my branch of jsweet locally and the following example runs without any problem :) Now we juste have to wait for @renaudpawlak to integrate the PR and deploy the Jar on maven ;) Regards. |
Hi Igrignon, Thanks for fixing this. I will check it out when it is available.
As far as Eclipse or Maven Plugin , I normally use Maven Plugin. Thanks |
Hi! I have merged the PR. Thanks a lot. Tell us if it works now. |
Is the fix available in the maven repo? |
Hi Satguru, I think that we have not been clear enough about the issue. In theory, the candies are fine, so the fix was only in the transpiler (version 1.1.0-SNAPSHOT), not in the candies. JSweet defines the notion of a mixin. Your case is typically a mixin. The class There was a bug in mixins in the case of JQuery plugins. In theory, it was fixed by Louis. That said, I am in vacation and did not have the occasion to actually test it. If you don't really have time to test it, just proceed with your workaround, and I will test it ASAP. |
1.1.0-SNAPSHOT did not work for me. |
Thanks @renaudpawlak for the explanation.
Please tell us if the problem persists. It could reveal something wrong. |
Ok, I see what's happening. |
I am still working on some side effects of this issue, but it actually should be already working for your case. Since you are not using the Eclipse plugin (well, it is not that stable yet ;)), it means that you have to manually tell Eclipse where to find the processed mixins so that it can compile your project right. It is fairly easy to do.
This should solve your compilation problem in Eclipse (and it would be similar for other IDEs). |
To configure the build path: right-click on the project > Build path > Configure build path... > Libraries (tab) > Add class folder (button) |
Yes, that did the trick :) |
That would be a good trick indeed. Tell us if you find something. For information, I enhanced the documentation thanks to your feedback: https://github.com/cincheo/jsweet/blob/master/doc/jsweet-language-specifications.md#bridging-to-external-javascript-elements. Thanks :D |
That's great. Documentation always welcome. |
Trying to use the jquery and jqueryui candy
I haven;t been able to get it working.
Something like
$("#myMenu).menu();
does not work
Might have something to do with the way JQuery class has been defined
In JQuery candy, class "JQuery" has been defined as
def.jquery.JQuery
in JQueryUi candy it has been defined as
def,jqueryui,JQuery
The text was updated successfully, but these errors were encountered: