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

Solved multiple declarations failed compilation issue in map2annotation #28

Merged
merged 1 commit into from
Dec 11, 2016

Conversation

CharlesZ-Chen
Copy link
Contributor

@CharlesZ-Chen CharlesZ-Chen commented Dec 11, 2016

A workaround to solved the annotation-tool simultaneous declarations issue, which would cause annotation-tool insert mal-grammer annotations if source code contains simultaneous declarations.

  • add a refactor step to refactor multiple declarations in project source code

  • re-active insert annotation part

  • re-active propagation inference part

I've tested this updated map2annotation script in my local machine, and since now inference part is active, it takes quite a long time to finish (around 2 hours in my machine).

@CharlesZ-Chen CharlesZ-Chen changed the title Solved multiple declarations failed compilation error in map2annotation Solved multiple declarations failed compilation issue in map2annotation Dec 11, 2016
@martinschaef martinschaef merged commit 2c378e1 into master Dec 11, 2016
@martinschaef
Copy link
Contributor

Uhhh ... I get exceptions:

calling /Users/schaef/git/integration-test2/map2annotation/multiDeclRefactor/run-refactor.sh /Users/schaef/git/integration-test2/corpus/Sort07 failed
Traceback (most recent call last):
  File "/Users/schaef/git/integration-test2/common.py", line 35, in run_cmd
    process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/subprocess32-3.2.7-py2.7-macosx-10.10-x86_64.egg/subprocess32.py", line 825, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/subprocess32-3.2.7-py2.7-macosx-10.10-x86_64.egg/subprocess32.py", line 1574, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: '/Users/schaef/git/integration-test2/map2annotation/multiDeclRefactor/run-refactor.sh'

@CharlesZ-Chen is that a bug or do I need to update dependencies?

@CharlesZ-Chen
Copy link
Contributor Author

CharlesZ-Chen commented Dec 11, 2016

@martinschaef Oh, sorry about that. I forgot to add one calling statement in my script. Already added it in this PR:#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants