Semantic source indexing failed

Semantic source indexing failed. 2562 of 2586 eligible files indexed (99%).

I couldn’t recover the previous indexing checkpoint. This chat can query an existing Source Index, but it has no control to estimate, start, or resume indexing. I also couldn’t verify the exact resume controls in the CodeBot documentation. No paid embeddings were enabled or generated.

so how do i let it resume or rebuild that source indexing?

Hi Marc,

leave the same project open, check that CodeBot → Settings → General → Semantic source search is enabled, then start a new CodeBot chat and let it connect. The Delphi plugin will retry the missing files automatically. It reuses cached embeddings for unchanged code, so you can leave the existing index in place. Any passages still missing embeddings can use credits.

If it stops again, please send us the detailed error line immediately below the Semantic source indexing failed file count, plus the local time and time zone. You can redact file paths. That will let us match the failure to the server logs or identify a file the IDE couldn’t read.

1 Like

yep indeed, it recovers at this moment

it stops though on a binary dfm:

Semantic source indexing failed. 2565 of 2586 eligible files indexed (99%).

S:\P4\macp_LAB\\Labels\Label.dfm: File is not text.

Perfect. i have identified a gap on the client side, where requesting embeddings did not seamlessly reauthenticate as needed, if a request failed due to a lost session (eg timeout or server restart). This most likely explains the errors. I’m getting that fixed now and will get a new build out soon.

That is a separate bug; it seems the indexer doesn’t know about .dfm files. I’ll get that fixed as well, in the same round. Thanx!

1 Like

I also forgot that .dfm files of course can indeed be binary ;). That’s handled now too. New build coming up in a few.

yeah normally we don’t use bin dfm but it seems some escaped the rule :slight_smile:

1 Like

.85 is up

1 Like

installed .85 but indexing kinda hangs for a second on every .dfm…

but it got through the indexing phase

When you say hangs, it just takes longer than expected, but resumes eventually?

While a .dfm is showing in the indexing progress, can you still type in the editor or open a menu, or does the whole IDE stop responding for that second? i.e. does it stall main()?

no no, the visual progress shows the .dfm name, the indexing ‘waits’ for a second and then proceeds

like it’s reading or analysing more then pas files…

ps: i just asked codebot to come up with a better helper function that already exists and asked the same question in both codebot and xAI (grok), and they both came up with literally the exact same answer… i didn’t expect that

Curious, yes. how large/complex was the helper? i’d not be too surprosed if it was e.g. trivial, but…

simple one, array of string and array of variant to fill field values of a mem dataset

>References: Delphi Florence Documentation, Open Array Parameters; Data Abstract Documentation, Inserting a Row (Step 3), for the Append → FieldByName → Post sequence.

generated code:

type
  TDAFieldValue = record
    Name: string;
    Value: Variant;
  end;

function FieldValue(const AName: string; const AValue: Variant): TDAFieldValue;
begin
  Result.Name := AName;
  Result.Value := AValue;
end;

procedure HelperAddRecord(const ATable: TDADataTable; const AFields: array of TDAFieldValue);
begin
  ATable.Append;
  try
    for var I := Low(AFields) to High(AFields) do begin
      ATable.FieldByName(AFields[I].Name).Value := AFields[I].Value;
    end;
    ATable.Post;
  except
    ATable.Cancel;
    raise;
  end;
end;

Guess there’s only so many ways to write this :wink:

.87 is out, and improves the embedding workflow, both the (seemingly) stuck display, and the network traffic for the embeddigs.