intellij-emberjs icon indicating copy to clipboard operation
intellij-emberjs copied to clipboard

Import ember modules

Open vendethiel opened this issue 8 years ago • 8 comments

Hi,

I'm trying to figure out if there's a way to get IntelliJ to recognize correctly the imports from ember.

i.e. image

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?

vendethiel avatar Jul 24 '17 10:07 vendethiel

the second one should actually work. what version of the plugin are you on?

Turbo87 avatar Jul 24 '17 10:07 Turbo87

2017.2.1-0

vendethiel avatar Jul 24 '17 11:07 vendethiel

Just to be clear, for the second one:

image

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).

vendethiel avatar Jul 24 '17 11:07 vendethiel

@dwickern any idea why this might not be working?

Turbo87 avatar Jul 24 '17 11:07 Turbo87

I have the same problem on plugin version 2017.2.1-0 but it works fine on master branch 🤔

dwickern avatar Jul 24 '17 14:07 dwickern

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?

vendethiel avatar Jul 24 '17 14:07 vendethiel

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.

alankyshum avatar Jan 27 '19 00:01 alankyshum

Can I close this?

vendethiel avatar Sep 05 '19 15:09 vendethiel