Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

When searching for a package to install, exact name is excluded from the list #984

Closed

Description

@felzix

From @felzix on August 27, 2017 14:54

Prerequisites

Description

When searching for a package to install, using the package's exact name excludes that package from the list.

Steps to Reproduce

  1. Go to the Install tab in Settings.
  2. Enter in, verbatim, react.

Expected behavior:
The react package is in the list of packages I could install. It should probable be the first one.

Actual behavior:

The react package isn't in the list at all. However, if I only enter in reac (less the t), the react package shows up.

reac

react

Reproduces how often: [What percentage of the time does it reproduce?]

always

Versions

atom: 1.19.3
mac os sierra 10.12.6

Copied from original issue: atom/atom#15464

Activity

  1. felzix commented on Aug 30, 2017

    @felzix
    Author

    From @Ben3eeE on August 28, 2017 5:58

    Thank you for reaching out!

    This issue belongs in the settings-view repository. Can you please open the issue there if one does not already exist, thank you 🙇‍♂️

  2. jlvivero commented on Sep 27, 2017

    @jlvivero

    I believe this bug is not on the settings view but on apm itself.

    When I run the command ./apm search "react" --json=true --packages=true > log.txt
    (and after trimming the non important information) I get the following list:

    [{"name":"re-re-re-react",
    {"name":"react-builder",
    {"name":"fancy-react",
    {"name":"atom-react-mf-snippets",
    {"name":"react-snippets",
    {"name":"react-es6-snippets",
    {"name":"react-es7-snippets",
    {"name":"atom-react-intl-snippets",
    {"name":"react-storybook-snippets",
    {"name":"react-generatr",
    {"name":"react-redux-react-native-snippets",
    {"name":"react-function-to-class",
    {"name":"react-tiny-snippets",
    {"name":"fz-atom-react-snippet",
    {"name":"bdd-react-snippets",
    {"name":"react-redux-es6-snippets",
    {"name":"react-snippets-for-atom",
    {"name":"html-shorcuts-react",
    {"name":"react-developer-snippets",
    {"name":"atom-react-instyle",
    {"name":"react-redux-es7-flow-snippets",
    {"name":"react-native-snippets",
    {"name":"react-redux-atom-snippets",
    {"name":"react-esnext-snippets",
    {"name":"modern-react-snippets",
    {"name":"atom-react-snippets",
    {"name":"atom-react-native-style",
    {"name":"badass-react-snippets",
    {"name":"react-component-preview",
    {"name":"puddletown-react-snippets",

    As you can see, there's no react package coming directly from apm (sorry for the bad formatting)

    I forgot to include that apm -v gives me the following:
    apm 1.18.8
    npm 3.10.10
    node 6.9.5 x64
    python 2.7.11+
    git 2.7.4

    I'm running this on ubuntu 16.04

  3. jasonrudolph commented on Jan 2, 2018

    @jasonrudolph
    Contributor

    We've rolled out some improvements that should hopefully resolve this issue. I've included a couple before-and-after examples below.

    I'm going to close this issue, but if you continue to observe problems searching for a package by exact name, please let us know.

    Atom UI

    Before

    image

    After

    image

    apm

    Before

    $ apm search react --json=true --packages=true | jq ".[] | .name"
    "re-re-re-react"
    "atom-react"
    "fancy-react"
    "react-builder"
    "react-snippets"
    "react-redux-react-native-snippets"
    "atom-react-mf-snippets"
    "react-generatr"
    "react-function-to-class"
    "react"
    "atom-react-intl-snippets"
    "react-es6-snippets"
    "react-es7-snippets"
    "basic-react-snippets"
    "fz-atom-react-snippet"
    "bdd-react-snippets"
    "html-shorcuts-react"
    "react-tiny-snippets"
    "react-snippets-for-atom"
    "react-redux-es6-snippets"
    "es6-react-redux-snippets"
    "atom-react-instyle"
    "atom-react-snippets"
    "atom-react-native-style"
    "react-redux-snippets"
    "react-storybook-snippets"
    "react-developer-snippets"
    "modern-react-snippets"
    "react-native-components"
    "react-native-snippets"
    

    After

    $ apm search react --json=true --packages=true | jq ".[] | .name"
    "react"
    "re-re-re-react"
    "fancy-react"
    "react-builder"
    "react-snippets"
    "react-redux-react-native-snippets"
    "atom-react-mf-snippets"
    "react-generatr"
    "react-function-to-class"
    "atom-react-intl-snippets"
    "react-es6-snippets"
    "react-es7-snippets"
    "fz-atom-react-snippet"
    "bdd-react-snippets"
    "html-shorcuts-react"
    "react-tiny-snippets"
    "react-snippets-for-atom"
    "react-redux-es6-snippets"
    "atom-react-instyle"
    "atom-react-snippets"
    "atom-react-native-style"
    "react-redux-snippets"
    "react-storybook-snippets"
    "react-developer-snippets"
    "modern-react-snippets"
    "react-native-components"
    "react-native-snippets"
    "react-native-snippets-horse"
    "egghead-react-snippets"
    "badass-react-snippets"
    
  4. self-assigned this
    on Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions