Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ECS Intellisense malfunctioning? (Work-Around)

Discussion in 'Entity Component System' started by ArkyonVeil, Apr 5, 2020.

  1. ArkyonVeil

    ArkyonVeil

    Joined:
    Dec 20, 2013
    Posts:
    14
    Greetings fine folks.

    So I've been taking a few shots into learning ECS for the purpose of spawning shameful amounts of objects with blissfully smooth framerates.

    In fact, development was going smoothly, VS's intellisense was working normally, even allowing me to complete a component and as system with everything working as intended.

    However, a few hours past and when I tried to access the Components for modifying their data and adding new behavior, I discovered that Intellisense instead of giving me correct information about the contents of the structs, it just appeared to treat the structs as bizarre arrays and didn't show any relevant information. This even occurs in other C# files that worked normally before.

    I've searched the internet for solutions, but it seemed like this problem isn't too widespread.

    I'd greately appreciate if a solution to this problem came around, ECS already is difficult enough as it is. With Intellisense not working properly, that will just make it even worse to develop to.

    Thanks for reading!

    Annotation 2020-04-05 234607.png
     
    DreamersINC and BackgroundMover like this.
  2. shion33

    shion33

    Joined:
    Oct 21, 2019
    Posts:
    14
    Did you just update visual studio? Because the same thing happened when I updated to 16.5.1. Although it's a workaround, I re-downloaded 16.4.5 and it works again.
     
    ArkyonVeil likes this.
  3. ArkyonVeil

    ArkyonVeil

    Joined:
    Dec 20, 2013
    Posts:
    14
    Well I did update it actually. Intellisense wasn't working at all so I was forced to do it. After it updated, it worked for a while before this time malfunctioning I believe.

    I'll try that out and see if it works. I'll let you know if this solution works for me.

    Thanks a lot.
     
  4. ArkyonVeil

    ArkyonVeil

    Joined:
    Dec 20, 2013
    Posts:
    14
    Well, I couldn't find a way to downgrade. Apparently its a one way process and as far as I know isn't easily available to downgrade and retry.

    In either case, thanks to your suggestion, I opted to use my VS 2017 which I still had lying around and wouldn't you know it, it shows the correct intellisense.

    Thanks! :D
     
  5. jbevain

    jbevain

    Microsoft

    Joined:
    Feb 22, 2012
    Posts:
    141
    Hey,

    Jb here from the VS Tools for Unity team.

    Interesting. Let me have a look, I might have to reach out to our C# team but I'll get back to you.

    Which version of Unity are you running this with?

    Thanks for reporting this.

    Jb
     
  6. Richay

    Richay

    Joined:
    Aug 5, 2013
    Posts:
    81
    My intellisense inside Entities.ForEach lambdas works perhaps 25-33% of the time. Latest VS2019 Community, Unity 2020.1 (also in 2019.3), always latest packages.
     
  7. ArkyonVeil

    ArkyonVeil

    Joined:
    Dec 20, 2013
    Posts:
    14
    Tested with Unity 2019.3
    Used most of the latest entity previews for it.
    As for Visual studio, last I verified that problem it was version 16.5.2 of VS 2019
     
  8. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    209
    Unity 2020.1.b5.3485 Personal
    Entities 0.9.0-preview.6
    Visual Studio Tools for Unity 4.5.1.0
    Microsoft Visual Studio Community 2019 Version 16.5.3

    More:
     
  9. ysxdead

    ysxdead

    Joined:
    Sep 1, 2019
    Posts:
    4
    Interestingly the same issue happens with Visual Studio Code, getting incorrect Intellisense on Entities.ForEach params - seems to show the methods of a List/Array type.
    Unity 2020.1.0b5.3485 Personal
    Entities 0.9.0 preview 6
    Visual Studio Code Editor 1.1.3
    VSCode 1.44.0
     
  10. SenseEater

    SenseEater

    Joined:
    Nov 28, 2014
    Posts:
    84
    Intellisense consistently fails to bring up options for me within Entities.ForEach ( )

    Unity ; 2019.3.7
    VS Code Editor Package : 1.2.0
    VS Code : 1.44.0
     
  11. jbevain

    jbevain

    Microsoft

    Joined:
    Feb 22, 2012
    Posts:
    141
    Thanks for your answers folks. I'm working with the team to get this fixed. I'll post an update when I have news!
     
    R0man and DreamersINC like this.
  12. jbevain

    jbevain

    Microsoft

    Joined:
    Feb 22, 2012
    Posts:
    141
    Alright folks I've checked with the team, we already have a fix ready for this you can try it out in the 16.6 Preview branch of Visual Studio and 8.6 Preview of Visual Studio for Mac.
     
    June1111 and DrViJ like this.
  13. DrViJ

    DrViJ

    Joined:
    Feb 9, 2013
    Posts:
    154
    Thank you, I checked, in 16.6 works preview 4 works perfectly!
     
  14. sl1nk3_ubi

    sl1nk3_ubi

    Joined:
    Aug 21, 2019
    Posts:
    15
    Hi, any ETA on when this is going to be released to the main branch?
    We have many developers here who are going to be hitting this issue as we've started switching over to VS 2019 and/or Rider, and we can't realistically switch everyone to a preview version of VS
     
    Last edited: May 6, 2020
  15. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    The 16.6 came out but it turns out it breaks the Unity project for some reason. Here's the thread I just opened regarding this issue
     
  16. djsell

    djsell

    Joined:
    Aug 29, 2013
    Posts:
    77
    @jbevain how about VS Code? Intellisense just completely fails for me inside Entities.ForEach
     
    hardcodednumber and TheGabelle like this.