forge44
forge44
JCHJava Community | Help. Code. Learn.
Created by Jflash on 10/21/2024 in #java-help
having issues with Cannot invoke "java.util.ArrayList.size()" because "this.listOfMicronutrients" is
Since that’s how Reference Types work.
16 replies
JCHJava Community | Help. Code. Learn.
Created by Jflash on 10/21/2024 in #java-help
having issues with Cannot invoke "java.util.ArrayList.size()" because "this.listOfMicronutrients" is
Or if both objects are set equal to one another, both will only reference the same object (or in this case null value) as long as one isn’t set to a new object using the new keyword (or set = to some other object), in which case they’ll no longer reference the same object.
16 replies
JCHJava Community | Help. Code. Learn.
Created by Jflash on 10/21/2024 in #java-help
having issues with Cannot invoke "java.util.ArrayList.size()" because "this.listOfMicronutrients" is
But yea Kyo’s right
16 replies
JCHJava Community | Help. Code. Learn.
Created by Jflash on 10/21/2024 in #java-help
having issues with Cannot invoke "java.util.ArrayList.size()" because "this.listOfMicronutrients" is
Are you familiar with how scope works? Initializing it in one class doesn’t mean you have access in another, even if they have the same name.. hard to glean much from a couple of screenshots.
16 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
yea
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I don't think so, but I've programmed in C for cuda, and Java before, so I'm not sure if something else was wrong
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
whoops
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
No description
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
No description
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I'll try looking for a separate install location
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
ok haha
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
sure dotnet --info returns:
C:\Users\woodrow73>dotnet --info
.NET SDK:
Version: 8.0.402
Commit: 70aa751718
Workload version: 8.0.400-manifests.b6724b7a
MSBuild version: 17.11.4+37eb419ad

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.402\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.8
Architecture: x64
Commit: 08338fcaa5

.NET SDKs installed:
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.402 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
C:\Users\woodrow73>dotnet --info
.NET SDK:
Version: 8.0.402
Commit: 70aa751718
Workload version: 8.0.400-manifests.b6724b7a
MSBuild version: 17.11.4+37eb419ad

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.402\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.8
Architecture: x64
Commit: 08338fcaa5

.NET SDKs installed:
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.402 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
No description
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
no I just removed then re-added dotnet, it's possible that the dotnet it was pointing to was different before and after changing it, but I doubt it
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
ah
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
yes
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I think I downloaded Nuget before the issue happened, and manually added it into my windows path/environment variable, so I'm guessing that Rider was mistakenly using the wrong version of Nuget somehow or caused some issue I don't understand. I'm re-adding it to my path/environment system variable to recreate the issue, and restarting Rider- weird, it still works, maybe that wasn't the issue. Here's what I did before it was solved: 1. remove nuget from both path variables 2. (probably incorrect step): remove dotnet from both path variables 3. use command: dotnet add package NUnit from CMD, inside an NUnit project (the CMD might've been opened before removing dotnet from path, hence why the dotnet command worked) Then it was solved even inside newly created Solutions. I've been re-installing Rider a few times, maybe if I re-install Rider when Nuget is set in my environment variables it'll recreate the issue. I don't know.
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I got it working! Thank you both- I had to remove Nuget from my system/user path variables
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I'll try anything :b I created that file in my solution folder and rebuilding + reloading my projects, I didn't observe changes.
91 replies
CC#
Created by forge44 on 10/9/2024 in #help
✅ Unit Testing in Rider not working
I also tried a 2023 version of Rider to no avail (I used the latest version for the tests above)
91 replies