You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Bo Andersen <bo...@outlook.com> on 2018/12/06 11:31:15 UTC
Debug facility
I am trying to look at the Netbeans code here: https://github.com/apache/incubator-netbeans
In our libraries we usually have a docs folder with markdown files documenting the different aspects of the code base - how is it organized, and the process of development. I am not a JAVA developer, but may give it a try, because I like Netbeans as a web development (PHP) IDE. Is it possible to configure the setup, with a source map, so I can see which code is executed when I navigate and executes tasks in the UI?
It doesn't look like you are using tests in your code, if I add new features and fixed bugs, it may just be a PR to the master branch?
Thanks.
Re: Debug facility
Posted by Emilian Bold <em...@gmail.com>.
You want a 'CompletionProvider', most likely PhpTypeCompletionProvider
(although there are some other subclasses in the php/ folder).
You have Set<String> getItems(FileObject sourceFile, String prefix)
where `prefix` is what the user already typed.
Oddly enough I see php defines it's own
org.netbeans.modules.php.spi.templates.completion.CompletionProvider
while I remeber being a common interface, but I'm probably thinking of
csl.api GsfCompletionProvider which was used in the Javascript
support.
Feel free to email me directly (or to CC me when writing to the
mailing list) I might have some ideas there.
I suspect fuzzy search might not work immediately, as while the
completion popup is shown any further edit will just filter the list
(and not re-generate the list from the provider). But perhaps there is
a way for force refresh that list...
Anyhow, start playing with that API and see if you make progress.
--emi
http://coolbeans.xyz/ - CoolBeans: An IDE for Java, JavaEE, PHP and more!
On Fri, Dec 7, 2018 at 1:31 PM Bo Andersen <bo...@outlook.com> wrote:
>
> My question was about finding the current execution point in the code. E.g. if I want to add fuzzy search to the PHP autocomplete (https://issues.apache.org/jira/browse/NETBEANS-360?jql=project%20%3D%20NETBEANS%20AND%20text%20~%20autocomplete).
> Which approach is the best to find out where the execution happens, where should the extension be implemented, it is a huge code base, but it looks fairly well organized at the first glance.
>
> Sorry for dumb questions.. But as mentioned, I am not a JAVA developer - you may have some common tools/approaches you use
> ________________________________
> Fra: Jean-Marc Borer <jm...@gmail.com>
> Sendt: 7. december 2018 11:02
> Til: users@netbeans.apache.org
> Emne: Re: Debug facility
>
> Hi Bo,
>
> Not sure to understand what you mean by "possible to configure the setup, with a source map, so I can see which code is executed when I navigate and executes tasks in the UI"
> There are a lot of unit test in the sources.
> When you provide a PR, it is obviously a very good idea to provide unit tests as well.
>
> On Thu, Dec 6, 2018 at 11:31 AM Bo Andersen <bo...@outlook.com> wrote:
>
> I am trying to look at the Netbeans code here: https://github.com/apache/incubator-netbeans
>
> In our libraries we usually have a docs folder with markdown files documenting the different aspects of the code base - how is it organized, and the process of development. I am not a JAVA developer, but may give it a try, because I like Netbeans as a web development (PHP) IDE. Is it possible to configure the setup, with a source map, so I can see which code is executed when I navigate and executes tasks in the UI?
>
> It doesn't look like you are using tests in your code, if I add new features and fixed bugs, it may just be a PR to the master branch?
>
> Thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Sv: Debug facility
Posted by Bo Andersen <bo...@outlook.com>.
My question was about finding the current execution point in the code. E.g. if I want to add fuzzy search to the PHP autocomplete (https://issues.apache.org/jira/browse/NETBEANS-360?jql=project%20%3D%20NETBEANS%20AND%20text%20~%20autocomplete).
Which approach is the best to find out where the execution happens, where should the extension be implemented, it is a huge code base, but it looks fairly well organized at the first glance.
Sorry for dumb questions.. But as mentioned, I am not a JAVA developer - you may have some common tools/approaches you use 😊
________________________________
Fra: Jean-Marc Borer <jm...@gmail.com>
Sendt: 7. december 2018 11:02
Til: users@netbeans.apache.org
Emne: Re: Debug facility
Hi Bo,
Not sure to understand what you mean by "possible to configure the setup, with a source map, so I can see which code is executed when I navigate and executes tasks in the UI"
There are a lot of unit test in the sources.
When you provide a PR, it is obviously a very good idea to provide unit tests as well.
On Thu, Dec 6, 2018 at 11:31 AM Bo Andersen <bo...@outlook.com>> wrote:
I am trying to look at the Netbeans code here: https://github.com/apache/incubator-netbeans
In our libraries we usually have a docs folder with markdown files documenting the different aspects of the code base - how is it organized, and the process of development. I am not a JAVA developer, but may give it a try, because I like Netbeans as a web development (PHP) IDE. Is it possible to configure the setup, with a source map, so I can see which code is executed when I navigate and executes tasks in the UI?
It doesn't look like you are using tests in your code, if I add new features and fixed bugs, it may just be a PR to the master branch?
Thanks.
Re: Debug facility
Posted by Jean-Marc Borer <jm...@gmail.com>.
Hi Bo,
Not sure to understand what you mean by "possible to configure the setup,
with a source map, so I can see which code is executed when I navigate and
executes tasks in the UI"
There are a lot of unit test in the sources.
When you provide a PR, it is obviously a very good idea to provide unit
tests as well.
On Thu, Dec 6, 2018 at 11:31 AM Bo Andersen <bo...@outlook.com> wrote:
> I am trying to look at the Netbeans code here:
> https://github.com/apache/incubator-netbeans
>
> In our libraries we usually have a docs folder with markdown files
> documenting the different aspects of the code base - how is it organized,
> and the process of development. I am not a JAVA developer, but may give it
> a try, because I like Netbeans as a web development (PHP) IDE. Is it
> possible to configure the setup, with a source map, so I can see which code
> is executed when I navigate and executes tasks in the UI?
>
> It doesn't look like you are using tests in your code, if I add new
> features and fixed bugs, it may just be a PR to the master branch?
>
> Thanks.
>
>