Feature request (JS Console)

6 views
Skip to first unread message

industral

unread,
Jun 23, 2010, 6:18:42 PM6/23/10
to Firebug
1. Console syntax highlight (any plugin)
2. Code autocomplete (it's easy as Fb already able to make
interpolation)
3. API for IDE using firebug as:
a) debug (+ remote)
b) advanced autocomplete (at least in Fx, but real working in real
time)

John J Barton

unread,
Jun 23, 2010, 11:21:32 PM6/23/10
to Firebug


On Jun 23, 3:18 pm, industral <indust...@gmail.com> wrote:
> 1. Console syntax highlight (any plugin)

I guess in Firebug terms you are asking for Command line syntax
highlighting?

> 2. Code autocomplete (it's easy as Fb already able to make
> interpolation)

The command line does autocomplete when you hit TAB

> 3. API for IDE using firebug as:
>         a) debug (+ remote)
>         b) advanced autocomplete (at least in Fx, but real working in real
> time)
You'll need to say more, I don't understand.

jjb

industral

unread,
Jun 24, 2010, 12:57:05 PM6/24/10
to Firebug


On Jun 24, 6:21 am, John J Barton <johnjbar...@johnjbarton.com> wrote:
> On Jun 23, 3:18 pm, industral <indust...@gmail.com> wrote:
>
> > 1. Console syntax highlight (any plugin)
>
> I guess in Firebug terms you are asking for Command line syntax
> highlighting?

Sorry, yes command line.

>
> > 2. Code autocomplete (it's easy as Fb already able to make
> > interpolation)
>
> The command line does autocomplete when you hit  TAB

Hmm, it's really works if command line is small, but if it's in
multiline mode - it doesn't work.
Maybe there's some way to make it work in multiline mode?

>
> > 3. API for IDE using firebug as:
> >         a) debug (+ remote)
> >         b) advanced autocomplete (at least in Fx, but real working in real
> > time)
>
> You'll need to say more, I don't understand.

Just feather request, to create some API (or maybe plugin), to provide
bridge with Fb and other IDE.
For example, to write code in Eclipse and get autocomplete not from
simple IDE JS plugin but from Fb.
Some with debug. It'll be very helpful for developers.
Till not I didn't find how communicate Fb and Eclipse for these
features.

>
> jjb

Mike Collins

unread,
Jun 24, 2010, 1:13:28 PM6/24/10
to fir...@googlegroups.com


On Thu, Jun 24, 2010 at 9:57 AM, industral <indu...@gmail.com> wrote:

>
> > 3. API for IDE using firebug as:
> >         a) debug (+ remote)
> >         b) advanced autocomplete (at least in Fx, but real working in real
> > time)
>
> You'll need to say more, I don't understand.

Just feather request, to create some API (or maybe plugin), to provide
bridge with Fb and other IDE.
For example, to write code in Eclipse and get autocomplete not from
simple IDE JS plugin but from Fb.
Some with debug. It'll be very helpful for developers.
Till not I didn't find how communicate Fb and Eclipse for these
features.

>
> jjb



Sounds like you are describing Crossfire. http://getfirebug.com/wiki/index.php/Crossfire

Michael Rennie, Darin Wright and a few other folks are working on an Eclipse plugin for Crossfire, but it's still in the works.

I suppose you could use information from it to do auto-completion as well.


Mike

industral

unread,
Jun 24, 2010, 4:57:38 PM6/24/10
to Firebug


On Jun 24, 8:13 pm, Mike Collins <collins.m...@gmail.com> wrote:
> On Thu, Jun 24, 2010 at 9:57 AM, industral <indust...@gmail.com> wrote:
>
> > > > 3. API for IDE using firebug as:
> > > >         a) debug (+ remote)
> > > >         b) advanced autocomplete (at least in Fx, but real working in
> > real
> > > > time)
>
> > > You'll need to say more, I don't understand.
>
> > Just feather request, to create some API (or maybe plugin), to provide
> > bridge with Fb and other IDE.
> > For example, to write code in Eclipse and get autocomplete not from
> > simple IDE JS plugin but from Fb.
> > Some with debug. It'll be very helpful for developers.
> > Till not I didn't find how communicate Fb and Eclipse for these
> > features.
>
> > > jjb
>
> Sounds like you are describing Crossfire.http://getfirebug.com/wiki/index.php/Crossfire
>
> Michael Rennie, Darin Wright and a few other folks are working on an Eclipse
> plugin for Crossfire, but it's still in the works.
>
> I suppose you could use information from it to do auto-completion as well.

Yes, it is. Looks like in pre-pre alpha state, but it's that I told
about.
Thanks,

>
> Mike

ase

unread,
Jul 9, 2010, 4:21:39 AM7/9/10
to Firebug
Im also interested in feature suggestions #1 and #2.
Firerainbow does syntax hightlighting but only in the script tab and
the developers said that for now the will not add it to the console
tab...but it seems easily implementable...
And i dont understand why they cut out the autocomplete feature when
the code is in the multiline panel :S

On Jun 24, 6:57 pm, industral <indust...@gmail.com> wrote:
> On Jun 24, 6:21 am, John J Barton <johnjbar...@johnjbarton.com> wrote:
>
> > On Jun 23, 3:18 pm, industral <indust...@gmail.com> wrote:
>
> > > 1.Consolesyntaxhighlight(any plugin)

John J Barton

unread,
Jul 9, 2010, 11:26:49 AM7/9/10
to Firebug


On Jul 9, 1:21 am, ase <ase...@gmail.com> wrote:
> Im also interested in feature suggestions #1 and #2.
> Firerainbow does syntax hightlighting but only in the script tab and
> the developers said that for now the will not add it to the console
> tab...but it seems easily implementable...

Ok that's great news, let us know if you run in to issues in this
work.

> And i dont understand why they cut out the autocomplete feature when
> the code is in the multiline panel :S

Perhaps if I explain how autocomplete works, you can understand why we
don't implement it for multi-line.

Autocomplete works by extracting a string from the buffer and running
"eval()" on the string. The "eval()" runs in the global scope unless
you are stopped on a breakpoint. If you are stopped, the eval() runs
in the scope of the stopped frame.

In the multiline case we have two new major problems that don't affect
the single line. First is extracting the string: with single line we
can simply take the string the cursor is in. I don't know if this
will work in multiline. Second is the scope: multiline code often
introduces functions and block with new scope. Consider:
function foo(){
var bar = new Date();
bar.
The user wants completion of "bar.", but Firebug will only say
"undefined" because it has no way to know about "bar".

Completion in multiline is possible of course so let us know if you
want to work on its implementation.

jjb
Reply all
Reply to author
Forward
0 new messages