![](/img/trans.png)
[英]tortoise SVN - getting project from SVN repository and checking in from local
[英]tortoise svn fails to import to repository due to Inconsistent line ending style
我很高興看到有一個檢查樣式的插件,稱為IntelliJ的CheckStyle-IDEA插件 ,可以在源代碼上強制執行代碼樣式。
我使用IDE插件存儲庫安裝了它,然后重新啟動了它。 不幸的是,按下檢查該文件或檢查項目后,我得到了一個例外(請參閱下面的日志)。
我正在使用Windows 7專業版,IDEA 10.0.3構建#103.255構建於2011年4月的JDK 1.6.0_21
謝謝
2011-05-05 11:41:56,723 [1300492]信息-ea.checkstyle.CheckStylePlugin-掃描當前文件。 2011-05-05 11:41:56,727 [1300496]錯誤-style.checker.CheckFilesThread-掃描文件時發生錯誤。 org.infernus.idea.checkstyle.exception.CheckStylePluginException:文件掃描期間發生錯誤。 在org.infernus.idea.checkstyle.checker.CheckFilesThread.run(CheckFilesThread.java:72)處org.infernus.idea.checkstyle.CheckStylePlugin.processError(CheckStylePlugin.java:409)造成原因:java.lang.StringIndexOutOfBoundsException:String索引超出范圍:1在java.lang.String.charAt(String.java:686)在java.util.regex.Matcher.appendReplacement(Matcher.java:703)在java.util.regex.Matcher.replaceAll(Matcher org.infernus.idea.checkstyle.util.ScannableFile.parentDirFor(ScannableFile.java:72)的java.lang.String.replaceAll(String.java:2189)的.java:813)org.infernus.idea.checkstyle的.java:813)。 org.infernus.idea.checkstyle.util.ScannableFile。(ScannableFile.java:40)處util.ScannableFile.createTemporaryFileFor(ScannableFile.java:58)org.infernus.idea.checkstyle.checker.CreateScannableFileAction.run(CreateScannableFileAction.run :60),位於org.infernus.idea.checkstyle.checker.FileScanner.createTemporaryFi的com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:757) org.infernus.idea.checkstyle.checker.FileScanner.run(FileScanner.java:80)的le(FileScanner.java:228)在org.infernus.idea.checkstyle.checker.FileScanner.checkPsiFile(FileScanner.java:167)在org.infernus.idea.checkstyle.checker.CheckFilesThread.runFileScanner(CheckFilesThread.java:39)在com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:770)在org.infernus.idea.checkstyle org.infernus.idea.checkstyle.checker.CheckFilesThread.run(CheckFilesThread.java:57)上的.checker.AbstractCheckerThread.processFilesForModuleInfoAndScan(AbstractCheckerThread.java:132)
可悲的是,Checkstyle-idea插件有問題:(
您可以在http://code.google.com/p/checkstyle-idea/上發布或查看問題,並獲得比這里更快的支持。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.