Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception analyzing file ('NoneType' object has no attribute 'value') #289

Closed
fabioz opened this issue Mar 30, 2021 · 0 comments
Closed
Labels
bug Something isn't working robotframework-ls

Comments

@fabioz
Copy link
Collaborator

fabioz commented Mar 30, 2021

Error analyzing file:

*** Settings ***
Resource  ./all.robot
Resource    another


*** Test Cases ***
My Test 1
  My Keyword 1
  My Keyword
  [Teardown]

Nothing here
My Test 2
  My Keyword 1
  My Keyword
  FOR    ${element}    IN    @{LIST}
      Log    ${element}
      
  END
Nothing here
  File "x:\vscode-robot\robotframework-lsp\robotframework-ls\src\robotframework_ls\server_api\server.py", line 133, in _threaded_lint
    analysis_errors = code_analysis.collect_analysis_errors(completion_context)
  File "x:\vscode-robot\robotframework-lsp\robotframework-ls\src\robotframework_ls\impl\code_analysis.py", line 115, in collect_analysis_errors
    for keyword_usage_info in ast_utils.iter_keyword_usage_tokens(ast):
  File "x:\vscode-robot\robotframework-lsp\robotframework-ls\src\robotframework_ls\impl\ast_utils.py", line 433, in iter_keyword_usage_tokens
    usage_info = create_keyword_usage_info(stack, node)
  File "x:\vscode-robot\robotframework-lsp\robotframework-ls\src\robotframework_ls\impl\ast_utils.py", line 457, in create_keyword_usage_info
    keyword_name = token.value
AttributeError: 'NoneType' object has no attribute 'value'
@fabioz fabioz added bug Something isn't working robotframework-ls labels Mar 30, 2021
@fabioz fabioz closed this as completed in 1ccbc4e Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working robotframework-ls
Projects
None yet
Development

No branches or pull requests

1 participant