springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

node-modules is hidden #46

Open murbanowicz opened 8 years ago

murbanowicz commented 8 years ago

Hi,

On gitter few people confirmed the same issue. This plugin is causing an issue with node-modules folder... no idea why

pintomau commented 8 years ago

Can confirm

springeye commented 8 years ago

@mariaczi @crybat This is not a problem.I deliberately hide his show in the idea.

murbanowicz commented 8 years ago

@henjue I think it's causing issues with some autocompletion and also, sometimes you want to take a look at some files inside node_modules to understand what's going on in background. Can you unhide it ?

yin-fan commented 8 years ago

我刚开始接触vue,今天也遇到了这个问题。刚开始以为是自己设置的有问题,花了2个小时的时间也没找到原因。最后无奈卸载webstorm重新安装的过程中才发现是vue for idea插件引起的。在学习过程中我会查看node_modules里面的源码,这个问题可以修复吗?

DannyFeliz commented 8 years ago

I have the same issue

springeye commented 8 years ago

@yin-fan 收到,下一班我加入设置项。是否显示node_modules

minwe commented 8 years ago

搞了半天问题出在这个插件身上,我还以为是 WebStorm 测试版的 bug。

tcstory commented 8 years ago

i met the same problem

Chalkin commented 8 years ago

I can confirm. I have the same issue. node_modules is hidden when vue-for-idea is activated. This is really anyoing.

Version: PHPStorm 2016.2

ccamarat commented 8 years ago

Confirming for WebStorm 2016.1 / 2016.2

piotros commented 8 years ago

This is significant bug. Vue plugin shouldn't make such a big side effects as hiding important folders.

Chalkin commented 8 years ago

Definetely a bug. This makes the plugin unusable!

0neSe7en commented 8 years ago

Not only node_modules folder. I create a folder and a file in this folder, and then I delete the new file, the folder is hidden.

civet commented 8 years ago

It affected all projects not only for vue projects!

iliuyt commented 8 years ago

还没有修复么?我搞了两个多小时才发现是插件问题

steve-rhodes commented 8 years ago

please remove this "feature"!

aledmb commented 8 years ago

@henjue can we know why you do that? makes your plugin unusable for me.

Glutnix commented 8 years ago

Hiding a folder without explanation is frustrating. Forcing it to be excluded should be the decision of the plugin user, not the plugin author.

The Node.js plugin doesn't do this, so why should the Vue plugin? The PHP Composer support in PhpStorm doesn't do this with the vendor folder either (though it does put all the external libraries in the External Libraries part of the Project tree).

aledmb commented 8 years ago

Yeah, this is obviously a bug that the developer refuses to look into.

Too bad.

Glutnix commented 8 years ago

After trying to find the code that hides the folder in this plugin, I can't see it consciously being being removed. It really looks like a bug. That said I don't know the inner workings of JetBrains/IDEA.

For the record, @henjue, I contacted JetBrains support about node_modules disappearing, and they were the ones who sent me a link to this GitHub issue, and within 12 hours too! They know this plugin is doing this weird thing.

💀

I've uninstalled this plugin, and have switched to John Kelly's Vue.js plugin. It has more stars.

denofevil commented 8 years ago

@henjue we're receiving quite a lot of complaints about this issue via JetBrains support channels. We’d really appreciate if you fix this problem as well as incorrectly closed #28, otherwise we'll be considering removing this plugin from the plugin repository.

sanex3339 commented 8 years ago

any news?

denofevil commented 8 years ago

The plugin has been removed from the repository due to reasons stated in my previous comment and due to no cooperation from the author. Please use John Kelly's Vue.js plugin

se-panfilov commented 8 years ago

Weird stuff, moving to John Kelly's Vue.js plugin

Also I've mention this bug on stackoverflow: How to integrate WebStorm with Vue.js

rootsli commented 8 years ago

这个BUG还没修复吗?我也找了半天,还以为是webstorm设置问题/(ㄒoㄒ)/~~ @henjue

chancezeus commented 8 years ago

