Skip to content

Semantic highlighting lost and stuck on static Lexer (purple symbols) after page reload or notebook open #472

@Hachann

Description

@Hachann

When opening an existing notebook or using "Reload page", all Wolfram Language input cells default to a generic "keyword" styling (all symbols in purple). Even after the Kernel is successfully started and cells are evaluated, the semantic highlighting (differentiation between Global, Local, and Builtin variables) is not applied to existing cells. New cells created after the Kernel is live are highlighted correctly.

Here is an example :

Image

p2 is in black because the variable p2 has not been executed yet and has just been freshly written. generateOHLC in the same line is in green because it's already defined in the notebook.

So far, this behaviour is excellent.

But, the line below clearly shows that the same symbols appear in purple and stay in purple even after execution, just because a) the line was already in .wln file or b) I hit the Reload page button.

I didn't find any CSS rule that could improve this behaviour

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