Skip to content

characters offset problem #1207

@minim-sheba

Description

@minim-sheba

Describe the bug :
I'm new to QualCoder so it might just be that I'm doing something wrong (and if so, I apologise for wasting people's time!), but I haven't been able to find anything about this online. I've imported several Markdown files into QualCoder and have been having problems where QualCoder seems to be a couple of characters off in determining where things are.

Firstly, I had a problem where the last few characters of each file was showing colour as if coded, but wasn't coded - but this seems to prevent any text which includes those last two characters from showing coding colours, even though the coding seems to be applied.

Then today I was testing out the autocode function using a regex ( [^.!?]+\? ). QualCoder found the correct strings - but consistently coded 3 characters before the start of the appropriate string and ended 3 characters before the end of it.

When I ran a report on that code, it didn't show the coded text, only the regex itself (this feels like a separate issue) - but the surrounding text showed that what had been coded excluded the 3-character offset, so it would seem that the coding is correctly applied but the appearance of the coding is offset.

To Reproduce :
Open MD file in Coding view to see final characters of file marked in green, apparently coded, but with no code applied. Select text including these last few characters and apply any code - the code is applied and the count increases beside the code, but no colour highlighting can be seen.

Run autocode with Regex option turned on, using regex
[^.!?]+\?
View coded text to see offset highlighting, then run report on that code (my code was called 'question') to confirm that the code has actually been applied properly.

Expected behavior :
Code highlighting to match actual coded text
Text not coded to not be highlighted

Screenshots :

  1. End of File appearance of coding (but isn't coded - doesn't show tooltip on hover and when I run a report on the code it appears to be coded to, it isn't there):
Image

  1. Autocoded selection in Coding view - with the regex I was using, it should have selected the whole question up to and including the question mark, but you can see, the portion coded in this way (bright green highlight) has been offset by a couple of characters at start and end:
Image

  1. Reports view, reporting on the 'question' code coded using the regex in autocode - the coded text has been replaced by the regex used to autocode it, demonstrating that the offset that can be seen in the Coding view highlighting isn't reflected in the actual coded text:
Image

Desktop (please complete the following information):

  • OS: MacOS 26.2 and Windows 11
  • Version QualCoder 3.8

Additional context :
No other context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions