Re: I am unable to verify my plugin
geertjan wielenga <[email protected]> Sat, 15 Apr 2017 18:20:09 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
On 15-4-2017 18:10, mcheung63 wrote:
> The tutorial on web teach me to click "Install/Reload in Development plugin" to debug.
You don't need to do that at all to debug. You can deploy your plugin
from NetBeans to a fresh instance of NetBeans, i.e., right-click the
project and click Run.
> This step work perfectly,
But in the previous e-mail, you said that you get the error message
"NetBeans: Error redeploying NBM module in development IDE." when you
click "Install/Reload in Development IDE".
So, how can it work perfectly?
And, you really don't need to install any plugin via "Install/Reload in
Development IDE". Just right-click, choose Run, and a new instance of
NetBeans will start with your plugin installed into it and there you can
try it out (is that what you mean by "debug")?
I don't understand. Too many questions.
Gj
> but when I pack my plugin into NBM and submit to plugin central. It either said, I use hard dependency so don't let me verify OR the plugin crash, can't load the BookmarkList class (https://github.com/mcheung63/netbeans-minimap/issues/8) . I am sure this bug exist because I installed a clean netbeans in VM to test my plugin.
>
> All I want to do is read out the bookmarks line numbers, so I have to use "org-netbeans-modules-editor-bookmarks", but just can't make it works.
>
> Steps to produce:
> 1) git clone https://github.com/mcheung63/netbeans-minimap.git
> 2) right click project, click "clean and build", it should success
> 3) click "Install/Reload in Development plugin" OR "Run project", it said "NetBeans: Error redeploying NBM module in development IDE."
>
> Below are the code I read out bookmark information
>
> Code:
>
> BookmarkList bookmarkList = (BookmarkList) document.getProperty(BookmarkList.class);
> isBookmarkLine(bookmarkList, 1);
>
> boolean isBookmarkLine(BookmarkList bookmarkList, int lineNo) {
> if (bookmarkList == null) {
> return false;
> }
> for (Bookmark bookmark : bookmarkList.getBookmarks()) {
> if (bookmark.getLineNumber() == lineNo) {
> return true;
> }
> }
> return false;
> }
>
>
>
> Thanks
> Peter
>
>
>
>