-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error parsing .gradle file #13
Comments
Hi Asaf!
Thanks for the report!
What would the expected result be? 😊
Best regards,
Karl Lindmark
…On Wed, Apr 18, 2018, 08:47 Asaf Petesh ***@***.***> wrote:
Hi,
Parsing a .build file containing the following text:
def coverageTaskAndroidJob = task("coverageTaskAndroidJob",
dependsOn: ':android-job:createCovAndroidTestCoverageReport') {
def dep1 = tasks.getByPath(':android-job:clean')
def target = tasks.getByPath(':android-job:createCovAndroidTestCoverageReport')
target.dependsOn dep1
group = "Coverage"
description 'Runs coverage for android-job'
}
def coverageTaskVolley = task("coverageTaskVolley",
dependsOn: ':volley:createCovCoverageReport') {
def dep1 = tasks.getByPath(':volley:clean')
def dep2 = tasks.getByPath(':volley:testCovUnitTest')
def target = tasks.getByPath(':volley:createCovCoverageReport')
target.dependsOn dep1
target.dependsOn dep2
group = "Coverage"
description 'Runs coverage for volley'
}
causes the following error:
TypeError: Cannot assign to read only property '0' of object '[object String]'
at assignKey (<project>/node_modules/deep-assign/index.js:28:13)
at assign (<project>/node_modules/deep-assign/index.js:43:7)
at assignKey (<project>/node_modules/deep-assign/index.js:30:15)
at assign (<project>/node_modules/deep-assign/index.js:43:7)
at deepAssign (<project>/node_modules/deep-assign/index.js:64:5)
at deepParse (<project>/node_modules/gradle-to-js/lib/parser.js:160:29)
at Readable.<anonymous> (<project>/node_modules/gradle-to-js/lib/parser.js:623:13)
at Readable.emit (events.js:160:13)
at Readable.read (_stream_readable.js:482:10)
at flow (_stream_readable.js:853:34)
at emitReadable_ (_stream_readable.js:521:3)
at process._tickCallback (internal/process/next_tick.js:152:19)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AA7w0PwnZZScCItaFafEBwSy_tUIE-Jkks5tpuFrgaJpZM4TZgdV>
.
|
Hi Karl, The expected result should be:
Thanks for the quick reply! |
Hey guys, I went through the same issue today. I can privately send you the culprit file if you need. I'm also going to investigate on my side, I'll keep you updated. |
Hey Matthias!
If you could shoot me an email with the culprit, that would be great. I
need to get own my computer up to speed since I was using my previous
employer's up until April. 😀
…On Wed, Apr 18, 2018, 21:15 Matthias Thomas-Lamotte < ***@***.***> wrote:
Hey guys,
I went through the same issue today. I can privately send you the culprit
file if you need. I'm also going to investigate on my side, I'll keep you
updated.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7w0F5GBPTy1m8B_tlGygmJU274DQLyks5tp5C7gaJpZM4TZgdV>
.
|
@apetesh: Could you provide me with a snippet with the expected result? I'm setting up a test case here locally and would like your input on it. :-) |
Hi @karllindmark ! Here's the file! Thanks, |
Thanks Matthias!
I'll add looking into alternative libraries to my TODO before pushing a new
version. As of last night I'm starting to understand where this problem is
occurring in terms of the parser code too, so hopefully I'll have a fix out
real soon.
…On Mon, Apr 23, 2018, 17:15 Matthias Thomas-Lamotte < ***@***.***> wrote:
Hi @karllindmark <https://github.com/karllindmark> ! Here's the file!
I didn't really have time to look into it, but deep-assign is deprecated
and seems to be the issue so it might be a good idea to switch to
merge-options or some other module.
Thanks,
mat.zip
<https://github.com/ninetwozero/gradle-to-js/files/1938865/mat.zip>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7w0KqTKD4Z-w1Q2w8vYJz9clIX3RIBks5trfAngaJpZM4TZgdV>
.
|
Not really sure what to call them though. Closes #13
Hey guys! So, I have a possible solution for this issue in #14 - would you care to take a look? @apetesh @matthiasthomas 🤝 |
I tested for this issue |
Not really sure what to call them though. Closes #13
Hi,
Parsing a .build file containing the following text:
causes the following error:
The text was updated successfully, but these errors were encountered: