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

SEMI Baseline. Semantic extraction bug. #57

Closed
aravij opened this issue Oct 15, 2020 · 2 comments · Fixed by #68
Closed

SEMI Baseline. Semantic extraction bug. #57

aravij opened this issue Oct 15, 2020 · 2 comments · Fixed by #68
Assignees
Labels
bug Something isn't working

Comments

@aravij
Copy link
Contributor

aravij commented Oct 15, 2020

Add name of resource in try statement to its semantic.

@aravij aravij self-assigned this Oct 15, 2020
@aravij aravij added the bug Something isn't working label Oct 15, 2020
@lyriccoder
Copy link
Member

See this file:
NbValidatioTransaction.txt

Traceback (most recent call last):
  File "D:/git/veniq/veniq/dataset_collection/validation.py", line 69, in <module>
    opport = _print_extraction_opportunities(
  File "D:/git/veniq/veniq/dataset_collection/validation.py", line 18, in _print_extraction_opportunities
    filtered_extraction_opportunities = filter_extraction_opportunities(
  File "D:\git\veniq\veniq\baselines\semi\filter_extraction_opportunities.py", line 24, in filter_extraction_opportunities
    return list(extraction_opportunities_filtered)
  File "D:\git\veniq\veniq\baselines\semi\filter_extraction_opportunities.py", line 21, in <lambda>
    and semantic_filter(extraction_opportunity, statements_semantic, block_statement_graph),
  File "D:\git\veniq\veniq\baselines\semi\_semantic_filter.py", line 16, in semantic_filter
    method_block_statement_graph.traverse(
  File "D:\git\veniq\veniq\ast_framework\block_statement_graph\block.py", line 48, in traverse
    self._traverse_function(self._graph, self._id, on_node_entering, on_node_leaving)
  File "D:\git\veniq\veniq\ast_framework\block_statement_graph\_nodes_factory.py", line 50, in _traverse_graph
    on_node_entering(destination_node)
  File "D:\git\veniq\veniq\baselines\semi\_semantic_filter.py", line 51, in on_node_entering
    self._on_statement_entering(node)
  File "D:\git\veniq\veniq\baselines\semi\_semantic_filter.py", line 81, in _on_statement_entering
    statement_semantic = self._statements_semantic[statement.node]
KeyError: <ASTNode node_type: Try statement, node_index: 2334>

@acheshkov acheshkov changed the title Semantic extraction bug. SEMI Baseline. Semantic extraction bug. Oct 20, 2020
@aravij
Copy link
Contributor Author

aravij commented Oct 20, 2020

@lyriccoder the bug you found is not connected with described here previously. I will move you comment to another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants