Skip to content
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

ConsoleUI should check for conflicts between chosen recommendations and suggestions, plus a crash #4072

Closed
JonnyOThan opened this issue Apr 3, 2024 · 3 comments · Fixed by #4085
Assignees
Labels
ConsoleUI Issues affecting the interactive console UI Enhancement New features or functionality Relationships Issues affecting depends, recommends, etc.

Comments

@JonnyOThan
Copy link
Contributor

JonnyOThan commented Apr 3, 2024

If you try to install RP-1 with the console UI, you get several "suggested mod" windows that you don't see when doing the same process on windows. This can lead to failed installs because it allows you to select conflicting suggested mods:

image

image

In that final recommend/suggest screen, when I did ctrl-A to select all of them, it crashed the dev build:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.             │
   at CKAN.RelationshipResolver.AddModulesToInstall(CkanModule[] modules)
   at CKAN.ModuleInstaller.InstallList(ICollection`1 modules, RelationshipResolverOptions options, RegistryManager registry_manager, HashSet`1& possibleConfigOnlyDirs, IDownloader downloader, Boolean ConfirmPrompt)
   at CKAN.ConsoleUI.InstallScreen.Run(ConsoleTheme theme, Action`1 process)
   at CKAN.ConsoleUI.ModListScreen.ApplyChanges(ConsoleTheme theme)
   at CKAN.ConsoleUI.ModListScreen.<>c__DisplayClass0_0.<.ctor>b__27(Object sender, ConsoleTheme theme)
   at CKAN.ConsoleUI.Toolkit.ScreenContainer.Interact(ConsoleTheme theme)
   at CKAN.ConsoleUI.Toolkit.ScreenContainer.Run(ConsoleTheme theme, Action`1 process)
   at CKAN.ConsoleUI.ConsoleCKAN..ctor(GameInstanceManager mgr, String themeName, Boolean debug)
   at CKAN.ConsoleUI.ConsoleUI.Main_(GameInstanceManager manager, String themeName, Boolean debug)
   at CKAN.CmdLine.MainClass.RunSimpleAction(Options cmdline, CommonOptions options, String[] args, IUser user, GameInstanceManager manager)
   at CKAN.CmdLine.MainClass.Execute(GameInstanceManager manager, CommonOptions opts, String[] args)
   at CKAN.CmdLine.MainClass.Main(String[] args)
@JonnyOThan JonnyOThan added Bug Something is not working as intended ConsoleUI Issues affecting the interactive console UI labels Apr 3, 2024
@HebaruSan

This comment was marked as resolved.

@HebaruSan HebaruSan added the Needs more info We need more info label Apr 3, 2024
@HebaruSan

This comment was marked as resolved.

@JonnyOThan
Copy link
Contributor Author

why does the title mention suppress_recommendations

Ah sorry, that was an assumption based on the fact that RP-1 uses that property extensively.

I'm also assuming that in the crash related to Ctrl+A, you also pressed F9 after that, since all Ctrl+A does is add some CkanModules to a HashSet, and that stack trace shows the installation moving along to the step after recommendations.

Correct - sorry for not including that; the crash occurred after pressing Ctrl-A and then F9.

@HebaruSan HebaruSan changed the title ConsoleUI doesn't seem to handle suppress_recommendations correctly ConsoleUI should check for conflicts between chosen recommendations and suggestions Apr 3, 2024
@HebaruSan HebaruSan changed the title ConsoleUI should check for conflicts between chosen recommendations and suggestions ConsoleUI should check for conflicts between chosen recommendations and suggestions, plus a crash Apr 3, 2024
@HebaruSan HebaruSan added Enhancement New features or functionality Relationships Issues affecting depends, recommends, etc. and removed Bug Something is not working as intended Needs more info We need more info labels Apr 29, 2024
@HebaruSan HebaruSan self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ConsoleUI Issues affecting the interactive console UI Enhancement New features or functionality Relationships Issues affecting depends, recommends, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants