Code Monkey home page Code Monkey logo

cps_spa_detection_tool's People

Contributors

apanichella avatar ivdinten avatar

Watchers

 avatar

cps_spa_detection_tool's Issues

[P2] Improve detecting encoding.

Issue with decoding has been solved with #19, though the detecting the encoding of the file could be more efficient. There is an odd issue between using with open() to read files and using Antlr4's FileStream. Where it seems that in some cases with open() works with a specific encoding and FileStream doesn't (or at least it throws an exception I cannot seem to catch, breaking the encoding check function).

Low priority as the fix in #19 seem to work for the cases checked so far.

[P1] Bug: "line 2:0 mismatched input"

After commit 6d2dc93 (which is linked to #3), this error appears (as shown it appears two times):

line 2:0 mismatched input '""' expecting {<EOF>, 'alignas', 'asm', 'auto', 'bool', 'char', 'char16_t', 'char32_t', 'class', 'const', 'constexpr', 'decltype', 'double', 'enum', 'explicit', 'extern', 'float', 'friend', 'inline', 'int', 'long', 'mutable', 'namespace', 'operator', 'register', 'short', 'signed', 'static', 'static_assert', 'struct', 'template', 'thread_local', 'typedef', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t', '(', '[', '*', '&', '~', AndAnd, '::', ';', '...', Identifier}

line 2:0 mismatched input '""' expecting {<EOF>, 'alignas', 'asm', 'auto', 'bool', 'char', 'char16_t', 'char32_t', 'class', 'const', 'constexpr', 'decltype', 'double', 'enum', 'explicit', 'extern', 'float', 'friend', 'inline', 'int', 'long', 'mutable', 'namespace', 'operator', 'register', 'short', 'signed', 'static', 'static_assert', 'struct', 'template', 'thread_local', 'typedef', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t', '(', '[', '*', '&', '~', AndAnd, '::', ';', '...', Identifier}

[P1] Blocking issue for qgroundcontrol project.

Traceback (most recent call last):
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\main.py", line 56, in <module>
    main()
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\main.py", line 26, in main
    search.main(patterns.MAGICAL_WAITING_NUMBER)
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 267, in main
    initial_search()
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 87, in initial_search
    count, results = process_file(relative_filename, file_encoding)
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\search.py", line 108, in process_file
    return ast_cpp_antlr.parse_file(abs_path, encoding, current_project.pattern_name)
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\ast_cpp_antlr.py", line 58, in parse_file
    result_interest, number_results = translation_unit.find_identifier(term)
  File "C:\Users\Imara\Documents\GitHub\CPS_SPA_Detection_Tool\dt\ast_impl\cpp\types.py", line 18, in find_identifier
    for identifier in func_body.find_identifier(id_name):
AttributeError: 'tuple' object has no attribute 'find_identifier'

Process finished with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.