Merge lp:~daniellim0611/unity-js-scopes/unity-js-scopes-bug1523595 into lp:unity-js-scopes
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Alexandre Abreu on 2016-01-14 | ||||
| Approved revision: | 126 | ||||
| Merged at revision: | 123 | ||||
| Proposed branch: | lp:~daniellim0611/unity-js-scopes/unity-js-scopes-bug1523595 | ||||
| Merge into: | lp:unity-js-scopes | ||||
| Diff against target: |
55 lines (+11/-2) 3 files modified
examples/simple/simple.js (+1/-1) src/bindings/index.js (+8/-0) src/bindings/src/addon.cc (+2/-1) |
||||
| To merge this branch: | bzr merge lp:~daniellim0611/unity-js-scopes/unity-js-scopes-bug1523595 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alexandre Abreu (community) | 2016-01-02 | Approve on 2016-01-14 | |
|
Review via email:
|
|||
| Daniel Lim (daniellim0611) wrote : | # |
Sorry I don't know what tabs/space are you referring to.
| Daniel Lim (daniellim0611) wrote : | # |
And where can I get the integral values?
| Alexandre Abreu (abreu-alexandre) wrote : | # |
> Sorry I don't know what tabs/space are you referring to.
If you look at the diff below, there are a few diffs that dont seem to change anything
| Alexandre Abreu (abreu-alexandre) wrote : | # |
> And where can I get the integral values?
- 121. By Marcus Tomlinson on 2016-01-07
-
Stop the scopes runtime and exit gracefully upon SIGTERM
| Daniel Lim (daniellim0611) wrote : | # |
I've changed the enum. But I don't know how to remove the tabs/spaces
| Daniel Lim (daniellim0611) wrote : | # |
> I've changed the enum. But I don't know how to remove the unwanted diffs
| Daniel Lim (daniellim0611) wrote : | # |
> I've changed the enum. But I don't know how to remove the unwanted diffs
| Daniel Lim (daniellim0611) wrote : | # |
Oops this is awkward. Sorry
| Daniel Lim (daniellim0611) wrote : | # |
Can I change the commits? Is that what I am supposed to do to remove the unwanted changes? If yes, may I get some help on how to do so?
| Alexandre Abreu (abreu-alexandre) wrote : | # |
> Can I change the commits? Is that what I am supposed to do to remove the
> unwanted changes? If yes, may I get some help on how to do so?
you can do this:
bzr branch lp:unity-js-scopes trunk
cd trunk
bzr merge lp:~daniellim0611/unity-js-scopes/unity-js-scopes-bug1523595
then with
bzr diff
you can see the diffs, and update your code until the diffs are clean.
You can then
bzr commit -m "your message"
and
bzr push lp:~daniellim0611/unity-js-scopes/unity-js-scopes-bug1523595
it'll mess up the history a bit but it is fine,
| Daniel Lim (daniellim0611) wrote : | # |
I've removed some of the unwanted changes. The others are quite hard to see the difference.
Apparently the editor I used, atom, auto-removed all the spaces for me. So I used gedit instead.
But regardless of that, is the enumeration correct now?
| Alexandre Abreu (abreu-alexandre) wrote : | # |
Could you make the name of the enum match the c++ one: ResultsTtlType ?
- 124. By daniellim <email address hidden> on 2016-01-09
-
Modified index.js
| Daniel Lim (daniellim0611) wrote : | # |
Ok changed it. Hope that there are no more silly mistakes.
| Alexandre Abreu (abreu-alexandre) wrote : | # |
Thank you,
It still doesn't build though. I looked into it and it caused by a limitation of v8cpp (the lib that we use to handle the details of the v8 -> c++ bindings) that doesn't properly handle enum class.
I filed a bug
https:/
and it should be commited & released tomorrow. I'll check the code as soon as it is.
| Daniel Lim (daniellim0611) wrote : | # |
Actually I want to apologize. I am in boarding school and the school wifi blocks stuff from ubuntu, so I couldnt upgrade to Ubuntu 15 and Ubuntu 14 doesn't support unity scopes in javascript, therefore I wasn't able to build and test the code. I know that this isn't the right thing to do when coding but I thought it is just as simple as declaring a variable so I did not bother much.
Sorry for all inconvenience caused.
| Alexandre Abreu (abreu-alexandre) wrote : | # |
> Actually I want to apologize. I am in boarding school and the school wifi
> blocks stuff from ubuntu, so I couldnt upgrade to Ubuntu 15 and Ubuntu 14
> doesn't support unity scopes in javascript, therefore I wasn't able to build
> and test the code. I know that this isn't the right thing to do when coding
> but I thought it is just as simple as declaring a variable so I did not bother
> much.
>
> Sorry for all inconvenience caused.
no worries, I am here to help you land this branch :)
| Daniel Lim (daniellim0611) wrote : | # |
How's it?
Sorry I hope I can proceed to the next gci task ASAP. I have spent more than 10 days on this already.
I want to get the t-shirt :p
| Alexandre Abreu (abreu-alexandre) wrote : | # |
> How's it?
> Sorry I hope I can proceed to the next gci task ASAP. I have spent more than
> 10 days on this already.
> I want to get the t-shirt :p
The bug fix landed yesterday and now your branch builds and works fine,
+1

Thank you for working on this!
This code doesn't build though, could you fix it?
also:
- could you remove the "no-op" changes (prob tab/space updates)? scopes: :ScopeMetadata: :results_ ttl_type returns an enum which is basically in integral type, but you declare it as strings in JS. It should be defined as integers matching the C++ values,
- unity::