# VS2013 - editor failing to resolve symbols

**URL:** <https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296>\
**Category:** Windows\
**Created:** [August 11, 2015, 3:57pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296 "2015-08-11T15:57:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 11, 2015, 3:57pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/1 "2015-08-11T15:57:01Z")

</div>

![](http://snag.gy/kYLh3.jpg)

&nbsp;

See those annoying red-underscores!

I'm choosing to&nbsp;not copy modules locally, as (apart from anything else)&nbsp;some of the modules are mine and I want to edit the originals.&nbsp;

I'm sure this has come up before, but I can't find the discussion. &nbsp;

Does anyone know how to persuade Visual Studio 2013 to resolve symbols properly in JUCE module source files?&nbsp;

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [August 11, 2015, 4:01pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/2 "2015-08-11T16:01:00Z")

</div>

This type of thing comes up every few months.

It’s Intellisense not picking things up right because of juce’s design (unity build modules).

Best ignored or disable intellisense’s real time warning/error reporting.

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 11, 2015, 4:09pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/3 "2015-08-11T16:09:56Z")

</div>

I've got a bunch of (also unity build) modules of my own. &nbsp;It's pretty damn annoying. &nbsp;I'm going to see if VS2015 works any better...&nbsp;

I wonder if there's any way of persuading it to work. &nbsp;It has the primary .cpp file in the project, so I'm buggered if I know why it refuses to follow the include structure and work this all out...&nbsp;

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [August 11, 2015, 4:43pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/4 "2015-08-11T16:43:09Z")

</div>

Iirc, VS2015 is a tad better, but not by much…

If you find a way to coax any recent VS versions’ Intellisense to play nice - you’ll definitely have to share!

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 11, 2015, 5:23pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/5 "2015-08-11T17:23:22Z")

</div>

Ok - so observations on a new project loaded in VS2013.&nbsp;

- Classes start out with red-errors.&nbsp;
- Peeking at the definition resolves most errors in VS2013 for a specific symbol.&nbsp;
- Setting the files to copy locally, or not, fails to resolve the problem.&nbsp;

If I build a simple unity build project from scratch in VS2013 I don't seem to be able to recreate the problem.&nbsp;

---

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [August 11, 2015, 5:34pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/6 "2015-08-11T17:34:08Z")

</div>

I solved this problem in the Introjucer by providing an absolute path for JUCE modules. Apparently Intellisense in VS2013 doesn't like relative paths

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 11, 2015, 6:46pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/7 "2015-08-11T18:46:46Z")

</div>

Well, that's an avenue to explore...

(exploring...)

But doesnt' appear to solve the problem for me :/

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 11, 2015, 9:30pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/8 "2015-08-11T21:30:57Z")

</div>

I've reported it to Microsoft ... not expecting a quick fix mind you, so if anyone has any other ideas for a workaround, I'm all ears (metaphorically).&nbsp;

---

<div class="post-metadata">

**Author:** ![IvanC](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ivanc/32/685_2.png) [@IvanC](https://forum.juce.com/u/IvanC)\
**Post date:** [August 12, 2015, 5:12am UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/9 "2015-08-12T05:12:11Z")

</div>

Did you try also to remove the intellisense database in your project folder, to see if VS2013 recreates it properly ? I remember I did this a few times on VS2008... And do you have the update 5 of VS2013 ?

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 12, 2015, 7:50am UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/10 "2015-08-12T07:50:19Z")

</div>

I'll try it shortly, though it's a&nbsp;brand new test project, and i have the same problem with VS2015.&nbsp;

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 12, 2015, 2:03pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/11 "2015-08-12T14:03:54Z")

</div>

SOLVED IT!

Kinda ...&nbsp;

Put **using namespace ::juce** at the top of the file and it all works fine ... I presume there's no bad side effect of duplicating the using namespace stuff?&nbsp;

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [August 12, 2015, 5:43pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/12 "2015-08-12T17:43:00Z")

</div>

Unfortunately there _is_ a bad side effect - VS2015 throws a warning "juce namespace is using itself".

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 12, 2015, 8:08pm UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/13 "2015-08-12T20:08:00Z")

</div>

2013 seems cool with it. &nbsp;And it'll probably fix the issue with CLion as well which hates includes inside namespaces.

I'll have an experiment with 2015 at some point and see if there's some way of getting the warning to go away. &nbsp;Though a warning like that seems better than red-ink all over everythign like it's broken :)

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [August 24, 2015, 9:48am UTC](https://forum.juce.com/t/vs2013-editor-failing-to-resolve-symbols/15296/14 "2015-08-24T09:48:00Z")

</div>

Okay -

I reported this problem to both JetBrains (Resharper C++) and Microsoft.&nbsp;

JetBrains have now replied to say it's more or less (their words)&nbsp;fixed! And I've just done a quick check and it looks good.&nbsp;So if you're using Visual Studio and JUCE I'd highly recommend trying the demo of Resharper C++ v1.1 and seeing if it works for you.&nbsp;

Microsoft are yet to say anything.

&nbsp;
