auto-import not working
drorp24 opened this issue · 5 comments
Hi,
It's been several months now that the auto-import does not work for me at all.
It doesn't show anything in the dropdown that opens when I key in an import statement.
It doesn't show anywhere. It's as if I've never installed it, as if it's not there at all.
It used to work, but stopped quite some time ago.
Tried re-installing, configuring it etc to no avail.
Interestingly, when I uninstalled then re-installed it today as I've tried so many times, it did seem to work for a fraction of second: it did appear in the drop down list and suggested the right source when I started typing an import statement. But then it disappeared and never showed again in spite of many more tries.
All other extensions (I have quite several) work very well.
It's really hard to work without this extension so appreciate your help!
My auto-import install information:
Version: 1.5.3
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=steoates.autoimport
auto-import settings (User & Workspace identical)
"autoimport.autoComplete": true
"autoimport.doubleQuotes": false
"autoimport.filesToScan": "**/*.{ts,tsx}"
"autoimport.showNotifications": true
"autoimport.spaceBetweenBraces": true
"autoimport.useSemiColon": false
another setting of interest:
"javascript.suggest.enabled": true
My entire user settings:
{
"editor.fontSize": 15,
"editor.minimap.enabled": false,
"importCost.mediumPackageColor": "#777777",
"importCost.smallPackageColor": "#777777",
"prettier.jsxSingleQuote": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"prettier.semi": false,
"window.zoomLevel": 0,
"editor.formatOnSave": true,
"gitProjectManager.displayProjectPath": true,
"gitProjectManager.baseProjectsFolders": ["/Users/drorpoliak/projects"],
"workbench.colorTheme": "One Dark Pro",
"breadcrumbs.enabled": true,
"editor.cursorSmoothCaretAnimation": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"emojisense.languages": {
"markdown": true,
"javascript": true,
"plaintext": {
"markupCompletionsEnabled": false,
"emojiDecoratorsEnabled": false
},
"git-commit": true
},
"emmet.triggerExpansionOnTab": true,
"editor.acceptSuggestionOnEnter": "smart",
"auto-rename-tag.activationOnLanguage": ["javascript"],
"workbench.tree.horizontalScrolling": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"autoimport.showNotifications": true,
"editor.tabCompletion": "on"
}
My VsCode:
Version: 1.41.1
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:57:51.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.0.0
Please let me know if there's any other info I could provide to help address the issue.
Thanks so much in advance.
It seems to be really broken. I haven't configured it at all and it sometimes works, It usually imports from libraries but it hardly ever imports from my own files - not even from the same directory.
Updated 3 years ago.... giving up.
Thanks for the response. I wonder then why nobody talks about it. I've been googling auto-import and saw nothing about it being broken.
@drorp24 And so have I. It seems to work for at least someone and it has 5 stars. I've just switched to https://marketplace.visualstudio.com/items?itemName=pmneo.tsimporter and my very first experience is positive. That's all I know.
(to the author: sorry for promoting a different tool, but it looks like you stopped working on it).
Thanks for the tip! Will certainly try it!
Auto import not working for me also.
When I try to use command 'Scan node_modules for imports' I see this error at the right bottom:
Command 'Scan node_modules for imports' resulted in an error (command 'extension.scanNodeModules' not found)
Extension even disappeared from bottom status bar.(((
Re-installations didn't help.
This is very useful extension. Please fix it.