Closed evanvelikanov closed 3 years ago
I was able to solve it with nothing extra. I don't know which part of the configuration was wrong, but I got it working. Those interested can check the repositories :
https://github.com/xyz-jphil/xyz-jphil-google_appscript-logger https://github.com/xyz-jphil/xyz-jphil-google_appscript-spreadsheet
Oh, good. Sorry I didn't help more. Duplicate identifier can occur when root package items clash with global def, but I don't know if it was this here. I am glad it's fixed anyway :)
Oh, good. Sorry I didn't help more. Duplicate identifier can occur when root package items clash with global def, but I don't know if it was this here. I am glad it's fixed anyway :)
Yes I am just committing the code, so that others with similar issues can be helped.
I also don't know why the identifier was conflicting, I did several things and it finally worked. I think a mvn clean jsweet:clean
was a part of what worked.
Thank you for your help, what you guided in the previous issue was sufficient to solve this problem also.
Yes, always clean before installing / deploying, to avoid fossilized ts/js files :)
Thanks for your reply, see you later.
I am creating Google spreadsheet macros using jsweet, that also have a pure java implementation so that I can test it locally before uploading on google script. Obviously it requires interacting with Google spreadsheet api, Logger etc. Taking Logger and Range as example, how should i define this candy for this to work both in the js and java world?
For it to work with JS side, defined as
For Java defined as
Similarly defined Range as
Right now I am trying to have 2 maven projects to achieve it, but I have messed up some where that I am getting the error. If I define this in a com package I get the following error
If I define this in a def package I get the following error
While I am trying to fix it at my end, I am posting this question to know the standard way of doing this. Thank You.