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

Windows: cannot run bears in the tutorial #1832

Closed
niraj8 opened this issue Mar 6, 2016 · 3 comments
Closed

Windows: cannot run bears in the tutorial #1832

niraj8 opened this issue Mar 6, 2016 · 3 comments

Comments

@niraj8
Copy link

niraj8 commented Mar 6, 2016

I tried initialising the .coafile using the command
coala --files=src/\*.c --bears=SpaceConsistencyBear --save

here's the output after running the above command.

|   1| #include[ERROR][05:18:00] 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:

Here's the output from coala -L DEBUG command -
Debug Output

@Makman2
Copy link
Member

Makman2 commented Mar 6, 2016

Confirmed

We need to settle this before the next release.

@AbdealiLoKo
Copy link
Contributor

I think this is again a problem that we do not open the file in utf8.

Would adding that *~ utf-8 ~* thing on top fix this ? (Its meant for source code, not other files i guess ?)
If not, We need to add encoding="utf-8" for all places we use open().

@AbdealiLoKo
Copy link
Contributor

Just saw the traceback and realized this is a pyprint issue because we added the dot character for spaces

@sils sils added this to the 0.5.0 milestone Mar 7, 2016
Makman2 pushed a commit that referenced this issue Mar 7, 2016
When printing the bullet-character that represents a whitespace, a
`UnicodeEncodeError` can be thrown and is thrown on Windows systems
since Windows uses by default cp1252 or a similar codec that can't
handle this character.

Fixes #1832.
Makman2 added a commit that referenced this issue Mar 7, 2016
When printing the bullet-character that represents a whitespace, a
`UnicodeEncodeError` can be thrown and is thrown on Windows systems
since Windows uses by default cp1252 or a similar codec that can't
handle this character.

Fixes #1832.
Makman2 pushed a commit that referenced this issue Mar 9, 2016
When printing the bullet-character that represents a whitespace, a
`UnicodeEncodeError` can be thrown and is thrown on Windows systems
since Windows uses by default cp1252 or a similar codec that can't
handle this character.

Fixes #1832.
@rultor rultor closed this as completed in b2e6b17 Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants
@AbdealiLoKo @sils @Makman2 @niraj8 and others