p4-dev@lists.p4.org

list for questions/discussion of p4 programs and tools

View all threads

LSP server for P4? Good P4 Outline View in VSCode?

AF
Andy Fingerhut
Mon, Jan 10, 2022 2:47 PM

Is there an open source LSP server for P4?

I know there are at least 2 or 3 different add-ons for P4 in VSCode.  Does
anyone know if any of them support a nice "Outline View" that shows tables,
actions, control, parsers, etc. in the outline view?
https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view

Similarly if there is some Elisp code or package that causes Emacs to show
a good outline in ECB (Emacs Code Browser), or some other similar Emacs
package that has similarities to VSCode's outline view?
http://ecb.sourceforge.net/

Thanks,
Andy Fingerhut

Is there an open source LSP server for P4? I know there are at least 2 or 3 different add-ons for P4 in VSCode. Does anyone know if any of them support a nice "Outline View" that shows tables, actions, control, parsers, etc. in the outline view? https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view Similarly if there is some Elisp code or package that causes Emacs to show a good outline in ECB (Emacs Code Browser), or some other similar Emacs package that has similarities to VSCode's outline view? http://ecb.sourceforge.net/ Thanks, Andy Fingerhut
RS
Radostin Stoyanov
Mon, Jan 10, 2022 4:21 PM

Hi Andy,

There is one open-source LSP server for P4 available at
https://github.com/dmakarov/p4ls

Best wishes,
Radostin

On 10/01/2022 14:47, Andy Fingerhut wrote:

Is there an open source LSP server for P4?

I know there are at least 2 or 3 different add-ons for P4 in VSCode. 
Does anyone know if any of them support a nice "Outline View" that
shows tables, actions, control, parsers, etc. in the outline view?
https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view

Similarly if there is some Elisp code or package that causes Emacs to
show a good outline in ECB (Emacs Code Browser), or some other similar
Emacs package that has similarities to VSCode's outline view?
http://ecb.sourceforge.net/

Thanks,
Andy Fingerhut


P4-dev mailing list -- p4-dev@lists.p4.org
To unsubscribe send an email to p4-dev-leave@lists.p4.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Hi Andy, There is one open-source LSP server for P4 available at https://github.com/dmakarov/p4ls Best wishes, Radostin On 10/01/2022 14:47, Andy Fingerhut wrote: > Is there an open source LSP server for P4? > > I know there are at least 2 or 3 different add-ons for P4 in VSCode.  > Does anyone know if any of them support a nice "Outline View" that > shows tables, actions, control, parsers, etc. in the outline view? > https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view > > Similarly if there is some Elisp code or package that causes Emacs to > show a good outline in ECB (Emacs Code Browser), or some other similar > Emacs package that has similarities to VSCode's outline view? > http://ecb.sourceforge.net/ > > Thanks, > Andy Fingerhut > > _______________________________________________ > P4-dev mailing list -- p4-dev@lists.p4.org > To unsubscribe send an email to p4-dev-leave@lists.p4.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
AF
Andy Fingerhut
Wed, Jan 12, 2022 5:27 AM

Thanks for that pointer, Radostin.

Has anyone used this LSP server with Emacs or VSCode, and written up
step-by-step instructions they succeeded at in getting that to work?

In particular, I'd love to be able to see an outline/browser view of a big
P4_16 source file (or multiple files with #include between them) that gave
all control/parser/table/action/etc. names in the outline/browser window on
the side, and clicking on any of those would jump to its definition in the
main editor window.

I will probably spend some hobby time somewhere down the road trying again,
but the 30 minutes or so I dedicated to the task so far didn't give good
results yet.

Thanks,
Andy

On Mon, Jan 10, 2022 at 11:21 AM Radostin Stoyanov <
radostin.stoyanov@eng.ox.ac.uk> wrote:

Hi Andy,

There is one open-source LSP server for P4 available at
https://github.com/dmakarov/p4ls

Best wishes,
Radostin

On 10/01/2022 14:47, Andy Fingerhut wrote:

Is there an open source LSP server for P4?

I know there are at least 2 or 3 different add-ons for P4 in VSCode.
Does anyone know if any of them support a nice "Outline View" that
shows tables, actions, control, parsers, etc. in the outline view?

Similarly if there is some Elisp code or package that causes Emacs to
show a good outline in ECB (Emacs Code Browser), or some other similar
Emacs package that has similarities to VSCode's outline view?
http://ecb.sourceforge.net/

Thanks,
Andy Fingerhut


P4-dev mailing list -- p4-dev@lists.p4.org
To unsubscribe send an email to p4-dev-leave@lists.p4.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Thanks for that pointer, Radostin. Has anyone used this LSP server with Emacs or VSCode, and written up step-by-step instructions they succeeded at in getting that to work? In particular, I'd love to be able to see an outline/browser view of a big P4_16 source file (or multiple files with #include between them) that gave all control/parser/table/action/etc. names in the outline/browser window on the side, and clicking on any of those would jump to its definition in the main editor window. I will probably spend some hobby time somewhere down the road trying again, but the 30 minutes or so I dedicated to the task so far didn't give good results yet. Thanks, Andy On Mon, Jan 10, 2022 at 11:21 AM Radostin Stoyanov < radostin.stoyanov@eng.ox.ac.uk> wrote: > Hi Andy, > > There is one open-source LSP server for P4 available at > https://github.com/dmakarov/p4ls > > Best wishes, > Radostin > > On 10/01/2022 14:47, Andy Fingerhut wrote: > > Is there an open source LSP server for P4? > > > > I know there are at least 2 or 3 different add-ons for P4 in VSCode. > > Does anyone know if any of them support a nice "Outline View" that > > shows tables, actions, control, parsers, etc. in the outline view? > > > https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view > > > > Similarly if there is some Elisp code or package that causes Emacs to > > show a good outline in ECB (Emacs Code Browser), or some other similar > > Emacs package that has similarities to VSCode's outline view? > > http://ecb.sourceforge.net/ > > > > Thanks, > > Andy Fingerhut > > > > _______________________________________________ > > P4-dev mailing list -- p4-dev@lists.p4.org > > To unsubscribe send an email to p4-dev-leave@lists.p4.org > > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s > >