intellij-emberjs
intellij-emberjs copied to clipboard
Import ember modules
Hi,
I'm trying to figure out if there's a way to get IntelliJ to recognize correctly the imports from ember.
i.e.

In the first case, it's simply that "ember" doesn't exist. In the second case, it's because emberjs addons use a specific layout, so the file actually isn't in that path.
Is there a way around it?
the second one should actually work. what version of the plugin are you on?
2017.2.1-0
Just to be clear, for the second one:

The "addon" folder is what bugs it out.
If I write
import AuthenticatedRouteMixin from 'ember-simple-auth/addon/mixins/authenticated-route-mixin';
then intellij can find it (but it's incorrect obviously).
@dwickern any idea why this might not be working?
I have the same problem on plugin version 2017.2.1-0 but it works fine on master branch 🤔
When I compare between 2017.2.1 and master: https://github.com/Turbo87/intellij-emberjs/compare/v2017.2.1...master
I see this commit: d760843614c1e766eab64a0c21cd5d80c586ce95
Seems to be it?
I was looking for a solution to this recently as well, but the closest I can find is this node module: https://github.com/arconamagi/intellij-emberjs-import-support
It resolves the annoying "curly underline" error prompt on Intellij, but does not support any autocompletion for ember modules unfortunately.
Can I close this?