Best
Alessandro
I'll push an update today that will allow you to email an activation
code to the address you used to register originally.
Looking forward to your feedback.
Christoph
--
-------------------------------------------
Christoph Dorn - www.developercompanion.com
Let me see what is wrong.
Christoph
On 11-05-11 10:56 AM, cFreed wrote:
> Hi,
>
> Great to know we may use DeveloperCompanion anew, so I immediately
> went to http://www.developercompanion.com, but:
> - at first try, I simply got �502 Bad Gateway� error
> - at second try, �PinfError: Cannot determine default PINF database
> path as PINF_HOME and HOME environment variables are not set!�,
Christoph
--
I pushed a new update (rc14) which you can get by updating all add-ons
using the ff4 add-on manager. No need to restart :)
You can now open companion, click on "Account" and then "Activate this
client".
Please let me know if this works for you.
Christoph
I encourage you to try the new configuration. All you should need to do
is create a new workspace, insert your "Homepage URL" and paste the
generated code into your PHP code. Then click "Add Workspace". Once this
is done all logging should work.
Christoph
--
Actually it **is** working with the simple upgrade.
The DeveloperCompanion Console should pop up with a bunch of messages
when you go to http://www.firephp.org/
Could you confirm that please.
If it does not work are there any errors in the error console or
anywhere else?
Christoph
No rush, whenever you are ready. As you can see there are still some
kinks to iron out.
> But just now, and for answer to your 2nd message: no, I do NOT see
> ANYTHING in the devcomp console when going to http://www.firephp.org/.
> With this url, as with my own tests, I only see expected headings in
> the Firebug Net tab, and in any case I don't get any error message in
> the Firebug console nor elsewhere...
>
> Does this give you an idea?
Not, not yet. So you are testing this with FF 4.0.1 and Devcomp 1.0b1rc14?
Which OS are you on? Do you have other extensions installed? Could you
try with a fresh profile for ff4?
Christoph
I'll check it against what used to work with pre 1.0 versions in the
next days and let you know if something pop ups.
Thank you for the speedy and great support Christoph.
Best
Alessandro
Ok. Good. Thanks for confirming.
> I've disabled and looks
> like Narwhal for XULRunner isn't needed anymore, can you confirm that?
That is correct. Only the single new extension is needed.
> I'll check it against what used to work with pre 1.0 versions in the
> next days and let you know if something pop ups.
Great!
> Thank you for the speedy and great support Christoph.
Thanks for the feedback.
Christoph
Christoph
--
I removed that as it is only relevant when working on companion.
> 2. like with rc12, none of my logs appear, but I always get the same
> error message (once at each new page load)
>
> Message is:
> array(
> map(
> message=>Already parsing!,
> fileName=>/__PWD__/resource:/jid1-devcomp-extension-ff4-devcomp-data/
> packages.jar!/p3fab0ff862fc3b180e59de090c1a7ca6@/lib/channel,
> lineNumber=>9,
> stack=>([object Proxy],[object Proxy])@/__PWD__/resource:/jid1-devcomp-
> extension-ff4-devcomp-data/packages.jar!/
> p3fab0ff862fc3b180e59de090c1a7ca6@/lib/channel:9
> @:0
Ah, I did not realize you were getting this error. I'll have a fix for
this with the next release.
Thanks!
Christoph
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Bugfix: Recover from parsing incorrectly formatted wildfire messages
* Enhancement: Server library upgrade message if incorrect 1.0
version used
* Enhancement: Method and status for requests in companion console
* Bugfix: Group display in companion console
* Enhancement: Better error messages to troubleshoot server requests
Any issues? Let me know.
Christoph
--
Should be fixed now. Let me know.
Thanks!
Christoph
There is a fox for this in 1.0b1rc15 now.
You may still get an error but it should not break all of companion any
more. Please let me know if it now works or what error you are getting.
Thanks!
Christoph
Thanks for continuing to troubleshoot this.
Christoph
--
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Bugfix: Don't show '@' in console for file/line if line is not
available
* Bugfix: Don't trim group titles
* Enhancement: Better error messages when parsing FirePHP <1.0 messages
* Bugfix: Renderer lookup logic for table cell values
Any issues? Let me know.
Christoph
--
Please send *all* errors you get for one request.
Do you have a simple test case I can try on my system?
Thanks!
Christoph
--
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Enhancement: Show error message if reload status not 2xx or 'Parser
error' found in response
* Bugfix: Keep message title showing when expanding traces and exceptions
* Bugfix: Exception titles not showing with broken UI and traces
* Enhancement: Show included files for request
Any issues? Let me know.
Christoph
On 11-05-10 5:37 PM, Christoph Dorn wrote:
--
Ah. That would be it. Should be no problem to fix. Great catch!
> BTW, now that I can look at DevComp normally working, I alert you on a
> little inconvenience, in case of error reporting (from my own code).
> When message is not open yet, title displays only the type and nature
> of the error; alternatively, when open, it displays only the file-path
> and line-no.
This was a bug. Fixes in rc17.
> In my opinion, both are of first interest simultaneously.
I have the file/line hidden by default at the moment. You can see it in
the table when expanding. Let's see how that goes first.
Christoph
Looks like we have two issues here.
The JSON is not parsing because there are 'null:null' pairs in the data
object. This needs to be fixed in the PHP lib. Could you send me a
logging line that generates the above? I need to figure out where the
'null' is coming from for the key as I want to have a fix for that in
the library.
When I adjust the JSON to make it parse the characters are not displayed
properly in the console. I get:
http://screencast.com/t/Ka9zTApz2i4C
What do I need to do to have these display properly? What does the HTML
code have to be?
FYI, as you can see in the screenshot, %�*$=)^:! seems to work fine.
Christoph
Hmm. The top row in the table should be N, not N-1. That is the case for
me. If you find one where that is not the case, could you send me the
response headers.
> In the other hand, I also noticed a strange behaviour when just
> upgraded to rc17.
> I upgraded without restarting FF, so DevComp console was already open
> and I directly refreshed the tabs which contained my test projects.
> Then:
> 1. all worked as if no upgrade had happen yet: displayed information
> was in rc16 style, and DevComp window title displayed "rc16"
> 2. I closed DevComp window and refreshed my tabs anew: DevComp window
> never re-opened
> 3. I had to close and restart FF to have DevComp window come back,
> with rc17 title and contents
Ok. Will fix so all windows close during update for now.
Christoph
It should always show N in the table. Not N-1. Could you send me the
response headers for this request. If you have some PHP code that can
show the problem that would be good too.
Thanks!
Christoph
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Enhancement: Editable request URL that sends "GET" request on enter
* Enhancement: Remember companion window and console position and size
* Change: Increased padding of table cells
* Change: Always close Companion window and console when last firefox
window is closed
* Bugfix: HTTPS support
* Bugfix: Always show parser errors when reloading request (even if
insight did not respond in headers)
* Bugfix: Close all windows when unloading/updating
* Bugfix: Workspace detection from some URLs
* Bugfix: Resize tab bars when window is being resized
In rc18 I now keep the dimensions of the companion window and console. I
also close the companion window and console when the last ff window closes.
For me this now has the desired effect most of the time where the
dimensions of the last FF window are remembered. I have made a note to
make this more reliable and should have a solution soon.
Christoph
Please send me a var_dump() and var_export() of $mocs;
Also please confirm that the same issue exists if you call:
fp(var_export($mocs),'mocs');
If not, I need to know which line in FirePHP.class.php is writing "null"
as the key in the JSON. (I also need the server library version).
Thanks!
Christoph
Good to hear.
> My only gripe with it is the new Companion Console that I am getting
> instead of the integration I previously had with FireBug's console. I
> mostly dump information to tabs, but some things I was still putting
> in the main console. I'm assuming this was done for a deeper reason
> and I will just have to get used to it.
There is a reason. DeveloperCompanion is now built on top of jetpack,
mozilla's new add-on SDK, [1] which allows restartless extensions.
The problem is Firebug 1.7 does not allow for restartless registering of
extensions which should work again with Firebug 1.8. So I will bring
logging to the Firebug Console back again as soon as Firebug supports
what I need (I am working with the Firebug folks on that).
Having it log to the Companion Console is an iterim solution although I
am starting to like it better than the Firebug Console. I'll likely add
a preference that will allow you to select where you want the 'page'
context messages to appear.
> On a side note though, the request history doesn't always seem to
> update on switch. Most of the time it did, but a simple reload
> corrected the tabs when it stuck. Not a big deal, but I figured it
> was worth mentioning.
Thanks for pointing this out. I'll take a look. If you notice any
pattern let me know.
> Great job, things are moving along very nicely (rc18).
Now that the core stuff is working I'll be bringing the 'on'
functionality back, then continue with the other features for 1.0 [2].
Christoph
[1] - https://jetpack.mozillalabs.com/
[2] - http://developercompanion.com/
That does not matter though as you can obviously reproduce the error and
test a fix. I am going to add a check to ensure all keys are always
strings. Could you please change the following in your copy and test to
make sure that a null key is now properly sent and displayed.
Insert:
if ($key === null) {
$key = "null";
}
At:
Thanks!
Christoph
> character (Á, orÁ). When replacing it by "ana MŠ DU", its
> content is well rendered.
> I also found that the "û" character (û, orû) does the
> same. Sure there are other ones... can't figure out why some special
> chars cause the problem and other ones no...
>
> This image illustrate all of that: http://www.screencast.com/t/TehhhUES
>
> Fred
>
--
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Change: Launch Companion window with first browser window if it was
open with last browser window
* Change: Add '/' at beginning of paths in application requests table
* Change: Expand request in companion console if error present
* Bugfix: Save dimensions of last browser window and apply to first
browser window
* Bugfix: Show file and line of exception/error source when logging
via FirePHPCore
You will need to update your FirePHP lib as well.
Christoph
--
Thanks!
Christoph
--
Please take a look at:
And
Now I don't know if you are using the native encoding function or the
bundled one. I suspect one or both have a bug.
Let me know which one causes the null key.
FYI. I do not think this issue exists with the Insight API (and improved
variable encoder) as keys are handled differently, but if it is the UTF8
encoding step then it will have the same issue.
Thanks
Christoph
--
Use the Firefox add-ons manager to update the extension without restarting!
Changelog:
* Enhancement: Terms in compare editions dialog
* Enhancement: Terms before purchasing dialog
* Change: New 7 day trial for everyone
* Bugfix: Premature trial expire
* Bugfix: Launch arrow not hiding on multiple windows
* Bugfix: Window height creep every time window is opened
Christoph
--
I forgot to push the latest changes. Sorry. They are there now (I
removed those 3 lines again).
> So it seems to mean that utf8 encoding should be the guilty. But I see
> that FirePHP uses the native utf8_encode() function, like in the above
> reported tests!
> So what? Again, at this point, I feel stuck...
Me too. I cannot even reproduce the issue you are seeing.
The only other idea I have is to try:
mb_convert_encoding($key, 'UTF-8')
instead of utf8_encode().
As for a hack solution we have two options:
1) Check for null after the encoding and encode the key differently
(maybe via json_encode() if that output is UTF-8) if null. That way we
still get something to the client other than null.
2) Repair the JSON on the client before parsing
I would prefer (1).
Could you see if mb_convert_encoding() resolves the issue and if not or
if you do not have it installed could you try and get option (1) working?
>> FYI. I do not think this issue exists with the Insight API (and improved
>> variable encoder) as keys are handled differently, but if it is the UTF8
>> encoding step then it will have the same issue.
>
> As already said, I temporarily differ toggling to full integration.
Right. I am keeping you informed about the differences.
> But I want to thank you for the license I received today: it's very
> nice!
> Thanks anew!
You are welcome. Thanks for your assistance in troubleshooting this.
Christoph
For FirePHP < 1.0 I could add a flag to force UTF-8 encoding for all
strings and for FirePHP 1.0+ I could add an encoding method to the
Insight API so strings can be selectively force encoded.
These could be workarounds until maybe a reliable detection solution
comes around.
What do you think?
Christoph
--
Looks good enough. Can you send me the whole modified FirePHP file? It
will make it much easier for me to merge the changes.
> BTW, I noticed two little things:
> 1. I'm pleased to have logs displayed into the Firebug console anew
> (for me, more convenient since I prefer to toggle between tabs rather
> than between windows); but the DevComp window keeps opening at first
> FP->log() call (and remains empty, of course) even when FB console tab
> is enabled.
Can you send me the response headers for a request that opens the
console. If the messages are going to the firebug console the companion
console should not open.
> 2. currently, when expanding a log result, its label (if any) doesn't
> appear in title
Can you be more specific. Which label?
When a message is expanded the summary line is removed (and expanded
below) and replaced with the file and line info. What do you expect?
Christoph
Thanks! Will be in next release.
>>> 2. currently, when expanding a log result, its label (if any) doesn't
>>> appear in title
>>
>> Can you be more specific. Which label?
>
> The 2nd argument in log($data,$label).
>
>> When a message is expanded the summary line is removed (and expanded
>> below) and replaced with the file and line info. What do you expect?
>
> It's illustrated by the image at http://www.screencast.com/t/CeVpxLUrXd
Ah, of course. Will have a fix in next release.
Thanks!
Christoph
I cannot reproduce this. Have you tried restarting firefox / computer
just in case?
The Companion Console opening is a good thing as it is trying to log an
error, but the error not showing up in the console is not a good thing :(
Please send me the response headers for the request.
Also, please use the FirePHP.class.php code you sent me to see if the
problem goes away. If it does send me the response headers for this
request as well.
Is anyone else having an issue where the variables do not show when
expanding?
Thanks!
Christoph
Great!
> 2. and something might turn wrong yet in the upgrade process (look at
> my previous post May 14, 4:14 am above)
I have made a few improvements to the upgrade process but there are
still some caching issues. What you are observing is the various caches
flushing. I hope to review this again soon.
> BTW, what should be useful is the ability to go back to an older
> DevComp version: in the current case, using rc29. But I have no idea
> how it would be possible?
I have made a note to add a section on the support page in the companion
window to display the changelog with links to download the various versions.
For now you can go to http://developercompanion.com/ and modify the
install link for the button to the version you want.
> Ha, may be another interesting point, if the ugrade process is really
> involved: I passed directly from rc29 to rc31.
That is fine. It will always grab the latest and sometimes I make a few
releases in short succession.
Thanks!
Christoph