[Scons-users] MSVSProject Intellisense search paths
William Blevins
wblevins001 at gmail.com
Sat Apr 16 09:38:42 EDT 2016
Inline
On Sat, Apr 16, 2016 at 1:17 PM, Albert Gil <albert.gil at happycomputing.cat>
wrote:
> Hi!
>
> If I'm not wrong, what Sergio is trying to say is that, although the list
> of paths in CPPPATH is copied into the NMakeIncludeSearchPath field of
> the .vcxproj file created by the MSVSProject() function, its format is not
> recognized by the Intellisense. And the whole point of doing this copy is
> to be recognized by the Intellisense, right?
> Is that right Sergio?
>
My hope is that he will come back with how Intellisense is supposed to
handle relative paths. I expect there is either a missing element in the
MSVCProject output, but I'm not an MSVC guru.
> And if you put absolute paths in your CPPATH, then it does work, right?
>
> So, the building works in both cases, but CPPATH values should be set with
> absolute values to be useful in NMakeIncludeSearchPath?
> To me, it doesn't have sense... I'm sure that Intellisene works with
> relative paths.
> So, it sounds like a format problem of relative paths?
> Not sure...
>
>
I certainly don't expect relative paths to be an issue, but if relative
paths are at play, then I imagine the base directory needs to be added to
some path variable. I'm not sure if this is supposed to happen in the
project file. It seems that if the files are relative, then hardcoding this
base path in the project file undermines the point.
>
> Albert
>
>
> On Fri, Apr 15, 2016 at 11:45 AM, Sergio Basurco <
> sergio.b at coherentsynchro.com> wrote:
>
>> Hi,
>>
>> It very likely is, however if it is the case that Intellisense requires
>> absolute paths, or that the relative paths are not intuitively relative to
>> the VS project, then maybe Scons could internally generate them as absolute
>> within MSVSProject.
>>
>> These are the paths that go into the the NMakeIncludeSearchPath tag in
>> .vcxproj files.
>>
>> I will try to find out what are the Intellisense assumptions and come
>> back in case it's useful. Maybe it's an issue that was only related to my
>> installation, I don't know if any other Scons user has found Intellisense
>> to fail within the VS IDE.
>>
>> Best!
>>
>> El 15-Apr-16 a las 11:37 AM, William Blevins escribió:
>>
>> I'm not sure this is SCons related. Seems to be a question about
>> Intellisense relative path assumptions.
>> On Apr 15, 2016 9:22 AM, "Sergio Basurco" <sergio.b at coherentsynchro.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> I'm creating a MSVSProject from Scons. This project has some other
>>> libraries as dependencies and everything is working well in compile time.
>>>
>>> However, in the IDE, Intellisense fails to find all the includes of the
>>> external dependencies (the own project's include files are found). And
>>> in order to solve this I had to change all paths used for building in
>>> scons to absolute paths.
>>>
>>> Apparently Intellisense search paths needed to be absolute? or else
>>> maybe they were not relative to the .vcxproj directory but some other
>>> directory?
>>>
>>> I have no issues now but would like to know why this was necessary.
>>>
>>> Best!
>>>
>>> --
>>> Sergio Basurco,
>>> Coherent Synchro
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>
>>
>> _______________________________________________
>> Scons-users mailing listScons-users at scons.orghttps://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>> --
>> Sergio Basurco,
>> Coherent Synchro
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
>
> --
> Albert Gil
> HappyComputing <http://happycomputing.cat/>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160416/c2bdb896/attachment.html>
More information about the Scons-users
mailing list