-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Build Solution: Multiple Issues Encountered (Java Requirement, NU1008 Error) #309
Comments
I'm sorry that you've had a difficult time setting up a machine for developing against the toolkit. We did invest initially in what we thought would be a good contributors guide, but reviewing it again it's clear that the path to the "setup your machine" is not as discoverable as it could be. I've created #314 which improves the discoverability (and does some updates to the guide). Due to the complexity of the integrations we support, there are a lot of runtimes required, and Java + Maven is one such example. I'm unsure as to why you're hitting NU1008, unless you've modified a csproj to include a Lines 9 to 17 in 2ef1ba9
We don't include a version on the references to the packages, as the version is dictated by the |
I just pulled the latest version from Some information that can help:
|
I suggest you read in PR (#334) from above, it hasn't yet been merged into main. Aaron has created a great instruction on how to get it setup, that might help you forward. |
I suppose you meant #314 ? I read the PR and I saw nothing that could fix my issue. I already contributed to this project before and it worked just fine. Including the For your issue regarding the requirements to have npm or Java or any other tool installed, I think you can unload the projects that trigger this issue. I don't remember having this issue but unloading a project should allow you to compile the entire project without error. |
Anf for the other error, @aaronpowell already explained why |
@Odonno the logs seem to suggest that the error is it can't find .NET 8, and I don't see it listed as an installed SDK. Can you verify if you have the .NET 8 SDK installed? |
I reinstalled .NET 8. Still the same issue. If you clean your nuget local cache and try a |
I've just cloned onto a new machine and ran Can you capture the whole output of the |
|
I'm pretty stumped, I'll have to do some more investigation into what might be the problem. The log seems to suggest that it can't find the packages on nuget.org, or that it's not even trying to look at nuget.org. I can see that it's aware of the |
Yes, your setup-instructions to use VS Code and DevContainers helped a lot :) StreamJsonRpc.RemoteInvocationException: Request nominateProject failed with message: Cannot read properties of undefined (reading 'size')
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
at Microsoft.VisualStudio.ProjectSystem.PackageReferences.NuGetRestoreService.NominateAsync(ProjectRestoreInfo restoreData, IReadOnlyCollection`1 inputVersions, CancellationToken cancellationToken) And tells me to contact the maintainers. Here is file: ProjectSystemServerFault_cf2ef281-b6f1-4bab-b0a8-20de4e38e766.failure.txt If it helps @Odonno and you, I did |
Is that error in the VS Code logs? |
|
Can you raise an issue on https://github.com/microsoft/vscode-dotnettools with the logs and the extension/vscode version. |
Doing some testing, the only way I can reproduce this is by disabling the nuget.org source in the @Odonno - what do you get when you run
|
I'd love to help, but honestly man, I don't even understand the issue, so I wouldn't know where to begin. |
Me either! My guess is something crashed in the extension when it comes to project loading. They have a bug template on the repo that'd guide through providing info that team would need to debug further. I'll setup a new machine with a fresh VS Code and see if I can repo when I have a chance. |
ok, I'll give it a go when I got time. |
Oh. I think you have pinpoint the problem. NuGet is disabled. I am not sure why... Let me see. |
Ok. I enabled it and it now works. I still don't know why it was disabled in the first place... Anyway, thank you very much @aaronpowell |
I'm going to go ahead and close this issue now. I've also merge #314 so hopefully onboarding is smoother in the future. |
But I still got an issue? Feels kinda weird that you would close this. I don’t mean to be a jerk, but I’m trying to contribute. I am unable to build and seeking help and now the you close the issue?? |
Apologies, I lost track of who had outstanding issues. Are you still having the problem with the C# extension? Can you confirm it's the latest version of the extension and the latest VS Code? Admittedly, I'm not sure there's something that we can resolve on our end as the error in the logs is coming out of the project system for the C# DevKit extension. |
No worries. I imagine it can be difficult to be maintainer some times :) Yes, I still experience the issue, but I closed my eyes and ears and pressed forward. Currently, I'm struggling with:
My current strategy is to ignore errors and push forward, but it's not a fun experience. If you don't mind, check out https://github.com/terle/aspire-communitytoolkit/tree/main, and tell me what I've missing in the publicApi-files. Thanks. Happy holidays 🎄 |
@terle , Check https://github.com/CommunityToolkit/Aspire/blob/main/docs/public-api.md for Public Api files stuff. @aaronpowell, Should we add a reference to the public-api in contribution guide? |
@terle First off, let me say a big thank you for continuing to persevere in what is a frustrating experience for you and could very easily end up in the "this is too hard" basket and dissuade someone from contributing. Your continued feedback helps us make it a better experience for the next person who wants to contribute. I've created issues #339 to decrease the impact of Java on building the codebase, and #340 on handling the public API files. Do you know which unit tests are hanging? The most common reason I've seen tests hanging is when there is a wait condition on a resource that is never met, but this is only in the integration tests now the unit tests, so if you have an idea of which one(s) are the problem I can look more into them. |
Describe the bug
I attempted to build the solution to contribute to the project but encountered several blocking issues. These issues make it difficult to proceed, especially as they are not documented in the contribution guidelines.
Regression
Not applicable. This is my first attempt to build the solution.
Steps to reproduce
Expected behavior
The solution should build successfully following the provided setup instructions, enabling contributors to proceed with contributions.
Screenshots
IDE and version
VS 2022, Rider
IDE version
VS:17.12.2, Rider: 2024.3
Nuget packages
Additional context
I’ve spent around 2 hours troubleshooting these issues but have been unable to progress. The build issues are unexpected and undocumented, making it hard for new contributors to get started. Please advise on the following:
-Should I install Java/Maven for this project?
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: