Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    lingongames-mikael
    @lingongames-mikael

    Hey! I've got a bit of a weird issue and I'm stumped as to how to fix it:

    I'm using Unity 2018.4.3 and Rider 2019.1.3. In my project, I have Firebase integrated. Firebase uses https://github.com/parse-community/Parse-SDK-dotNET to add newer .NET functionality (like Tasks) to older .NET standards. Somehow, Firebase's SDK takes care of the naming clashes when using the .NET 4.x scripting runtime, as I am in Unity 2018.4.3.

    In Unity the project compiles nicely, but in Rider I get an error when awaiting FirebaseApp.CheckAndFixDependenciesAsync (a method returning Task<Firebase.DependencyStatus> (extra sidenote: the Task class returned is from within Parse-SDK-dotNET, not the standard .NET runtime)):
    'Type 'System.Threading.Tasks.Task<Firebase.DependencyStatus>' is not awaitable.'

    The code functions as it's supposed to, so it seems like Rider doesn't understand what's going on between the different assemblies. If I try the stripped down code:

    public Task<DependencyStatus> InitFirebaseAsync()
    {
        return FirebaseApp.CheckAndFixDependenciesAsync();
    }

    I get the error:
    Cannot convert expression type 'System.Threading.Tasks.Task<Firebase.DependencyStatus> [Firebase.App, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]' to return type 'System.Threading.Tasks.Task<Firebase.DependencyStatus> [netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]'

    Which points to a clash between the two assemblies. How can I get Rider to figure out the difference?

    Thanks in advance!

    Ivan Shakhov
    @van800
    Does it compile in Unity? Does it compile in Rider?
    lingongames-mikael
    @lingongames-mikael
    It compiles in Unity and I can create builds. In Rider is listed as an error in solution.
    'Build Solution' in Rider does not give any errors.
    Ivan Shakhov
    @van800
    Have you tried Build-Build Solution in Rider?
    I see.
    Please try File-Invalidate caches and restart
    lingongames-mikael
    @lingongames-mikael
    Nope, still gives me the error.
    Ivan Shakhov
    @van800
    It may also well be already fixed in newest Rider release.
    You can use https://www.jetbrains.com/toolbox-app/
    and install newest Rider release/EAP and see if the issue was already solved.
    Toolbox allows easily to have several versions of Rider side by side.
    lingongames-mikael
    @lingongames-mikael
    I'll check that out, thanks!
    lingongames-mikael
    @lingongames-mikael
    Yay, it seems like the issue is fixed in 2019.3 EAP at least! I'm glad I didn't fall for the "have you tried turning it off and on again" trap, but didn't realize to try updating... :palm_tree:
    thanks for helping me out
    Flavio Engel
    @flavio.engel_gitlab

    Hey all...

    I need some help, we recently updated our project to Unity 2018 LTS (.net still 3.5) and now our unit test does not run on VisualStudio 2019. (Rider is fine)

    Any tips on how to solve this issue ?

    Jurjen Biewenga
    @JurjenBiewenga
    Have you tried updating VSTU?
    Matt Ellis
    @citizenmatt
    Tests won't run in Visual Studio, even if you're using ReSharper. Unity tests need to run in the Unity process, or the native part of the API isn't available. Rider supports this, but ReSharper doesn't, and neither does VS
    Flavio Engel
    @flavio.engel_gitlab
    Matts, not really our unit tests always ran on IDE. Only after updating to 2018LTS, stoped.
    I'll double check if VSTU is up to date.
    Jurjen Biewenga
    @JurjenBiewenga
    What kind of tests are you running?
    Flavio Engel
    @flavio.engel_gitlab
    plain C# class tests
    not talking about UnityEngine tests... those needs Unity..
    But a simple test now, just hangs in Inconclusive
    Jurjen Biewenga
    @JurjenBiewenga
    Are you running R# at all?
    Or just plain VS?
    Flavio Engel
    @flavio.engel_gitlab
    R#
    Jurjen Biewenga
    @JurjenBiewenga
    And you're using R# to run them or the VS test tools?
    Flavio Engel
    @flavio.engel_gitlab
    R#
    Jurjen Biewenga
    @JurjenBiewenga
    I doubt this is related to Unity and rather is coincidence
    But you can try adding the nuget test runner package for nunit
    And see if that helps anything temporarily
    Otherwise it's probably best to make a bug report on youtrack
    Flavio Engel
    @flavio.engel_gitlab
    image.png
    They just stay like this when running, build show no errors, console shows no errors...
    Flavio Engel
    @flavio.engel_gitlab
    image.png
    Even creating a new Unity Project, and something as simple as
    image.png
    Jurjen Biewenga
    @JurjenBiewenga
    I suggest creating a bug report on youtrack
    Flavio Engel
    @flavio.engel_gitlab
    Will try that.
    Matt Ellis
    @citizenmatt
    Yes, best thing is to contact support directly, via youtrack or support@jetbrains.com. Not sure what's going on there, tbh.
    Flavio Engel
    @flavio.engel_gitlab
    So, in the end was such a simple thing.
    Was missing enabling the Resharper Build.
    image.png
    Samuel Truman
    @Xant3s

    Hi,

    thanks for this awesome extension!
    I recently started to use Visual Studio 2019 instead of 2017.
    However, I can't find this extension in the ReShaper extension manager.

    My setup:
    Visual Studio 2019 (16.5.2) + ReShaper 2019.3.4 (+ Unity 2019.3.7f1)

    My previous setup:
    Visual Studio 2017 (15.9.21) + ReSharper 2019.2.2

    This extension was listed in the Extension Manager on my previous setup and worked great!
    These are my registered extensionen sources on both setups:
    https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/Wave_v191.0/
    https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/Wave_v11.0/

    Thanks in advance!

    Matt Ellis
    @citizenmatt
    Hi! Both of those extension sources are incorrect for 2019.3. You can delete both of them, and replace with:
    https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/Wave_v193.0/
    Samuel Truman
    @Xant3s
    Thank you so much! :)
    Matt Ellis
    @citizenmatt
    :thumbsup:
    Majeric
    @majeric
    I'm not entirely sure if this is an appropriate place to ask this question but my Jetbrains Rider cannot resolve symbols for my Unity project across the Editor / Runtime project assemblies
    Matt Ellis
    @citizenmatt
    Hey. Try to re-generate the project files - under the Assets menu in Unity. Or invalidate caches in Rider (File menu) and restart. And make sure that you’ve got Rider selected as the external tool in Unity.
    Jurjen Biewenga
    @JurjenBiewenga
    What's this new icon?
    Matt Ellis
    @citizenmatt
    What new icon?
    Jurjen Biewenga
    @JurjenBiewenga
    image.png