GithubHelp home page GithubHelp logo

Comments (7)

garazdawi avatar garazdawi commented on June 15, 2024 2

I've long though we should have Jaro/Damerau-Levenstein in the string module in Erlang. So a PR there would be appriciated :)

from rebar3.

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 15, 2024 1

👍

In erlang_ls' els_utils.erl you'll already find references (in Erlang) to both mentioned distance algo.s: Jaro and Damerau-Levenshtein. Maybe worth a look (?)

Fwiw, I'd very much like to see this in rebar3.

from rebar3.

ferd avatar ferd commented on June 15, 2024 1

Yeah I don't have any opposition to that. The State contains a list of all live providers, and you can see them being searched in rebar_core. Be aware that you can also get commands such as rebar3 namespace cmd and that either the namespace or the command can be misspelled, but even just doing the command would be an improvement.

See

case CommandProvider of
not_found when Command =/= do ->
case Namespace of
default ->
{error, io_lib:format("Command ~ts not found", [atom_to_list(Command)])};
_ ->
{error, io_lib:format("Command ~ts not found in namespace ~ts",
[atom_to_list(Command), atom_to_list(Namespace)])}
end;
not_found when Command =:= do, Namespace =/= default ->
do([{default, do} | TargetProviders], State);
for the specific bit where it complains of things not being found.

from rebar3.

garazdawi avatar garazdawi commented on June 15, 2024 1

I've long though we should have Jaro/Damerau-Levenstein in the string module in Erlang. So a PR there would be appriciated :)

Seems like I triggered one of my collegues at Erlang/OTP team, so we will soon see a PR for this in the Erlang/OTP repo.

from rebar3.

garazdawi avatar garazdawi commented on June 15, 2024 1

Ah, I had actually already started on a PR to Erlang/OTP. I will submit what I have upstream and they can take it over or supersede it if they'd like :)

Thats what you get when you use gossip as coordination protocol :) Always good to have more implementation to take inspiration from!

from rebar3.

the-mikedavis avatar the-mikedavis commented on June 15, 2024

Ah, I had actually already started on a PR to Erlang/OTP. I will submit what I have upstream and they can take it over or supersede it if they'd like :)

from rebar3.

ferd avatar ferd commented on June 15, 2024

If we do depend on the Erlang/OTP module, we'll need to do a dynamic check to avoid failing when running on older releases. It's rather straightforward, just something we need to make an exception for.

from rebar3.

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.