Just a note for anyone more at home in idea plugin development. In the branches pw and develop there is a setting in the plugin.xml file: <treeStructureProvider implementation="io.j99.idea.vue.structure.VueTreeStructureProvider"/> This line references the file plugin/src/main/java/io/j88/idea/vue/structure/VueTreeStructureProvider.java. On lines 29, 33 and 34 is the offending code. If these lines are to be removed, I think it is best to remove both the plugin.xml line and file, since the file won't do anything anymore.

Just my 2 ct.

piotros commented 8 years ago

@chancezeus if you've found a problematic code it may be a good idea to fork this repository. Consider this ;)

piotros commented 8 years ago

@denofevil as I see this plugin is published again without fixing reported bug: https://plugins.jetbrains.com/plugin/9188 :confused:

denofevil commented 8 years ago

@piotros, thank you for the update.

@henjue, please resolve issues mentioned above, or that upload will be removed too

callumacrae commented 7 years ago

Seems that latest version has also broken code completion and identation, too :/

denofevil commented 7 years ago

@piotros, the plugin approval was removed, new versions (and re-uploads) won't get it until this issue is resolved

amcsi commented 7 years ago

The reason this plugin is not viable is because there's a huge blocker bug in it at the moment which must be fixed.

wspl commented 7 years ago

@amcsi Sorry, it seems that I misunderstood

friendge commented 7 years ago

Still an issue as of 10.0.74.. :(

RafaelPlantard commented 7 years ago

I had to remove the plugin.

mqliutie commented 7 years ago

我靠,终于找到了,原来是这个插件的原因啊?

asolopovas commented 7 years ago

Looks like this plugin is not going to be fixed any time soon unfortunately for vue developers that prefer using IDEA. @henjue, probably hasn't got time for it anymore or lost an interest.

callumacrae commented 7 years ago

@asolopovas: Check out this alternative, it's much better: https://github.com/postalservice14/vuejs-plugin (just be aware of https://github.com/postalservice14/vuejs-plugin/issues/8)

asolopovas commented 7 years ago

@callumacrae I am using this one. It has its own issues. It does not detect default export when components are imported. Because export default is within script tags. Sass does not work properly in components.

callumacrae commented 7 years ago

@asolopovas: If you put type="text/babel" on the script tags and rel="stylesheet/scss" on the style tags, it works. It sucks, but it's better than the problems with this plugin.

asolopovas commented 7 years ago

@callumacrae agree

dickeylth commented 7 years ago

This problem confused me for really serveral months, and I blamed to webstorm before...Really cann't agree with https://github.com/henjue/vue-for-idea/issues/46#issuecomment-227340288, so I have to drop this plugin...

yola-0316 commented 7 years ago

楼上的各位,其实webstorm自身有个功能,在文件夹上右键 Mark Director as -> Excluded 。这个功能可以把文件夹从 webstorm 的文件加载中排除掉。目的就是为了避免加载大文件过慢的问题。

所以,插件的作者可以把这个默认隐藏去掉了,或者可配置。

@mqliutie

wvezey commented 7 years ago

Having the same issue with 2106.3, installed on Nov. 22. I do not have the Vue plugin installed. Turns out that when Javascript Support is enabled, the node_modules directory is hidden. Hoo boy. I have submitted this through app support channel.

callumacrae commented 7 years ago

@wvezey: Woah, seriously? I'm going to hold off updating, then!

@denofevil: Is the above true?

denofevil commented 7 years ago

@callumacrae cannot confirm yet, you can follow https://youtrack.jetbrains.com/issue/WEB-24387 for the updates

screen shot 2016-11-25 at 20 50 04
wvezey commented 7 years ago

@callumacrae @denofevil l have not gone through all of the plugins to test their culpability in this issue, but I can say with certainty that the visibility of a node_modules directory toggles with the enabled state of the JavaScript Support plugin. I read the issue that @denofevil posted above; it looks like this behavior is intentional. Access to node_modules comes in pretty handy when debugging. Even on the day after Thanksgiving.

denofevil commented 7 years ago

@wvezey can you please provide a screenshot including title bar like the one that I've posted above?

wvezey commented 7 years ago

@denofevil you bet

With JavaScript Support plugin enabled:

image

With JavaScript Support plugin disabled:

image

denofevil commented 7 years ago

@wvezey you have Project files selected as a Project view scope, it shows you only project files without library ones (node_modules is considered to be library source). If you select Project via dropdown on the top you will see node_modules too