Coder Social home page Coder Social logo

Comments (8)

rrrene avatar rrrene commented on August 29, 2024

That does not sound good. Could you provide a bit more context? Are there any special Unicode characters in any of the files, for example in strings or comments?

from credo.

murphy1312 avatar murphy1312 commented on August 29, 2024

same error for me as well,

(UnicodeConversionError) invalid encoding starting at <<180, 115, 32, 116, 111, 32, 111, 112, 101, 110, 32, 115, 97, 118, 101, 32, 97, 115, 32, 100, 105, 97, 108, 111, 103, 10, 32, 32, 32, 32, 32, 32, 124, 62, 32, 112, 117, 116, 95, 114, 101, 115, 112, 95, 104, 101, 97, 100, 101, 114, ...>>
    (elixir) lib/string.ex:1634: String.to_char_list/1
    lib/credo/code.ex:62: Credo.Code.to_tokens/1
    lib/credo/check/consistency/space_around_operators/without_space.ex:16: Credo.Check.Consistency.SpaceAroundOperators.WithoutSpace.property_values_for/2
    lib/credo/check/consistency/helper.ex:152: anonymous fn/4 in Credo.Check.Consistency.Helper.collect_property_values/3
    (elixir) lib/enum.ex:1473: Enum."-reduce/3-lists^foldl/2-0-"/3
    lib/credo/check/consistency/helper.ex:144: Credo.Check.Consistency.Helper.property_list_for/3
    lib/credo/check/consistency/helper.ex:138: Credo.Check.Consistency.Helper.create_property_tuples/3
    (elixir) lib/enum.ex:1088: Enum."-map/2-lists^map/1-0-"/2

from credo.

sashaafm avatar sashaafm commented on August 29, 2024

@rrrene I'm sorry I never came back to you.

It was a special unicode character in a comment. Today I had it again. @murphy1312 that's probably the same problem for you.

@rrrene Do you think it's possible to find the line where the error is happening and tell the user? This is really bad for people like me whose native language has a lot of special unicode chars and from time to time will write comments in their language (I try to stick to English because of this type of problem, but when you're pissed off at something it's hard to remember ahah)

from credo.

rrrene avatar rrrene commented on August 29, 2024

@sashaafm Absolutely. Can you provide an example comment containing some of these characters so I can write a test against it?

from credo.

sashaafm avatar sashaafm commented on August 29, 2024

@rrrene yes, of course, the problem I had today was because of a comment similar to this:

# WARNING: NÃO ESTÁ A FUNCIONAR
(WARNING: IT DOESN'T WORK)

from credo.

murphy1312 avatar murphy1312 commented on August 29, 2024

for me it was the " ´ " character - 180 - in
#"tell the most browser´s to open"

from credo.

rrrene avatar rrrene commented on August 29, 2024

This should finally be fixed in v0.3.10 ... Can you confirm?

from credo.

hykw avatar hykw commented on August 29, 2024

The same error had occurred for me too, but it's been fixed in v0.3.10!

from credo.

Related Issues (20)

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.