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

null Package pointer #2724

Closed
gedaiu opened this issue Dec 14, 2023 · 1 comment
Closed

null Package pointer #2724

gedaiu opened this issue Dec 14, 2023 · 1 comment

Comments

@gedaiu
Copy link
Contributor

gedaiu commented Dec 14, 2023

System information

  • dub version: DUB version 1.35.0, built on Dec 2 2023
  • OS Platform and distribution:Linux
  • compiler version DMD64 D Compiler v2.106.0

Bug Description

The void collectDependenciesRec(Package pack, int depth = 0) function get's a null package reference:

core.exception.AssertError@source/dub/project.d(475): pack is null
----------------
??:? _d_assert_msg [0x108a878]
source/dub/project.d:475 void dub.project.Project.reinit().collectDependenciesRec(dub.package_.Package, int) [0x1036b55]
source/dub/project.d:558 void dub.project.Project.reinit().collectDependenciesRec(dub.package_.Package, int) [0x1037824]
source/dub/project.d:565 void dub.project.Project.reinit() [0x10369cc]
source/dub/project.d:90 dub.project.Project dub.project.Project.__ctor(dub.packagemanager.PackageManager, dub.package_.Package) [0x1033670]
source/dub/project.d:71 dub.project.Project dub.project.Project.__ctor(dub.packagemanager.PackageManager, dub.internal.vibecompat.inet.path.NativePath) [0x103352d]
source/dub/dub.d:458 void dub.dub.Dub.loadPackage(dub.internal.vibecompat.inet.path.NativePath) [0xdf85cd]
source/dub/dub.d:452 void dub.dub.Dub.loadPackage() [0xdf8594]
source/dub/commandline.d:887 bool dub.commandline.Command.loadCwdPackage(dub.dub.Dub, bool) [0xc18fa5]
source/dub/commandline.d:1354 bool dub.commandline.PackageBuildCommand.loadSpecificPackage(dub.dub.Dub, immutable(char)[], immutable(char)[]) [0xc1bd4b]
source/dub/commandline.d:1306 void dub.commandline.PackageBuildCommand.setupPackage(dub.dub.Dub, immutable(char)[], immutable(char)[], immutable(char)[]) [0xc1b80b]
source/dub/commandline.d:1283 void dub.commandline.PackageBuildCommand.setupVersionPackage(dub.dub.Dub, immutable(char)[], immutable(char)[]) [0xc1b403]
source/dub/commandline.d:1436 int dub.commandline.GenerateCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) [0xc1c59a]
source/dub/commandline.d:1514 int dub.commandline.BuildCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) [0xc1cdd6]
source/dub/commandline.d:1604 int dub.commandline.RunCommand.execute(dub.dub.Dub, immutable(char)[][], immutable(char)[][]) [0xc1d51e]
source/dub/commandline.d:509 int dub.commandline.runDubCommandLine(immutable(char)[][]) [0xc1738b]
source/app.d:26 _Dmain [0xbf4303]
@Geod24
Copy link
Member

Geod24 commented Dec 28, 2023

Duplicate of #2696

@Geod24 Geod24 marked this as a duplicate of #2696 Dec 28, 2023
@Geod24 Geod24 closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants