question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing entry in expected array when --cache flag is used

See original GitHub issue

Issue type

Bug Report:

Prerequisites

  • Can you reproduce the issue?: yes
  • Did you search the repository issues?: yes
  • Did you check the forums?: yes
  • Did you perform a web search (google, yahoo, etc)?: yes

Description

expected entry disappears when cache option is turned on

Steps to Reproduce

  1. Paste following grammar to online version
  2. Type SELECT a in Test textarea (space at the end is important)
  3. It shows Line 1, column 10: Expected ",", "AS", "FROM", or Alias but end of input found. which is perfect!
  4. Select Use results cache checkbox at the bottom of the page.
  5. Now error looks like: Line 1, column 10: Expected ",", "AS", or Alias but end of input found.. The “FROM” part is missing, but it should still be present.

GRAMMAR:

start = SELECT _ c:columns f:from? {return {c, f};}

from
 = _ FROM _ x:identifier {return x}

columns
  = c:column _ "," _ cs:columns {return [c, ...cs];}
  / c:column {return [c]}

column
  = i:identifier alias? {return i}
  
alias
  = _ ("AS"i _)? aliasName
  
aliasName "Alias"
  = identifier

identifier "Identifier"
  = !keywords x:namechar+ {return x.join('')}

keywords
  = SELECT / FROM

SELECT
  = "SELECT"i

FROM
  = "FROM"i !namechar

namechar
  = [a-zA-Z]

_ "whitespace"
  = [ \t\n\r]*

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Minguncommented, May 15, 2019

Simplified case:

start = !a 'b' / a;
a = 'a';

With no input gives:

cache error
off Line 1, column 1: Expected “a” or “b” but end of input found.
on Line 1, column 1: Expected “b” but end of input found.
0reactions
StoneCyphercommented, Feb 3, 2020

Ok.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.12.0 Milestone · GitHub
missing entry in expected array when --cache flag is used bug. #612 opened ; "unexpected" rule feature. #607 opened ; Full Unicode support,...
Read more >
Usage and convention differences between missing, nothing ...
missing is used to represent missing values in a statistical sense, ... having a value), but rather a "flag" that one can pass...
Read more >
Caching guidance - Azure Architecture Center | Microsoft Learn
Learn how caching can improve the performance and scalability of a system by copying frequently accessed data to fast storage close to the...
Read more >
Runtime context - AWS Cloud Development Kit (AWS CDK) v2
Not all context values are cached values from your AWS environment. Feature flags are also context values. You can also create your own...
Read more >
Configuring Infinispan caches
Infinispan replicates all cache entries on all nodes in a cluster ... If necessary use the PERMANENT flag for caches to survive restarts....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found