IntelliJ无法同步目标文件夹中的更改 [英] IntelliJ fails to sync changes in the target folder

查看:1180
本文介绍了IntelliJ无法同步目标文件夹中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux Mint 13上的Intellij 12.0.4(build 123.169)。

Intellij 12.0.4 (build 123.169) on Linux Mint 13.

当我从命令行运行maven测试时,我可以看到<$的更改内容c $ c>目标文件资源管理器中的文件夹,但不在IntelliJ中。

When I run maven tests from command line, I can see the changed contents of the target folder in the file explorer, but not in IntelliJ.

我试过同步<上下文菜单中的/ code>选项以及不同级别上的Ctrl + Alt + Y快捷键 - 子文件夹,文件夹和模块。我也无法使用Ctrl + Shift + N打开/搜索打开文件。

I have tried the Synchronize option from the context menu as well as the Ctrl+Alt+Y shortcut on different levels - subfolder, folder and module. I also cannot open the files using the Ctrl+Shift+N open/search.

idea.log看起来不可靠:

The idea.log looks unsuspicious:

2013-04-01 08:51:07,808 [3911692]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 26 ms 
2013-04-01 08:51:07,808 [3911692]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update 
2013-04-01 08:51:07,808 [3911692]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms 

还有什么我可以做的吗?

Is there anything else I can do?

推荐答案

我找到了这个相关问题。问题是目标文件夹根本看不到。

I have found this related question. It's issue was that the target folder was not visible at all.

我不得不去设置 - >项目设置 - > Maven - >导入。然后取消选中排除构建目录,重新导入模块并运行。

I had to go to Settings -> Project Settings -> Maven -> Importing. Then uncheck Exclude build directory, reimport the module and it worked.

还是很奇怪,在我的情况下,文件夹是可见但不可更新。

Still strange that in my case the folder was visible but not updateable.

这篇关于IntelliJ无法同步目标文件夹中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