You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ile "xxx/lib/python3.10/site-packages/lark/lexer.py", line 674, in lex
raise UnexpectedToken(token, e.allowed, state=parser_state, token_history=[last_token], terminals_by_name=self.root_lexer.terminals_by_name)
lark.exceptions.UnexpectedToken: Unexpected token Token('QMARK', '?') at line 11, column 1.
Expected one of:
* OUTPUT
* $END
* MODULE
* _CPP_COMMENT_NL
* RESOURCE
* AT
* PARAM
* TARGETSCOPE
* VAR
Previous tokens: [Token('_CPP_COMMENT_NL', '\n')]
it also fails when if is in new line:
@description('The location where the resources will be created.')
paramlocationstring = resourceGroup().locationresourceuserAssignedIdentity'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' =
if (location == 'eastus') {
name: 'userassignedfortest'location: location
}
outputresultstring = userAssignedIdentity.id
error:
lark.exceptions.UnexpectedToken: Unexpected token Token('_CPP_COMMENT_NL', '\n') at line 4, column 95.
Expected one of:
* LSQB
* LBRACE
* IF
Previous tokens: [Token('EQUAL', '=')]
The text was updated successfully, but these errors were encountered:
Describe the issue
Checkov fails to parse conditionals in bicep
Example Value
Error from checkov:
it also fails when
if
is in new line:error:
The text was updated successfully, but these errors were encountered: