Coder Social home page Coder Social logo

Error at EOF? about ackmate HOT 4 OPEN

protocool avatar protocool commented on August 23, 2024
Error at EOF?

from ackmate.

Comments (4)

protocool avatar protocool commented on August 23, 2024

There are files in your tree that aren't utf8 encoded.

If you need to be able to search for extended characters then you need to make sure all of your files are actually utf8 encoded.

If you don't need to search for extended characters then switch back to AckMate 1.1.1 for the time being. When I get time I'll look for a way to improve handling of extended characters so that it works correctly in all situations. Failing that, I'll rip out the utf8 support entirely.

from ackmate.

oliverl avatar oliverl commented on August 23, 2024

thx! perhaps is choking on our sql backup? is there a way of explicitly instructing ackmate to ignore certain file extensions or directories?

from ackmate.

protocool avatar protocool commented on August 23, 2024

Indeed there is - the simplest is to tell it to ignore based on file type (extension).

See http://github.com/protocool/AckMate/wiki where I give an example that configures .xib files (so that I can search them) but leaves them ignored by default.

It gets a bit tricker if you have source files called something.sql that you do want to search, but you also have backup files with the same .sql extension that you want to ignore.

In that case, you have to try to ignore based on directory names.

By default, ack can ignore named directories but not named paths. Which is to say, it can ignore all .svn directories, but you can't say "just ignore ~/deeply/nested/path/.svn".

So in the 'options' field in the AckMate you could specify --ignore-dir=backups or you could put that (on its own line) in your $HOME/.ackrc to have it standard across all of your ack searches.

Another option is that AckMate tries to use TextMate's "folder references" feature for ignoring specific paths in your project.

Unfortunately AckMate only has access to the global folder-refrences (from Preferences) so any per-project ones you have set up are unavailable.

Hope this helps.

from ackmate.

parkr avatar parkr commented on August 23, 2024

I see these too, but I do not know what files cause this. Is there a way for me to do this?

I get a HUGE list of these errors, too. Even when excluding what I think might be the problem directories. Always appears at the bottom of the search results, like this:

Problems with encoding

from ackmate.

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.