Cudatext: D lexer: Access violation on Win10 x64

Created on 7 Aug 2021  路  5Comments  路  Source: Alexey-T/CudaText

When you open the following D file in CudaText (v1.140.5.1 with D lexer [2020.04.23] installed) on Win10 x64 you get an "Access violation" error. Haven't tried other systems.

sample.d

module sample;

class Sample
{
    int sampleFunc()
    {
    }
}
bug lexer

All 5 comments

AV is due to complex code-tree nodes config (in lexer). I will correct the lexer too, seems.

Lexer is just updated!

Thanks for the quick fix.
But now it seems that the D lexer (2021.08.07) does not detect functions anymore that have arrays as parameters. This was working before.

void sampleFunc(int[] num)
{
}

Unrelated to previous bug (new issue?):
I noticed the D lexer (2021.08.07) fails to find classes that inherit from other classes. Even if the base class is commented out. Enums are working though.

// not found
class Sample1 : Base
{
}

// not found
class Sample2 // : Base
{
}

// not found
class Sample3 /* : Base */
{
}

// found
enum Sample4 : Base
{
}

Seems fixed.
Screenshot from 2021-08-08 02-43-58

I will update the lexer in 10minutes.
feedback is welcome.

Awesome! It's working now. Thank you so much again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EchedeyLR picture EchedeyLR  路  3Comments

Alexey-T picture Alexey-T  路  3Comments

JairoMartinezA picture JairoMartinezA  路  7Comments

Alexey-T picture Alexey-T  路  7Comments

charliewales picture charliewales  路  4Comments