Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete not working. #53

Open
shahzeb1 opened this issue Apr 2, 2017 · 7 comments
Open

Autocomplete not working. #53

shahzeb1 opened this issue Apr 2, 2017 · 7 comments

Comments

@shahzeb1
Copy link

shahzeb1 commented Apr 2, 2017

Tried entering /**[ENTER] while over a JS function in a .js file, but it doesn't do anything.

Pressing the key shortcuts does work.

@tgandrews
Copy link
Owner

Thanks for the report. I can replicate the issue when not in beta mode. Please enable beta mode in the settings.

The beta version will replace the current implementation soon so would be good if you do have problems with it. It has pretty decent test coverage and uses an AST instead of regexes so should be more reliable.

@sookoll
Copy link

sookoll commented May 18, 2017

Same here, setting beta: true did not help. My config:

  core:
    disabledPackages: [
      "autocomplete-html"
    ]
    openEmptyEditorOnStart: false
    telemetryConsent: "no"
    titleBar: "custom"
  editor:
    fontSize: 12
    invisibles: {}
    showIndentGuide: true
    showInvisibles: true
    tabLength: 4
  "exception-reporting":
    userId: "8a33a06b-9c13-94ed-5451-9337205919c5"
  jslint:
    hideOnNoErrors: true
  welcome:
    showOnStartup: false
  "xml-formatter":
    endLineCharacter: "LF (\\n)"
  "atom-easy-jsdoc":
    beta: true

@tgandrews
Copy link
Owner

I may be missing something here. Here is what I'm trying to recreate it.
working

@tgandrews
Copy link
Owner

tgandrews commented May 19, 2017

Re-reading the issue. Currently writing /** does nothing but start a comment. Only the short cut keys extract the data from the function.

Please plus 1 this if you want the enter to extract the function information from foo.

/**[Enter]
function foo(a,b) {
}

@sookoll
Copy link

sookoll commented May 19, 2017

I Also notice that in my case, even shortcuts do not create comment block (Mac OS), so it might related with that also (in mac, is it ctrl+shift+d or cmd+shift+d?).

edit: pardon, my bad. Needed to rebuild package. Now shortcut works, but autocomplete still not.

@tgandrews
Copy link
Owner

Reopening to add this feature.

@brettz9
Copy link

brettz9 commented Jun 30, 2018

FWIW, one can get some autocomplete behavior with https://atom.io/packages/docblockr (though it adds more info, based on what is below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants