Mario Charest
04/29/2009 1:53 PM
post28371
|
I've gotten use to this problem to the point I forgot to mention it. C++ project, IDE 6.4.1. For any line that has
errno in it, the editor indicate the line has a syntax error.
|
|
|
Elena Laskavaia
04/29/2009 2:06 PM
post28373
|
Yeah... errno uses some non-standard macro which for some reason indexer cannot find. Qnx project or managed?
Mario Charest wrote:
> I've gotten use to this problem to the point I forgot to mention it. C++ project, IDE 6.4.1. For any line that has
errno in it, the editor indicate the line has a syntax error.
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28371
>
|
|
|
Mario Charest
04/29/2009 2:07 PM
post28374
|
Managed.
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 2:06 PM
> To: general-ide
> Subject: Re: errno
>
> Yeah... errno uses some non-standard macro which for some reason
> indexer cannot find. Qnx project or managed?
>
> Mario Charest wrote:
> > I've gotten use to this problem to the point I forgot to mention it.
> C++ project, IDE 6.4.1. For any line that has errno in it, the editor
> indicate the line has a syntax error.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28371
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28373
>
|
|
|
Elena Laskavaia
04/29/2009 2:12 PM
post28375
|
Check what it expands to (hover over or open Macro Expansion tool)
If it cannot find _STD macro add it with value of <empty> to Path and Symbols->Symbols tab...
Mario Charest wrote:
> Managed.
>
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 2:06 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> Yeah... errno uses some non-standard macro which for some reason
>> indexer cannot find. Qnx project or managed?
>>
>> Mario Charest wrote:
>>> I've gotten use to this problem to the point I forgot to mention it.
>> C++ project, IDE 6.4.1. For any line that has errno in it, the editor
>> indicate the line has a syntax error.
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post28371
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post28373
>>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28374
>
|
|
|
Steve Reid
04/29/2009 2:17 PM
post28377
|
Is this something we should mention in the release notes?
Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems
|
|
|
Elena Laskavaia
04/29/2009 2:53 PM
post28383
|
Nope. There is a lot of weird stuff that indexer cannot parse properly. It does not affect functionality (just a warning
that can be turned off)
It is not worth mentioning imho.
Steve Reid wrote:
> Is this something we should mention in the release notes?
>
> Steve Reid (stever@qnx.com)
> Technical Editor
> QNX Software Systems
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28377
>
|
|
|
Mario Charest
04/29/2009 2:56 PM
post28384
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 2:53 PM
> To: general-ide
> Subject: Re: errno
>
> Nope. There is a lot of weird stuff that indexer cannot parse properly.
> It does not affect functionality (just a warning that can be turned
> off)
> It is not worth mentioning imho.
Not working properly is one thing, but having the editor show a warning (question marks and yellow underlines all over
the place) is worth a "don`t spend time search for a solution" release note?
>
> Steve Reid wrote:
> > Is this something we should mention in the release notes?
> >
> > Steve Reid (stever@qnx.com)
> > Technical Editor
> > QNX Software Systems
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28377
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28383
>
|
|
|
Elena Laskavaia
04/29/2009 3:15 PM
post28386
|
What is the solution for errno btw? Did it work what I said?
There is no universal solution btw...
Mario Charest wrote:
>
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 2:53 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> Nope. There is a lot of weird stuff that indexer cannot parse properly.
>> It does not affect functionality (just a warning that can be turned
>> off)
>> It is not worth mentioning imho.
>
> Not working properly is one thing, but having the editor show a warning (question marks and yellow underlines all over
the place) is worth a "don`t spend time search for a solution" release note?
>
>> Steve Reid wrote:
>>> Is this something we should mention in the release notes?
>>>
>>> Steve Reid (stever@qnx.com)
>>> Technical Editor
>>> QNX Software Systems
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post28377
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post28383
>>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28384
>
|
|
|
Mario Charest
04/29/2009 3:19 PM
post28387
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:15 PM
> To: general-ide
> Subject: Re: errno
>
> What is the solution for errno btw? Did it work what I said?
>
No it didn`t. I gave a description of what I saw in another post?
> There is no universal solution btw...
>
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 2:53 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Nope. There is a lot of weird stuff that indexer cannot parse
> properly.
> >> It does not affect functionality (just a warning that can be turned
> >> off)
> >> It is not worth mentioning imho.
> >
> > Not working properly is one thing, but having the editor show a
> warning (question marks and yellow underlines all over the place) is
> worth a "don`t spend time search for a solution" release note?
> >
> >> Steve Reid wrote:
> >>> Is this something we should mention in the release notes?
> >>>
> >>> Steve Reid (stever@qnx.com)
> >>> Technical Editor
> >>> QNX Software Systems
> >>>
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28377
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28383
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28384
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28386
>
|
|
|
Elena Laskavaia
04/29/2009 3:24 PM
post28388
|
Yeah which means _STD expands to ::std::. So if you override it for C it suppose to be gone...
Mario Charest wrote:
>
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 3:15 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> What is the solution for errno btw? Did it work what I said?
>>
>
> No it didn`t. I gave a description of what I saw in another post?
>
>
>> There is no universal solution btw...
>>
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>> Sent: April-29-09 2:53 PM
>>>> To: general-ide
>>>> Subject: Re: errno
>>>>
>>>> Nope. There is a lot of weird stuff that indexer cannot parse
>> properly.
>>>> It does not affect functionality (just a warning that can be turned
>>>> off)
>>>> It is not worth mentioning imho.
>>> Not working properly is one thing, but having the editor show a
>> warning (question marks and yellow underlines all over the place) is
>> worth a "don`t spend time search for a solution" release note?
>>>> Steve Reid wrote:
>>>>> Is this something we should mention in the release notes?
>>>>>
>>>>> Steve Reid (stever@qnx.com)
>>>>> Technical Editor
>>>>> QNX Software Systems
>>>>>
>>>>> _______________________________________________
>>>>> General
>>>>> http://community.qnx.com/sf/go/post28377
>>>>>
>>>> _______________________________________________
>>>> General
>>>> http://community.qnx.com/sf/go/post28383
>>>>
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post28384
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post28386
>>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28387
>
|
|
|
Mario Charest
04/29/2009 3:31 PM
post28393
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:24 PM
> To: general-ide
> Subject: Re: errno
>
> Yeah which means _STD expands to ::std::. So if you override it for C
> it suppose to be gone...
In Paths and Symbols, for languages I only see Assembly and GNU C. I was expecting GNU C++. That being said _STD is
defined for GNU C but still no go.
>
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:15 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> What is the solution for errno btw? Did it work what I said?
> >>
> >
> > No it didn`t. I gave a description of what I saw in another post?
> >
> >
> >> There is no universal solution btw...
> >>
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >>>> Sent: April-29-09 2:53 PM
> >>>> To: general-ide
> >>>> Subject: Re: errno
> >>>>
> >>>> Nope. There is a lot of weird stuff that indexer cannot parse
> >> properly.
> >>>> It does not affect functionality (just a warning that can be
> turned
> >>>> off)
> >>>> It is not worth mentioning imho.
> >>> Not working properly is one thing, but having the editor show a
> >> warning (question marks and yellow underlines all over the place) is
> >> worth a "don`t spend time search for a solution" release note?
> >>>> Steve Reid wrote:
> >>>>> Is this something we should mention in the release notes?
> >>>>>
> >>>>> Steve Reid (stever@qnx.com)
> >>>>> Technical Editor
> >>>>> QNX Software Systems
> >>>>>
> >>>>> _______________________________________________
> >>>>> General
> >>>>> http://community.qnx.com/sf/go/post28377
> >>>>>
> >>>> _______________________________________________
> >>>> General
> >>>> http://community.qnx.com/sf/go/post28383
> >>>>
> >>>
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28384
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28386
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28387
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28388
>
|
|
|
Elena Laskavaia
04/29/2009 3:36 PM
post28395
|
Strange that I cannot reproduce it, I create managed c++ project and add cpp and c file. For each of them errno defined
differently,
Try to enable full indexing in C/C++ General->Indexing in project properties. (It won't cache headers for full indexing
which (caching) is probably case of the error).
Do you include errno.h explicitly in every file that uses it?
Mario Charest wrote:
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 3:24 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> Yeah which means _STD expands to ::std::. So if you override it for C
>> it suppose to be gone...
>
> In Paths and Symbols, for languages I only see Assembly and GNU C. I was expecting GNU C++. That being said _STD is
defined for GNU C but still no go.
>
>
|
|
|
Mario Charest
04/29/2009 3:46 PM
post28397
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:36 PM
> To: general-ide
> Subject: Re: errno
>
> Strange that I cannot reproduce it, I create managed c++ project and
> add cpp and c file. For each of them errno defined differently,
> Try to enable full indexing in C/C++ General->Indexing in project
> properties. (It won't cache headers for full indexing which (caching)
> is probably case of the error).
I always use Full Indexing. I use 6.4.1 but the 6.3.2 tools
> Do you include errno.h explicitly in every file that uses it?
In the C file I`m checking, it`s there. There might be some files (project contains huge number of file), that do not
include it explicitly in every file but rather through some other header file.
I creates new dummy C++ project with one C file and one C++ files and just like you I can`t reproduce it. I'll try to
find out what is different and will get back to you.
>
>
> Mario Charest wrote:
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:24 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah which means _STD expands to ::std::. So if you override it for
> C
> >> it suppose to be gone...
> >
> > In Paths and Symbols, for languages I only see Assembly and GNU C. I
> was expecting GNU C++. That being said _STD is defined for GNU C but
> still no go.
> >
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28395
>
|
|
|
Mario Charest
05/08/2009 11:12 AM
post29038
|
> Strange that I cannot reproduce it, I create managed c++ project and add cpp
> and c file. For each of them errno defined differently,
> Try to enable full indexing in C/C++ General->Indexing in project properties.
> (It won't cache headers for full indexing which (caching) is probably case of
> the error).
> Do you include errno.h explicitly in every file that uses it?
>
I manage to create a VERY stripped down version of a project that shows the problem. Just import it, then load the file
applications/fusion/init.c and int a = errno; should be shown as a syntax error.
I looked at the Build Variables and when Show System Variables is activated I can see __cplusplus is present. That
could explain it? Because the macro resolved shows errno to be std::...... so it treats the C file as C++.
>
> Mario Charest wrote:
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:24 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah which means _STD expands to ::std::. So if you override it for C
> >> it suppose to be gone...
> >
> > In Paths and Symbols, for languages I only see Assembly and GNU C. I was
> expecting GNU C++. That being said _STD is defined for GNU C but still no go.
>
> >
> >
|
|
|
Mario Charest
05/08/2009 11:13 AM
post29039
|
Woops forgot to attach the file.
|
|
|
Elena Laskavaia
05/08/2009 11:16 AM
post29042
|
What it this format? Can you just zip it?
Mario Charest wrote:
> Woops forgot to attach the file.
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29039
|
|
|
Mario Charest
05/08/2009 11:30 AM
post29044
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:17 AM
> To: general-ide
> Subject: Re: errno
>
> What it this format?
It's 7z,
>Can you just zip it?
I will resist, 7z is so much better then zip ;-)
www.7zip.org
Or sudo apt-get install 7za
7za x <file>
You'll never look back. Lol!
>
> Mario Charest wrote:
> > Woops forgot to attach the file.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post29039
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29042
>
|
|
|
Elena Laskavaia
05/08/2009 11:36 AM
post29050
|
Why you such a pain?
sudo apt-get install 7za
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package 7za
Mario Charest wrote:
>
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: May-08-09 11:17 AM
>> To: general-ide
>> Subject: Re: errno
>>
>> What it this format?
>
> It's 7z,
>
>> Can you just zip it?
>
> I will resist, 7z is so much better then zip ;-)
>
> www.7zip.org
>
> Or sudo apt-get install 7za
> 7za x <file>
>
> You'll never look back. Lol!
>
>> Mario Charest wrote:
>>> Woops forgot to attach the file.
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post29039
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post29042
>>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29044
>
|
|
|
Mario Charest
05/08/2009 11:39 AM
post29052
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:36 AM
> To: general-ide
> Subject: Re: errno
>
> Why you such a pain?
>
Lol! You'd have to ask my mother.
Sorry made a typo it's sudo apt-get install p7zip
Just before I got this email I sent you the tgz file ;-)
|
|
|
Mario Charest
05/08/2009 11:36 AM
post29049
|
> What it this format? Can you just zip it?
>
Anything to please ;-)
> Mario Charest wrote:
> > Woops forgot to attach the file.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post29039
|
|
|
Mario Charest
07/06/2009 11:26 AM
post33185
|
> > What it this format? Can you just zip it?
> >
>
> Anything to please ;-)
>
> > Mario Charest wrote:
> > > Woops forgot to attach the file.
> > >
> > > _______________________________________________
> > > General
> > > http://community.qnx.com/sf/go/post29039
>
>
Anyone care to look at that. Now that we have start to deploy 6.4.1 everyone is complaining about this.
|
|
|
Elena Laskavaia
07/06/2009 11:35 AM
post33187
|
Sorry did not have a chance yet. But it has been on my whiteboard as todo for a while! PR #69642.
> Anyone care to look at that. Now that we have start to deploy 6.4.1 everyone is complaining about this.
>
|
|
|
Mario Charest
07/06/2009 11:49 AM
post33189
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: July-06-09 11:36 AM
> To: general-ide
> Subject: Re: errno
>
> Sorry did not have a chance yet. But it has been on my whiteboard as
> todo for a while! PR #69642.
Thanks!
>
> > Anyone care to look at that. Now that we have start to deploy 6.4.1
> everyone is complaining about this.
> >
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post33187
>
|
|
|
Elena Laskavaia
05/08/2009 11:15 AM
post29041
|
Probably error in scanner discovery (that tries to guess macro names to be defined for each file). Can you remove
manually __cplusplus var for this file?
If you can attach the project I can look at it...
>>
>
> I manage to create a VERY stripped down version of a project that shows the problem. Just import it, then load the
file applications/fusion/init.c and int a = errno; should be shown as a syntax error.
>
> I looked at the Build Variables and when Show System Variables is activated I can see __cplusplus is present. That
could explain it? Because the macro resolved shows errno to be std::...... so it treats the C file as C++.
>
>
|
|
|
Mario Charest
05/08/2009 11:40 AM
post29053
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:16 AM
> To: general-ide
> Subject: Re: errno
>
> Probably error in scanner discovery (that tries to guess macro names to
> be defined for each file). Can you remove manually __cplusplus var for
> this file?
How do you propose I do that? It's a system variable as per the IDE, I can't remove it.
> If you can attach the project I can look at it...
>
> >>
> >
> > I manage to create a VERY stripped down version of a project that
> shows the problem. Just import it, then load the file
> applications/fusion/init.c and int a = errno; should be shown as a
> syntax error.
> >
> > I looked at the Build Variables and when Show System Variables is
> activated I can see __cplusplus is present. That could explain it?
> Because the macro resolved shows errno to be std::...... so it treats
> the C file as C++.
> >
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29041
>
|
|
|
Mario Charest
04/29/2009 2:22 PM
post28379
|
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 2:13 PM
> To: general-ide
> Subject: Re: errno
>
> Check what it expands to (hover over or open Macro Expansion tool)
> If it cannot find _STD macro add it with value of <empty> to Path and
> Symbols->Symbols tab...
The project is a mix of C and C++ file but is setup as a C++ project. I just noticed the error
shows up in the .c file only and the macro does get expanted but to (::std:: __get_errno_ptr()). That`s obviously not C,
that explains it.
>
>
> Mario Charest wrote:
> > Managed.
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 2:06 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah... errno uses some non-standard macro which for some reason
> >> indexer cannot find. Qnx project or managed?
> >>
> >> Mario Charest wrote:
> >>> I've gotten use to this problem to the point I forgot to mention
> it.
> >> C++ project, IDE 6.4.1. For any line that has errno in it, the
> editor
> >> indicate the line has a syntax error.
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28371
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28373
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28374
> >
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28375
>
|
|
|
Christian Damus(deleted)
07/10/2009 10:54 AM
post33536
|
Hi, Mario,
I have investigated this problem, and I think I have a work-around for you. There definitely appears to be a bug in the
CDT indexer subsystem, but I haven't yet tracked down the root.
In any case, you should be able to restore your sanity by specifying some pre-indexed headers in your project settings.
I noticed that the sample project that you provided overrides the default setting, so you can restore that by pasting
this list of files:
cstdarg, cstdio, sys/resource.h, ctime, stdarg.h, stddef.h, sys/types.h
into the "Files to index up-front" field of the "C/C++ General -> Indexer" properties on your projects.
HTH,
Christian
|
|
|
Mario Charest
07/13/2009 4:55 PM
post33692
|
Christian,
Work around is a beauty ;-) Makes for a nice day!
-----Original Message-----
From: Christian Damus [mailto:community-noreply@qnx.com]
Sent: Friday, July 10, 2009 10:55 AM
To: general-ide
Subject: Re: errno
Hi, Mario,
I have investigated this problem, and I think I have a work-around for you. There definitely appears to be a bug in the
CDT indexer subsystem, but I haven't yet tracked down the root.
In any case, you should be able to restore your sanity by specifying some pre-indexed headers in your project settings.
I noticed that the sample project that you provided overrides the default setting, so you can restore that by pasting
this list of files:
cstdarg, cstdio, sys/resource.h, ctime, stdarg.h, stddef.h, sys/types.h
into the "Files to index up-front" field of the "C/C++ General -> Indexer" properties on your projects.
HTH,
Christian
_______________________________________________
General
http://community.qnx.com/sf/go/post33536
|
|
|
|