Re: NetBeans Platform Editors (Advanced)

2018-11-11 Thread Emilian Bold
I wonder if you figured out this editor problem.

--emi

On Thu, Nov 8, 2018 at 12:36 AM Emilian Bold  wrote:
>
> My guess is that while you are typing with the code completion popup
> open you are filling in the completion hint. While you are doing that
> I guess there is no parsing going on  so all the existing highlighting
> is kept and the error hints cleared. Once the popup is closed you are
> re-parsing and then get the hints again.
>
> Not sure why for .java it's different, there may be some flag for it.
>
> As for the embedded JEditorPane, are any other things missing? Can you
> set a bookmark?
>
> --emi
>
> On Wed, Nov 7, 2018 at 6:28 PM Graeme Ingleby  wrote:
> >
> > I have followed all the online tutorials I can find related to Lexing, 
> > Parsing & Code Completion.
> >
> >
> >
> > I have implemented my own language (a query language for search/filter) 
> > using ANTLR.  Syntax Highlighting works.  Code completion appears to work.  
> >  Parsing/Error Hints get triggered after a short delay and appear to be 
> > working.  I say appear to work because the functionality works individually.
> >
> >
> >
> > However, I’ve noticed if I have grammatical errors in my file the Error 
> > Hints disappear when the Code-Completion window is opened and the user 
> > continues to type (to filter the code-completion popup).  The error hints 
> > are displayed again as soon as the code-completion window is closed.
> >
> >
> >
> > So I can have syntax highlighting & errors or syntax highlighting & code 
> > completion but not syntax highlighting, error hints and code completion.
> >
> >
> >
> > When editing a .java file in NetBeans you can see error hints while code 
> > completion is open and the user continues typing (filtering the code 
> > completion window).
> >
> >
> >
> > I have noticed when editing a .js (javascript) file in NetBeans the editor 
> > behaves the way my language behaves – the parsing error hints disappear if 
> > the code-completion popup is visible and the user continues typing/filters 
> > the code-completion suggestions.
> >
> >
> >
> > I am using the default Editor behavior when opening a custom file type.
> >
> >
> >
> > Could someone familiar with the parsing/editing APIs help point me in the 
> > right direction?  I would really like the behavior to be the same as 
> > editing a .java file.
> >
> >
> >
> > One other issue that’s kind of related.   I then changed my data object so 
> > that it opens a custom editor rather than the default editor because 
> > ultimately I want my editor to be a text field embedded into another 
> > top-component rather than a standalone editor.   Again I followed the 
> > tutorials dealing with this type of functionality.
> >
> >
> >
> > In my custom editor I create a JEditorPane, set the editor kit for my MIME 
> > type.  Bind the component to the document.  Syntax highlighting and 
> > Code-Completion are functional but the parsing/error hints never activate.  
> >  I am trying to figure out what needs to be added to get the parsing/editor 
> > hints functional.
> >
> >
> >
> > Many Thanks
> >
> >
> >
> > -Graeme

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Netbeans 8.2 Static Library

2018-11-11 Thread Валера Солдатов
In C++ you need to specify path to header files via -I option too 
(Build|C++ Compiler|Include Directories property in NetBeans C++ projects).


11.11.2018 1:27, Emilian Bold пишет:

I'm not a C++ guy but I don't believe the linker is supposed to look
at header files? I think the problem is with `-lnana`, ie. are you
sure the library is in your LD_PATH or something like that?

--emi
On Sat, Nov 10, 2018 at 11:58 PM mr rupplin  wrote:

Can we force Netbeans to include .hpp files (containing structs and full 
classes in some cases) such that the resulting library lib.a contains the 
.hpp files?


Otherwise I'm unsure how I tell the linker (ld) to requires the header files at 
the time of linking.  I get linking

errors like:


g++ -o dist/Release/MinGW64-Windows/nanabrowser 
build/Release/MinGW64-Windows/NanaBrowser.o 
build/Release/MinGW64-Windows/main.o -L../../../../../MinGW/lib -lnana


...


build/Release/MinGW64-Windows/NanaBrowser.o:NanaBrowser.cpp:(.text+0x4b): 
undefined reference to `nana::rectangle::rectangle()'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x213a): undefined 
reference to `nana::rectangle::rectangle(int, int, unsigned int, unsigned int)'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x2142): undefined 
reference to `nana::rectangle::empty() const'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x3a02): undefined 
reference to `nana::rectangle::dimension(nana::size const&)'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x3a0f): undefined 
reference to `nana::rectangle::empty() const'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x3ccd): undefined 
reference to `nana::size::size(unsigned int, unsigned int)'
../../../../../MinGW/lib/libnana.a(place.o):place.cpp:(.text+0x3cd9): undefined 
reference to `nana::rectangle::dimension(nana::size const&)'

...


collect2.exe: error: ld returned 1 exit status
make.exe[2]: *** [dist/Release/MinGW64-Windows/nanabrowser.exe] Error 1


Can you please help.  My time is really up with this set of questions 
concerning my safe.  As an aside it's unclear if this is a linking error or a 
g++ compiler issue as the header file(s) are not found when linking.


Ok, thanks.

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists