Skip to content

Unable to substitute a link to itself + outgoing link #20

@konard

Description

@konard
Image
konard@MacBook-Pro-Konstantin ~ % clink '() ((21: 21 21))' 
(21: 0 0) ↦ (21: 21 21)
(1: 1 1)
(18: 1 21)
(19: 1 20)
(20: 20 20)
(21: 21 21)
konard@MacBook-Pro-Konstantin ~ % clink '((($i: 1 21)) (($i: $s $t) ($i 20)))'
konard@MacBook-Pro-Konstantin ~ % clink '((($i: 1 21)) (($i: $s $t) ($i 20)))'
Unhandled exception: System.OutOfMemoryException: Array dimensions exceeded supported range.
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.Grow(Int32 capacity)
   at System.Collections.Generic.List`1.AddWithResize(T item)
   at Foundation.Data.Doublets.Cli.LinksExtensions.EnsureCreated[TLinkAddress](ILinks`1 links, Func`1 creator, TLinkAddress[] addresses) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/LinksExtensions.cs:line 26
   at Foundation.Data.Doublets.Cli.LinksExtensions.EnsureCreated[TLinkAddress](ILinks`1 links, TLinkAddress[] addresses) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/LinksExtensions.cs:line 10
   at Foundation.Data.Doublets.Cli.AdvancedMixedQueryProcessor.CreateOrUpdateLink(ILinks`1 links, Link`1 link, Options options) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/AdvancedMixedQueryProcessor.cs:line 669
   at Foundation.Data.Doublets.Cli.AdvancedMixedQueryProcessor.ApplyAllPlannedOperations(ILinks`1 links, List`1 operations, Options options) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/AdvancedMixedQueryProcessor.cs:line 339
   at Foundation.Data.Doublets.Cli.AdvancedMixedQueryProcessor.ProcessQuery(ILinks`1 links, Options options) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/AdvancedMixedQueryProcessor.cs:line 173
   at Program.<>c.<<Main>$>b__0_1(String db, String queryOptionValue, String queryArgumentValue) in /home/runner/work/link-cli/link-cli/Foundation.Data.Doublets.Cli/Program.cs:line 68
   at System.CommandLine.Handler.<>c__DisplayClass4_0`3.<SetHandler>b__0(InvocationContext context)
   at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext context)
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions