DavidWells / atom-react-autocomplete

(Deprecated/Maintainer wanted) Atom Plugin for autocompleting react components & their props
https://atom.io/packages/atom-react-autocomplete
55 stars 4 forks source link

It doesn’t work ... #11

Open googol7 opened 7 years ago

googol7 commented 7 years ago

It's a great idea but for me it doesn’t work and I can’t figure out why not.

I’m on:

Atom 1.13.0 x64 on macOS Sierra 10.12.2 https://atom.io/packages/react 0.16.2 https://atom.io/packages/atom-react-autocomplete 0.1.10

.importjs.json contains

{
    "lookupPaths": [
        "view-components/src/component"
    ]
}

completions.json contains for example:

{
  "components": {
    "battery-level.jsx": {
      "attributes": [
        "percentage"
      ],
      "props": {
        "percentage": {
          "type": {
            "name": "number"
          },
          "required": false,
          "description": "",
          "defaultValue": {
            "value": "100",
            "computed": false
          }
        }
      }
    },
    ...

package.json contains

{
  "scripts": {
    "generate": "rc-autocomplete"

and the command npm run generate works

Atom was restarted after the installation of the package but the atom-react-autocomplete neither autocompletes the names of the components nor the properties of the components.

It would be nice if atom-react-autocomplete had some debugging options or if it was a bit more verbose on why it wouldn’t work.

Nopzen commented 7 years ago

Im running in to same issues would be nice to figure what we are doing wrong, @DavidWells Any idea ? :)

piti118 commented 7 years ago

This may or may not help you. I initially couldn't get it to work as well. I did the following and it works.

Hope it helps

rohan-paul commented 6 years ago

Same problem with me, just cant get it to autocomplete after following all the steps ... Atom 1.19.5 on Ubuntu 16.04

tujoworker commented 6 years ago

You may check if the following settings are enabled on the autocomplete-plus package:

screen shot 2018-05-05 at 21 50 08

Then restart Atom.