Closed Bug 1045273 Opened 10 years ago Closed 7 years ago

[gcli] optional parameters labeled as 'helpManOptional', not as optional in help

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: aryx, Assigned: pandark, Mentored)

Details

(Whiteboard: [lang=js])

Attachments

(1 file, 3 obsolete files)

Firefox Nightly 34.0a1 20140728030201 on Windows 8.1

The options which are optional in the GCLI are labeled as helpManOptional, the strings ID which should be shown here.

Example:
Type |help highlight|.

Look at the description of --region and --fill.
The failure is probably in the usage from toolkit/devtools/gcli/source/lib/gcli/commands/help.js
Mentor: jwalker
Whiteboard: [good first bug][lang=js]
Attached patch bug-1045273.patch (obsolete) — Splinter Review
Attachment #8466770 - Flags: review?(jwalker)
Attachment #8466770 - Flags: review?(jwalker)
Attachment #8466770 - Flags: review+
Thanks Adrien, do you want me to push to try?
Hi,

I am new on this project and would like to accept the bug.
How do I accept the bug?.
Thanks,
Sushrut
(In reply to Sushrut Bhalla from comment #4)
> Hi,
> 
> I am new on this project and would like to accept the bug.
> How do I accept the bug?.
> Thanks,
> Sushrut

This bug is being worked on by Adrien, whose done one patch and is half way through a second. Can I suggest a couple of alternatives?

* Bug 1043896
* Bug 992386
Assignee: nobody → adrien-dev
Attached patch bug-1045273-2.patch (obsolete) — Splinter Review
A little overdue, but here is the second patch :)
Attachment #8469797 - Flags: review?(jwalker)
Attachment #8469797 - Flags: review?(jwalker) → review+
Attached patch bug-1045273.patch (obsolete) — Splinter Review
Attachment #8466770 - Attachment is obsolete: true
Attachment #8469797 - Attachment is obsolete: true
Attachment #8470069 - Flags: review?(jwalker)
Attachment #8470069 - Flags: review?(jwalker) → review+
Nice work Adrien. You asked about other bugs. I've not looked at bug 1038251 very much, so it's a bit of an known quantity, but you did a good job of tracking down the unknown parts of this one. What do you think?
Encountered this bug today:
(Aurora 34.0a2 (2014-09-07))

"Failed to format " "helpManOptional"
TypeError: swaps is undefined
l10n.js:86

Stack trace:
exports.lookupFormat@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/util/l10n.js:83:5
getHelpManData/<.getTypeDescription@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/commands/help.js:68:17
@resource://gre/modules/devtools/Templater.jsm line 570 > eval:1:1
envEval@resource://gre/modules/devtools/Templater.jsm:570:16
processTextNode/<@resource://gre/modules/devtools/Templater.jsm:413:1
processTextNode@resource://gre/modules/devtools/Templater.jsm:408:5
processNode@resource://gre/modules/devtools/Templater.jsm:215:7
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
processForEachMember/<@resource://gre/modules/devtools/Templater.jsm:375:11
handleAsync@resource://gre/modules/devtools/Templater.jsm:482:5
processForEachMember@resource://gre/modules/devtools/Templater.jsm:356:5
processForEachLoop/<@resource://gre/modules/devtools/Templater.jsm:326:1
processForEachLoop@resource://gre/modules/devtools/Templater.jsm:325:5
processForEach/<@resource://gre/modules/devtools/Templater.jsm:299:9
handleAsync@resource://gre/modules/devtools/Templater.jsm:482:5
processForEach@resource://gre/modules/devtools/Templater.jsm:298:7
processNode@resource://gre/modules/devtools/Templater.jsm:119:9
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
processForEachMember/<@resource://gre/modules/devtools/Templater.jsm:375:11
handleAsync@resource://gre/modules/devtools/Templater.jsm:482:5
processForEachMember@resource://gre/modules/devtools/Templater.jsm:356:5
processForEachLoop@resource://gre/modules/devtools/Templater.jsm:333:9
processForEach/<@resource://gre/modules/devtools/Templater.jsm:299:9
handleAsync@resource://gre/modules/devtools/Templater.jsm:482:5
processForEach@resource://gre/modules/devtools/Templater.jsm:298:7
processNode@resource://gre/modules/devtools/Templater.jsm:119:9
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
processNode@resource://gre/modules/devtools/Templater.jsm:211:7
template@resource://gre/modules/devtools/Templater.jsm:69:3
exports.createView/<.toDom@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/ui/view.js:83:7
viewDomConverter.exec@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/converters/converters.js:58:12
getChainConverter/<.exec@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/converters/converters.js:131:14
Converters.prototype.convert/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/converters/converters.js:244:14
createAsyncFunction/asyncFunction@resource://gre/modules/Task.jsm:239:18
Task_spawn@resource://gre/modules/Task.jsm:164:12
exports.exec@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/util/host.js:72:10
Converters.prototype.convert@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/converters/converters.js:243:12
Output.prototype.convert@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/cli.js:2193:10
OutputPanel.prototype._update@resource://app/modules/devtools/DeveloperToolbar.jsm:975:5
resolve@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:40:40
then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:20:43
resolve@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:72:11
Output.prototype.complete@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/cli.js:2186:3
Requisition.prototype.exec/onDone@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/gcli/cli.js:2059:5
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:865:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:744:7
Joe, should this patch be merged? It's been sitting on an r+ for some time now.
Flags: needinfo?(jwalker)
Thanks, Josh - yes it should. I'll make sure we land it.

