2013-03-13 84 views
22

我給JetBrains IntelliJ IDEA 12.0.4一個旋轉,並在編譯程序時遇到問題。 當我運行一個程序,我得到了以下錯誤:無法使用Intellij進行編譯

Internal error: (java.io.FileNotFoundException) \domain.local\usersfolders\roberth\.IntelliJIdea12\system\compile-server\hibernate_test_1ad22f80\timestamps\data (The system cannot find the path specified) 
java.io.FileNotFoundException: \domain.local\usersfolders\roberth\.IntelliJIdea12\system\compile-server\hibernate_test_1ad22f80\timestamps\data (The system cannot find the path specified) 
    at java.io.RandomAccessFile.open(Native Method) 
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) 
    at com.intellij.util.io.PagedFileStorage.resizeFile(PagedFileStorage.java:324) 
    at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:308) 
    at com.intellij.util.io.ResizeableMappedFile.resize(ResizeableMappedFile.java:72) 
    at com.intellij.util.io.ResizeableMappedFile.<init>(ResizeableMappedFile.java:46) 
    at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:76) 
    at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38) 
    at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:31) 
    at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:137) 
    at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:133) 
    at org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:122) 
    at org.jetbrains.jps.incremental.storage.AbstractStateStorage.<init>(AbstractStateStorage.java:27) 
    at org.jetbrains.jps.incremental.storage.TimestampStorage.<init>(TimestampStorage.java:21) 
    at org.jetbrains.jps.incremental.storage.ProjectTimestamps.<init>(ProjectTimestamps.java:21) 
    at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:90) 
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:181) 
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:102) 
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:107) 
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:26) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:722) 

出現這種情況既RunDebug。我需要更改哪些設置以更正用於將它們更改爲本地類路徑和目錄的路徑?

回答

34

看來你的用戶的家位於一個網絡驅動器,這是unsupported by IntelliJ

In some environments user's home directory is located on the mapped network drive which is unacceptable for IntelliJ IDEA. You'll notice the huge performance degradation. You may also want to move system directory to the faster or larger drive partition.

您應該複製IDEA_HOME\bin\idea.properties到你的主目錄,並讓它們指向本地目錄,而不是調整以下路徑上:

  • idea.config.path
  • idea.system.path
  • idea.plugins.path

有關更多詳細信息,請參閱上面的鏈接。如果您不想丟失已配置的所有內容,只需將\domain.local\usersfolders\roberth\.IntelliJIdea12移至本地文件夾。

+0

非常好,這正是我需要知道的,但無法找到。謝謝:) – 2013-03-13 13:57:48

+0

這對我有效。謝謝。 – mcherm 2013-05-29 19:39:07

+0

我修改了idea.properties(in bin)*和*將它複製回家。仍然構建堅持要給這個錯誤。 – Synesso 2014-02-04 05:13:10

2

我有完全相同的問題。所以,我編輯的IDEA_HOME \ BIN \ idea.properties文件,並取消註釋:

  • idea.config.path
  • idea.system.path
  • idea.plugins.path
  • idea.log 。路徑

然後我刪除從idea.config.pathidea.system.path${user.home},一切工作正常。

0

以下步驟爲我工作:

  1. 關閉的IntelliJ IDEA
  2. 編輯IDEA_HOME \ BIN \ idea.properties包含以下行:

    idea.config.path=C:/Users/<yourUsername>/.IdeaIC/config 
    idea.system.path=C:/Users/<yourUsername>/.IdeaIC/system 
    
  3. 打開的IntelliJ IDEA

    • 現在.IdeaIC文件夾(上面指定的)被自動創建,它具有以下結構:

      .IdeaIC 
          - config 
          - system 
      
5

我得到在窗口ENV下面的錯誤:

錯誤:內部錯誤:(com.intellij.util.io。PersistentEnumeratorBase $ CorruptedException)PersistentEnumerator存儲損壞C:\用戶> .IntelliJIdea14 \ SYSTEM \編譯服務器\ cmx_cdc441bb \ AJ \ aspect_path.dat

,並刪除位於上述路徑中的.dat文件和我的jetbrain IDE開始編譯所有類和問題得到解決。

3

我遇到類似的問題,無法在調試程序時重新加載編譯的類。閱讀幾個博客,並刪除編譯和編譯服務器目錄下的C:/Users/<yourUsername>/.IntelliJIdea<version>/system,我可以繼續像往常一樣使用類重新加載。

相關問題