Search Unity

Using custom global defines -- monodevelop not updating intellisense

Discussion in 'Scripting' started by J_P_, Aug 4, 2015.

  1. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,027
    In gmcs.rsp and smcs.rsp, I have

    Code (csharp):
    1. -define:DEFAULT
    When it compiles (only tested editor so far), it behaves as expected (DEFAULT included, DEBUG not included). But monodevelop still thinks DEBUG is active and treats DEFAULT like it doesn't exist.

    Screen Shot 2015-08-04 at 4.05.06 PM.png

    Tried restarting monodevelop/unity, deleting csproj/sln files, but it doesn't help. Monodevelop 4.0.1, Unity 4.6.2, OSX 10.10.3.

    Another question -- how can I add inactive global defines to Monodevelop intellisense? Would be nice for it to auto-complete those even when they're not active.

    edit: for my first question, I noticed I can use PlayerSettings.SetScriptingDefineSymbolsForGroup() to add it to the Player settings and monodevelop does respect that, although it seems to make monodevelop unresponsive for a while...

    Monodevelop always seems to think #DEBUG is active even though it doesn't compile. Maybe some third party asset is messing with that particular define? How would I hunt that down?
     
    Last edited: Aug 4, 2015