Mike - please could you take a look at this patch? I think it's fine, but we should probably re-try.
Flags: needinfo?(jwalker) → needinfo?(mratcliffe)
Flags: a11y-review-
Flags: a11y-review-
What happened here?  Can we land something?
Flags: needinfo?(mratcliffe)
Flags: needinfo?(jwalker)
I'm guessing that it's a rebase away from being landable. Not sure why we didn't land previously.
Flags: needinfo?(jwalker)
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #15)
> What happened here?  Can we land something?

I remember that it failed on try... can't remember why though.

@Adrien: Do you feel like rebasing this patch?
Flags: needinfo?(mratcliffe) → needinfo?(adrien-dev)
Hello, I am new to Open Source programming. I would like to know what "landing" something and "rebasing" a patch means.

Also, I cannot find the mentioned folder "toolkit/devtools/gcli/source/lib/gcli/commands/" on my source directory. I can find "mozilla-central/toolkit/" but there is no folder "devtools" in there. Was it removed?
Flags: needinfo?(jwalker)
Land = Get a patch committed to mozilla-central
Rebase = Take an old patch and make it up to date

toolkit/devtools/gcli/source/lib/gcli/commands/ -> devtools/shared/gcli/commands
Flags: needinfo?(jwalker)
Hello,
It's been… a while :)
I'll have to set everything up again, so I'll probably give it a try after FOSDEM (next week).
Whiteboard: [good first bug][lang=js] → [lang=js]
I tried to rebase the patch and it turned out to be the same as the the original. Since I can not see the failed "try" can we spin it one more time?
Flags: needinfo?(adrien-dev) → needinfo?(mratcliffe)
(In reply to Stoyan Dimitrov [:stoyan] from comment #21)
> I tried to rebase the patch and it turned out to be the same as the the
> original. Since I can not see the failed "try" can we spin it one more time?

It probably looks the same but that will be because the files have moved:
  - toolkit/devtools/gcli/source/lib/gcli/commands/commands.js is now at devtools/shared/gcli/source/lib/gcli/commands/commands.js
  - toolkit/devtools/gcli/source/lib/gcli/commands/help.js is now at devtools/shared/gcli/source/lib/gcli/commands/help.js

So to rebase the patch you will need to first update the paths in the diff file.
Flags: needinfo?(mratcliffe) → needinfo?(stoyan)
Attachment #8470069 - Attachment is obsolete: true
Flags: needinfo?(stoyan)
I guess we are good for a "try" now.
Flags: needinfo?(mratcliffe)
Comment on attachment 8854407 [details] [diff] [review]
Rebased version of the original patch

r? miker as per IRC conversation with jwalker.
Attachment #8854407 - Flags: review?(mratcliffe)
Attachment #8854407 - Flags: review?(mratcliffe) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/76cd22c6aa18bb66152139f90c3612ad4795399c
Bug 1045273 - "[gcli] optional parameters labeled as 'helpManOptional', not as optional in help" r=mratcliffe
https://hg.mozilla.org/mozilla-central/rev/76cd22c6aa18
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Flags: needinfo?(mratcliffe)
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: