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

coala throws exception #2180

Closed
arafsheikh opened this issue May 26, 2016 · 2 comments
Closed

coala throws exception #2180

arafsheikh opened this issue May 26, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@arafsheikh
Copy link
Member

File on which coala was run: http://pastebin.com/S0XHsD3u
coala version: 0.7.0.dev20160522201645

coala -f=com.coala.core/src/com/coala/core/handlers/RemoveMarkers.java -b=CheckstyleBear -L DEBUG
[WARNING][19:38:04] The default coafile '.coafile' was not found. Ignoring it.
[DEBUG][19:38:05] Platform Linux -- Python 3.5.1+, pip 8.1.1, coalib 0.7.0.dev20160522201645
Executing section Default...
[DEBUG][19:38:05] Files that will be checked:
/home/debugger/git/coala-eclipse/com.coala.core/src/com/coala/core/handlers/RemoveMarkers.java
[DEBUG][19:38:05] Running bear CheckstyleBear...
[DEBUG][19:38:05] Running 'java -jar /home/debugger/.local/share/coala-bears/CheckstyleBear/checkstyle.jar -c /home/debugger/.local/share/coala-bears/CheckstyleBear/google.xml /home/debugger/git/coala-eclipse/com.coala.core/src/com/coala/core/handlers/RemoveMarkers.java'

com.coala.core/src/com/coala/core/handlers/RemoveMarkers.java
|  15| [ERROR][19:38:06] An unknown error occurred. This is a bug. We are sorry for the inconvenience. Please contact the developers for assistance. During execution of coala an exception was raised. This should never happen. When asked for, the following information may help investigating:
[DEBUG][19:38:06] Exception was:
Traceback (most recent call last):

  File "/usr/local/lib/python3.5/dist-packages/coalib/coala_main.py", line 89, in run_coala
    log_printer=log_printer)

  File "/usr/local/lib/python3.5/dist-packages/coalib/processes/Processing.py", line 635, in execute_section
    log_printer),

  File "/usr/local/lib/python3.5/dist-packages/coalib/processes/Processing.py", line 494, in process_queues
    ignore_ranges)

  File "/usr/local/lib/python3.5/dist-packages/coalib/processes/Processing.py", line 230, in print_result
    file_diff_dict)

  File "/usr/local/lib/python3.5/dist-packages/coalib/output/ConsoleInteraction.py", line 401, in print_results
    color=color)

  File "/usr/local/lib/python3.5/dist-packages/coalib/output/ConsoleInteraction.py", line 332, in print_affected_files
    sourcerange)

  File "/usr/local/lib/python3.5/dist-packages/coalib/output/ConsoleInteraction.py", line 422, in print_affected_lines
    sourcerange)

  File "/usr/local/lib/python3.5/dist-packages/coalib/output/ConsoleInteraction.py", line 187, in print_lines
    tab_dict, FILE_LINES_COLOR, sourcerange.end.column)

  File "/usr/local/lib/python3.5/dist-packages/coalib/output/ConsoleInteraction.py", line 142, in print_spaces_tabs_in_unicode
    tab_count = tab_dict[index]

KeyError: 1
@gitmate-bot
Copy link
Collaborator

Thanks for reporting this issue!

Your aid is required, fellow coalaian. Help us triage and solving this issue!

CC @sils1297, @AbdealiJK

@sils sils added this to the 0.7 milestone May 26, 2016
@SanketDG SanketDG self-assigned this May 27, 2016
@sils sils removed the process/wip label Jul 13, 2016
@sils
Copy link
Member

sils commented Jul 13, 2016

@SanketDG this is important and was scheduled for the last release. Can you look into this ASAP as it's also related to your code? We shouldn't ship with such bugs. Next release is this week and this needs fixing :/

SanketDG added a commit that referenced this issue Jul 14, 2016
When there is just one tab in one line, it throws an error because
it cant find the sourcerange end. This corrects it by decreasing
the sourcerange column end by 1.

Fixes #2180
SanketDG added a commit that referenced this issue Jul 17, 2016
When there is just one tab in one line, it throws an error because
it cant find the sourcerange end. This corrects it by decreasing
the sourcerange column end by 1.

Fixes #2180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants