krasa / eclipsecodeformatter-from-googlecode Goto Github PK
View Code? Open in Web Editor NEWuse this project https://github.com/krasa/EclipseCodeFormatter
use this project https://github.com/krasa/EclipseCodeFormatter
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
An exception is thrown every so often
What version of the product are you using? On what operating system?
Intellij 12.0.4
Please provide any additional information below.
Access is allowed from event dispatch thread only.
Details: Current thread: Thread[JobScheduler pool 1/2,5,Idea Thread Group]
31688943
Our dispatch thread:Thread[AWT-EventQueue-0 12.0.4#IU-123.169, eap:false,6,Idea
Thread Group] 8001884
SystemEventQueueThread: Thread[AWT-EventQueue-0 12.0.4#IU-123.169,
eap:false,6,Idea Thread Group] 8001884
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:61)
at com.intellij.openapi.application.impl.ApplicationImpl.d(ApplicationImpl.java:1087)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1075)
at com.intellij.openapi.editor.impl.DocumentImpl.setInBulkUpdate(DocumentImpl.java:791)
at com.intellij.formatting.FormatProcessor$ApplyChangesState.prepare(FormatProcessor.java:1396)
at com.intellij.formatting.FormatProcessor$State.a(FormatProcessor.java:1270)
at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1237)
at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:244)
at com.intellij.formatting.FormatterImpl$MyFormattingTask.iteration(FormatterImpl.java:795)
at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:229)
at com.intellij.formatting.FormatterImpl.format(FormatterImpl.java:183)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:108)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:83)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:98)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:85)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformat(DelegatingCodeStyleManager.java:56)
at com.intellij.psi.impl.source.tree.java.ParameterListElement.deleteChildInternal(ParameterListElement.java:123)
at com.intellij.psi.impl.source.tree.java.ParameterListElement.deleteChildInternal(ParameterListElement.java:88)
at com.intellij.psi.impl.source.JavaStubPsiElement.delete(JavaStubPsiElement.java:129)
at com.intellij.codeInsight.daemon.impl.quickfix.DelegateWithDefaultParamValueIntentionAction.a(DelegateWithDefaultParamValueIntentionAction.java:86)
at com.intellij.codeInsight.daemon.impl.quickfix.DelegateWithDefaultParamValueIntentionAction.isAvailable(DelegateWithDefaultParamValueIntentionAction.java:60)
at com.intellij.codeInsight.intention.PsiElementBaseIntentionAction.isAvailable(PsiElementBaseIntentionAction.java:63)
at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.isAvailable(IntentionActionWrapper.java:56)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.a(ShowIntentionActionsHandler.java:112)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.availableFor(ShowIntentionActionsHandler.java:103)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$1.process(ShowIntentionsPass.java:221)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$1.process(ShowIntentionsPass.java:218)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseBetweenHostAndInjected(ShowIntentionActionsHandler.java:137)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:217)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.b(ShowIntentionsPass.java:154)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:128)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1155)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:345)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:129)
at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:126)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Original issue reported on code.google.com by [email protected]
on 13 Mar 2013 at 7:25
What steps will reproduce the problem?
1. Version prior 1.8 has been installed
2. Open setting->plugins
3. Observe that red exclamation sign next to plugin name saying that new
version is available
4. Try update plugin and restart IDEA (v 11.1.1).
What is the expected output? What do you see instead?
Expected: no exclamation sign. plugin up-to-date
Actual: IDEA still shows exclamation sign
What version of the product are you using? On what operating system?
OS: Linux Ubuntu 10.0.4
IDEA: 11.1.1
Sun JAVA SDK 1.7
Please provide any additional information below.
Setting dialog screenshot is attached
PS: i suspect either installed plugin JAR contains incorrect version number
(less then specified in repository) or the is a bug in IDEA itself
Original issue reported on code.google.com by [email protected]
on 6 Apr 2012 at 9:10
Attachments:
.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2012 at 10:58
What steps will reproduce the problem?
1. Apply the formatter on Eclipse
2. Point Eclipse Code Formatter to that file
Instead of being exactly the same, somehow the formatting is different. I
attached the org.eclipse.wst.jsdt.core.prefs file that I used so one can
compare between both. It seems it breaks the formatting when an array is
present.
What version of the product are you using?
IntelliJ 11.0.2
On what operating system?
Windows 7
Original issue reported on code.google.com by [email protected]
on 29 Feb 2012 at 4:38
Attachments:
What steps will reproduce the problem?
1. Change eclipse code style settings (tab policy and max line comment length).
2. Format java file in Eclipse and make it copy
3. Reformat this file in IDEA
4. Compare result files (winmerge, for example)
What is the expected output? What do you see instead?
1. Java file has formatted in Eclipse does not contain any tab symbols, but
reformatted in IDEA contains (should be spaces only).
2. Comments are trimmed to 80 symbols per line in IDEA (120 symbols are
expected).
What version of the product are you using? On what operating system?
- Windows 7 SP1
- Eclipse IDE for Java Developers, Build id: 20120216-1857
- IDEA Community 11.0.2 #IC-111.277
- IDEA Ultimate 11.0.2 #IC-111.277
- Eclipse Code Formatter 1.3.1.3
Please provide any additional information below.
The major changes in Eclipse default code style settings:
- Tab policy: Spaces only
- Max line width: 120
- Comments: Max line width: 120
Original issue reported on code.google.com by [email protected]
on 9 Mar 2012 at 10:56
Attachments:
We have recently migrated to Java 7, and now the eclipse formatter won't format
code with java 7 syntax for example
private SimpleCache<PriceAndDiscount> articlePriceCache = new
SimpleCache<PriceAndDiscount>();
works fine but
private SimpleCache<PriceAndDiscount> articlePriceCache = new SimpleCache<>();
gives an error.
Original issue reported on code.google.com by [email protected]
on 23 May 2013 at 6:29
Invalid ranges during formatting in Language: Sybase
java.lang.Throwable
at com.intellij.diagnostic.LogMessageEx.error(LogMessageEx.java:137)
at com.intellij.formatting.InitialInfoBuilder.assertInvalidRanges(InitialInfoBuilder.java:389)
at com.intellij.formatting.WhiteSpace.append(WhiteSpace.java:124)
at com.intellij.formatting.FormatProcessor$WrapBlocksState.doIteration(FormatProcessor.java:1314)
at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1235)
at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:244)
at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:418)
at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:392)
at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:287)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$6.doPerform(CodeStyleManagerImpl.java:360)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:102)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:357)
at krasa.formatter.plugin.DelegatingCodeStyleManager.adjustLineIndent(DelegatingCodeStyleManager.java:82)
at com.intellij.codeInsight.editorActions.PasteHandler.a(PasteHandler.java:365)
at com.intellij.codeInsight.editorActions.PasteHandler.access$000(PasteHandler.java:56)
at com.intellij.codeInsight.editorActions.PasteHandler$4.run(PasteHandler.java:259)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1013)
at com.intellij.codeInsight.editorActions.PasteHandler.a(PasteHandler.java:246)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:115)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:127)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:82)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:93)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:480)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:334)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Original issue reported on code.google.com by [email protected]
on 23 Apr 2013 at 7:57
It's quite annoying when Eclipse formatter plugin removes new lines and some
statement becomes one really long line of code.
Original issue reported on code.google.com by [email protected]
on 4 Mar 2013 at 4:58
when i format java code, there is a error(idea version 12 RC, plugin version
2.8.3). Can you help me? many thanks:
imports: import models.Album;import models.Picture;import
org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import
org.apache.http.HttpStatus;import org.apache.http.client.methods.HttpGet;import
org.apache.http.impl.client.DefaultHttpClient;import
org.apache.http.params.CoreConnectionPNames;import
org.apache.http.util.EntityUtils;import org.jsoup.Jsoup;import
org.jsoup.nodes.Document;import org.jsoup.nodes.Element;import
org.jsoup.select.Elements;import play.Logger;import play.db.jpa.JPA;import
play.libs.Codec;import play.mvc.Router;import play.vfs.VirtualFile;import
utils.BaseX;import utils.UpYunUtils;import java.io.File;import
java.io.FileOutputStream;import java.io.IOException;import
java.io.InputStream;import java.math.BigInteger;import
java.util.regex.Matcher;import java.util.regex.Pattern;, settings:
java;javax;org;com;: imports: import models.Album;import models.Picture;import
org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import
org.apache.http.HttpStatus;import org.apache.http.client.methods.HttpGet;import
org.apache.http.impl.client.DefaultHttpClient;import
org.apache.http.params.CoreConnectionPNames;import
org.apache.http.util.EntityUtils;import org.jsoup.Jsoup;import
org.jsoup.nodes.Document;import org.jsoup.nodes.Element;import
org.jsoup.select.Elements;import play.Logger;import play.db.jpa.JPA;import
play.libs.Codec;import play.mvc.Router;import play.vfs.VirtualFile;import
utils.BaseX;import utils.UpYunUtils;import java.io.File;import
java.io.FileOutputStream;import java.io.IOException;import
java.io.InputStream;import java.math.BigInteger;import
java.util.regex.Matcher;import java.util.regex.Pattern;, settings:
java;javax;org;com;
krasa.formatter.plugin.ImportSorterException: imports: import
models.Album;import models.Picture;import org.apache.http.HttpEntity;import
org.apache.http.HttpResponse;import org.apache.http.HttpStatus;import
org.apache.http.client.methods.HttpGet;import
org.apache.http.impl.client.DefaultHttpClient;import
org.apache.http.params.CoreConnectionPNames;import
org.apache.http.util.EntityUtils;import org.jsoup.Jsoup;import
org.jsoup.nodes.Document;import org.jsoup.nodes.Element;import
org.jsoup.select.Elements;import play.Logger;import play.db.jpa.JPA;import
play.libs.Codec;import play.mvc.Router;import play.vfs.VirtualFile;import
utils.BaseX;import utils.UpYunUtils;import java.io.File;import
java.io.FileOutputStream;import java.io.IOException;import
java.io.InputStream;import java.math.BigInteger;import
java.util.regex.Matcher;import java.util.regex.Pattern;, settings:
java;javax;org;com;
at krasa.formatter.plugin.processor.ImportOrderProcessor.process(ImportOrderProcessor.java:56)
at krasa.formatter.plugin.EclipseCodeFormatter.postProcess(EclipseCodeFormatter.java:91)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:84)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:52)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:124)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: java.lang.NullPointerException
at krasa.formatter.plugin.processor.ImportOrderProcessor.process(ImportOrderProcessor.java:44)
... 35 more
java.lang.NullPointerException
at krasa.formatter.plugin.processor.ImportOrderProcessor.process(ImportOrderProcessor.java:44)
at krasa.formatter.plugin.EclipseCodeFormatter.postProcess(EclipseCodeFormatter.java:91)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:84)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:52)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:124)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Original issue reported on code.google.com by [email protected]
on 9 Nov 2012 at 6:02
I got a prompt from IntelliJ saying that this plugin threw an exception. I'm
not sure what user action caused the error.
interval not found: RangeHighlighter: (9148,9218); layer:999; tooltip: Lines
234-235 changed; []; isValid=true: interval not found: RangeHighlighter:
(9148,9218); layer:999; tooltip: Lines 234-235 changed; []; isValid=true
java.lang.AssertionError: interval not found: RangeHighlighter: (9148,9218);
layer:999; tooltip: Lines 234-235 changed; []; isValid=true
at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.a(IntervalTreeImpl.java:141)
at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.access$1500(IntervalTreeImpl.java:51)
at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:923)
at com.intellij.openapi.editor.impl.MarkupModelImpl.removeHighlighter(MarkupModelImpl.java:182)
at com.intellij.openapi.editor.impl.RangeHighlighterImpl.unregisterInTree(RangeHighlighterImpl.java:68)
at com.intellij.openapi.editor.impl.RangeMarkerImpl.dispose(RangeMarkerImpl.java:77)
at com.intellij.openapi.vcs.ex.LineStatusTracker$MyDocumentListener.a(LineStatusTracker.java:455)
at com.intellij.openapi.vcs.ex.LineStatusTracker$MyDocumentListener.documentChanged(LineStatusTracker.java:382)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:592)
at com.intellij.openapi.editor.impl.DocumentImpl.access$600(DocumentImpl.java:51)
at com.intellij.openapi.editor.impl.DocumentImpl$MyCharArray.afterChangedUpdate(DocumentImpl.java:881)
at com.intellij.openapi.editor.impl.CharArray.replace(CharArray.java:252)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:446)
at com.intellij.openapi.editor.impl.DocumentImpl.access$300(DocumentImpl.java:51)
at com.intellij.openapi.editor.impl.DocumentImpl$4.run(DocumentImpl.java:790)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:797)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:88)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:55)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:129)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:80)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:158)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1013)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:343)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 26 Apr 2013 at 2:25
Make it work for xml preference file with dropdown for choosing profile
Original issue reported on code.google.com by [email protected]
on 9 Mar 2012 at 3:32
I have a problem with formatter ON/OFF.
I would like to off the formatter with the same rules as "CHECKSTYLE:OFF" and
continue formatting after "CHECKSTYLE:ON", but formatter encountered
"CHECKSTYLE:OFF" after this formatter stop and does not like to continue the
formatting process after "CHECKSTYLE:ON".
my formatter settings:
<setting id="org.eclipse.jdt.core.formatter.disabling_tag"
value="CHECKSTYLE:OFF"/>
<setting id="org.eclipse.jdt.core.formatter.enabling_tag"
value="CHECKSTYLE:ON"/>
<setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>
Thanks a lot!
You did good things!
Original issue reported on code.google.com by [email protected]
on 3 Aug 2012 at 3:19
This is a request, not a bug.
It would be nice to have the option that it's available in eclipse: Preferences
-> Java -> Code Style -> Organize Imports
In that option, the order of packages can be defined.
Original issue reported on code.google.com by [email protected]
on 23 Jan 2012 at 8:39
Document is locked by write PSI operations. Use
PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI
changes to the document.: Document is locked by write PSI operations. Use
PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI
changes to the document.
java.lang.RuntimeException: Document is locked by write PSI operations. Use
PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI
changes to the document.
at com.intellij.psi.impl.source.PostprocessReformattingAspect.beforeDocumentChanged(PostprocessReformattingAspect.java:263)
at com.intellij.psi.impl.PsiDocumentManagerImpl.beforeDocumentChange(PsiDocumentManagerImpl.java:634)
at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:89)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:65)
at $Proxy18.beforeDocumentChange(Unknown Source)
at com.intellij.openapi.editor.impl.DocumentImpl.b(DocumentImpl.java:546)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:520)
at com.intellij.openapi.editor.impl.DocumentImpl.access$200(DocumentImpl.java:53)
at com.intellij.openapi.editor.impl.DocumentImpl$MyCharArray.beforeChangedUpdate(DocumentImpl.java:836)
at com.intellij.openapi.editor.impl.CharArray.replace(CharArray.java:187)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:421)
at com.intellij.openapi.editor.impl.DocumentImpl.access$000(DocumentImpl.java:53)
at com.intellij.openapi.editor.impl.DocumentImpl$3.run(DocumentImpl.java:753)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:760)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:96)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWithEclipse(EclipseCodeFormatter.java:65)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:50)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:110)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at com.intellij.codeInsight.template.impl.TemplateState.a(TemplateState.java:1035)
at com.intellij.codeInsight.template.impl.TemplateState.access$2100(TemplateState.java:70)
at com.intellij.codeInsight.template.impl.TemplateState$5.run(TemplateState.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
at com.intellij.codeInsight.template.impl.TemplateState.doReformat(TemplateState.java:385)
at com.intellij.codeInsight.template.impl.TemplateState.nextTab(TemplateState.java:764)
at com.intellij.codeInsight.template.impl.actions.NextVariableAction$Handler.executeWriteAction(NextVariableAction.java:47)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:79)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:90)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:65)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:545)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:593)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:461)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:209)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 9 Mar 2012 at 10:04
Hello,
Was just wondering if new lines between import groups is a supported use case.
When I do Source -> Format, Source -> Organize imports in eclipse, the import
statement groups are separated by newlines.
In IntelliJ when I use the Eclipse Code Formatter, either with or without
Optimize imports, the order is correct, but the new lines are not added in as
expected.
Thanks
Original issue reported on code.google.com by [email protected]
on 15 Apr 2013 at 5:15
[deleted issue]
Doesn't actual cause an errors I can see, but an AssertionError in the event
log.
Do not call commitDocument() from inside PSI change listener: Do not call
commitDocument() from inside PSI change listener
java.lang.AssertionError: Do not call commitDocument() from inside PSI change
listener
at com.intellij.psi.impl.PsiDocumentManagerImpl.doCommit(PsiDocumentManagerImpl.java:427)
at com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerImpl.java:352)
at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.getStateImpl(PsiAwareTextEditorProvider.java:111)
at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.getState(TextEditorImpl.java:95)
at com.intellij.openapi.fileEditor.impl.EditorHistoryManager.updateHistoryEntry(EditorHistoryManager.java:213)
at com.intellij.openapi.fileEditor.impl.EditorHistoryManager.access$900(EditorHistoryManager.java:43)
at com.intellij.openapi.fileEditor.impl.EditorHistoryManager$MyEditorManagerListener.selectionChanged(EditorHistoryManager.java:345)
at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:109)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:230)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:236)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:222)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:219)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:212)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:43)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:135)
at $Proxy110.selectionChanged(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$16.run(FileEditorManagerImpl.java:1407)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$13$1.run(FileEditorManagerImpl.java:891)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:613)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:597)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:567)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:55)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:465)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1909)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:443)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:55)
at com.intellij.ui.tabs.impl.JBTabsImpl.removeDeferred(JBTabsImpl.java:917)
at com.intellij.ui.tabs.impl.JBTabsImpl.access$2000(JBTabsImpl.java:66)
at com.intellij.ui.tabs.impl.JBTabsImpl$12.run(JBTabsImpl.java:819)
at com.intellij.openapi.util.ExecutionCallback.setExecuted(ExecutionCallback.java:54)
at com.intellij.openapi.util.ActionCallback.setRejected(ActionCallback.java:79)
at com.intellij.openapi.wm.impl.FocusManagerImpl.resetCommand(FocusManagerImpl.java:383)
at com.intellij.openapi.wm.impl.FocusManagerImpl.invalidateFocusRequestsQueue(FocusManagerImpl.java:640)
at com.intellij.openapi.wm.impl.FocusManagerImpl.isFocusTransferReady(FocusManagerImpl.java:625)
at com.intellij.openapi.wm.impl.FocusManagerImpl.isFocusBeingTransferred(FocusManagerImpl.java:1086)
at com.intellij.openapi.wm.impl.FocusManagerImpl.getFocusOwner(FocusManagerImpl.java:868)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.getFocusOwner(IdeFocusManagerImpl.java:109)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$2.run(FileEditorManagerImpl.java:193)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.getActiveSplitters(FileEditorManagerImpl.java:221)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.getCurrentFile(FileEditorManagerImpl.java:499)
at com.intellij.openapi.fileEditor.impl.PsiAwareFileEditorManagerImpl$MyPsiTreeChangeListener.doChange(PsiAwareFileEditorManagerImpl.java:155)
at com.intellij.openapi.fileEditor.impl.PsiAwareFileEditorManagerImpl$MyPsiTreeChangeListener.childReplaced(PsiAwareFileEditorManagerImpl.java:140)
at com.intellij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:452)
at com.intellij.psi.impl.PsiManagerImpl.childReplaced(PsiManagerImpl.java:353)
at com.intellij.pom.wrappers.PsiEventWrapperAspect.sendAfterEvents(PsiEventWrapperAspect.java:102)
at com.intellij.pom.wrappers.PsiEventWrapperAspect.update(PsiEventWrapperAspect.java:49)
at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:161)
at com.intellij.psi.impl.DocumentCommitThread.doActualPsiChange(DocumentCommitThread.java:707)
at com.intellij.psi.impl.DocumentCommitThread$5$1$1.run(DocumentCommitThread.java:597)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$8.compute(CodeStyleManagerImpl.java:749)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:110)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$10.compute(CodeStyleManagerImpl.java:784)
at com.intellij.formatting.FormatterImpl.runWithFormattingDisabled(FormatterImpl.java:772)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.performActionWithFormatterDisabled(CodeStyleManagerImpl.java:780)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.performActionWithFormatterDisabled(CodeStyleManagerImpl.java:746)
at krasa.formatter.plugin.DelegatingCodeStyleManager.performActionWithFormatterDisabled(DelegatingCodeStyleManager.java:138)
at com.intellij.psi.impl.DocumentCommitThread$5$1.run(DocumentCommitThread.java:593)
at com.intellij.psi.impl.TextBlock.performAtomically(TextBlock.java:102)
at com.intellij.psi.impl.DocumentCommitThread$5.process(DocumentCommitThread.java:590)
at com.intellij.psi.impl.DocumentCommitThread$5.process(DocumentCommitThread.java:580)
at com.intellij.psi.impl.PsiDocumentManagerImpl$5.run(PsiDocumentManagerImpl.java:374)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
at com.intellij.psi.impl.PsiDocumentManagerImpl.finishCommit(PsiDocumentManagerImpl.java:362)
at com.intellij.psi.impl.DocumentCommitThread$4.run(DocumentCommitThread.java:522)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 24 Dec 2012 at 11:50
Thanks for your great work! This has saved me today.
That Eclipse majority really force their code style down my throat...
Original issue reported on code.google.com by [email protected]
on 22 Nov 2011 at 4:12
9:42:05 AM PluginException: krasa/formatter/settings/GlobalSettings :
Unsupported major.minor version 51.0 [Plugin: EclipseCodeFormatter]:
krasa/formatter/settings/GlobalSettings : Unsupported major.minor version 51.0
[Plugin: EclipseCodeFormatter]
9:42:38 AM PluginException: krasa/formatter/action/OptimizeImportsAction :
Unsupported major.minor version 51.0 [Plugin: EclipseCodeFormatter]:
krasa/formatter/action/OptimizeImportsAction : Unsupported major.minor version
51.0 [Plugin: EclipseCodeFormatter]
Original issue reported on code.google.com by [email protected]
on 10 Dec 2012 at 8:43
[deleted issue]
Error during dispatching of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.
util.EdtRunnable$1@19b8af9,notifier=null,catchExceptions=false,when=133277649095
5] on sun.awt.windows.WToolkit@1b35ece
java.lang.NullPointerException
at krasa.formatter.settings.ProjectSettingsComponent.isSameId(ProjectSettingsComponent.java:128)
at krasa.formatter.settings.ProjectSettingsComponent.isModified(ProjectSettingsComponent.java:124)
at com.intellij.openapi.options.newEditor.OptionsEditor.i(OptionsEditor.java:555)
at com.intellij.openapi.options.newEditor.OptionsEditor.g(OptionsEditor.java:544)
at com.intellij.openapi.options.newEditor.OptionsEditor.e(OptionsEditor.java:499)
at com.intellij.openapi.options.newEditor.OptionsEditor.d(OptionsEditor.java:491)
at com.intellij.openapi.options.newEditor.OptionsEditor.access$2300(OptionsEditor.java:67)
at com.intellij.openapi.options.newEditor.OptionsEditor$7.runEdt(OptionsEditor.java:367)
at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1044)
at java.awt.Dialog$3.run(Dialog.java:1096)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1094)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.a(DialogWrapperPeerImpl.java:742)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:738)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:426)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1379)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1364)
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:67)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:49)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:63)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:542)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:458)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 26 Mar 2012 at 3:42
Eclipse's import-related settings live in org.eclipse.jdt.ui.prefs, not
org.eclipse.jdt.core.prefs, e.g.:
org.eclipse.jdt.ui.importorder=java;javax;com;org;org.jboss;org.rhq;
cleanup.organize_imports=true
cleanup.remove_unused_imports=true
sp_cleanup.organize_imports=true
sp_cleanup.remove_unused_imports=false
Can you add support to the plugin for specifying the location of a
org.eclipse.jdt.ui.prefs file, and then read the import settings from that?
Original issue reported on code.google.com by [email protected]
on 9 Mar 2012 at 6:38
In eclipse there's an option to define a segment of code that should not be
formatted, using a pair of tags.
For example:
// @formatter:off
// This is
// not formated
// @formatter:on
It should be nice to have this feature.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2012 at 3:15
Is the eclipse code formatter plugin supposed to also automatically rearrange
the methods? It is doing so on my system, and I'm not sure how to turn it off.
As a workaround, I made a code-style -> java -> arrangement setup of *NOTHING*,
and it leaves things alone, but if I have an arrangement setting that I want to
use, I can't use the plugin on other people's code, since it rearranges
everything.
Is there a way to turn this off, or have I done something to cause this?
Original issue reported on code.google.com by [email protected]
on 7 Jun 2013 at 10:23
XML formatting is widely used. So, it would be nice if your plug-in supports
the eclipse XML formatter.
Thank's for your helpful plug-in!
Original issue reported on code.google.com by [email protected]
on 29 Aug 2012 at 11:08
GWT native methods are not formatted properly (JavaScript code inside Java
files).
Eclipse formats code like this:
private native JavaScriptObject jsInit() /*-{
var self = this;
(function() {
alert("Hello");
})();
}-*/;
IDEA (plugin) formats code like this:
private native JavaScriptObject jsInit() /*-{
var self = this;
(function() {
alert("Hello");
})();
}-*/;
Original issue reported on code.google.com by [email protected]
on 20 Jun 2012 at 12:35
What steps will reproduce the problem?
1. Install plugin
2. Configure from files
3. Reformat some code
What is the expected output? What do you see instead?
The code being reformatted like in eclise. Instead is occurring an error.
What version of the product are you using? On what operating system?
Plugin: 3.2.1 (2012-12-09)
IntelliJ: 12.0.1
Windows 7
Please provide any additional information below.
Please, see attachments for the formatter and import order files.
Stacktrace:
startOffset0, endOffset:2961, length of file 2961: profile not found in the file
java.lang.IllegalStateException: profile not found in the file
at krasa.formatter.utils.FileUtils.readXmlJavaSettingsFile(FileUtils.java:151)
at krasa.formatter.settings.provider.CachedPropertiesProvider.readXmlFile(CachedPropertiesProvider.java:34)
at krasa.formatter.settings.provider.JavaPropertiesProvider.readFile(JavaPropertiesProvider.java:52)
at krasa.formatter.settings.provider.JavaPropertiesProvider.readFile(JavaPropertiesProvider.java:14)
at krasa.formatter.settings.provider.CachedProvider.get(CachedProvider.java:25)
at krasa.formatter.eclipse.JavaCodeFormatterFacade.newCodeFormatter(JavaCodeFormatterFacade.java:35)
at krasa.formatter.eclipse.JavaCodeFormatterFacade.getCodeFormatter(JavaCodeFormatterFacade.java:28)
at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:89)
at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:14)
at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:97)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:82)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:52)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:124)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:83)
at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:80)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Original issue reported on code.google.com by VictorDFB
on 14 Jan 2013 at 7:25
Attachments:
In Eclipse you can set the formatter to indent blank empty lines.
IntelliJ IDEA has no such option. Does this plugin remedy this issue?
Original issue reported on code.google.com by [email protected]
on 27 Feb 2013 at 8:19
I'm using the latest 11 version of IntelliJ (11.1.4) with the latest eclipse
code formatter plugin version (3.0.3)
I have a manual configuration for the import order with the following values:
com;java;javax;org;
The native organize import is disabled when I reformat my code.
When the class does not contain any javax related class, a new line is created
after each formart between the imports/class definition, until 4 lines is
reached.
Example:
So on the first reformat:
package org.example;
import java.util.Calendar;
public class ImportTest {
public static void main( String[] args ) {
Calendar.getInstance();
}
}
2nd format:
package org.example;
import java.util.Calendar;
public class ImportTest {
public static void main( String[] args ) {
Calendar.getInstance();
}
}
3rd format:
package org.example;
import java.util.Calendar;
public class ImportTest {
public static void main( String[] args ) {
Calendar.getInstance();
}
}
4th + format:
package org.example;
import java.util.Calendar;
public class ImportTest {
public static void main( String[] args ) {
Calendar.getInstance();
}
}
If I have a javax import, it doesn't create a new line.
For each format:
package org.example;
import java.util.Calendar;
import javax.xml.XMLConstants;
public class ImportTest {
public static void main( String[] args ) {
Calendar.getInstance();
String ns = XMLConstants.DEFAULT_NS_PREFIX;
}
}
Original issue reported on code.google.com by [email protected]
on 30 Nov 2012 at 1:58
Hi,
When i do ctrl-alt-L on a class file my class imports are organized like this:
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import org.springframework.util.StringUtils;
Then when i do again ctrl-alt-L they get rearranged to this
import org.springframework.stereotype.Repository;
import org.springframework.util.StringUtils;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.List;
So every time i format it reverses the order of the imports. I have followed
the instructions in the wiki for intellij:
Optimizing imports
set "Class count to use import with '*'" and "Name count to use static import
with '*'" to 99 or more (Settings - Code Style - Imports)
IntelliJ's Import Optimizing must be turned off (Settings-Editor-Show "Reformat
Code" dialog...)
Original issue reported on code.google.com by [email protected]
on 17 Apr 2012 at 6:37
What steps will reproduce the problem?
1. open Settings -> Eclipse code formatter
2. Resize the settings window
3. Some controls may be not visible (like donate button in my case)
What is the expected output? What do you see instead?
expected:
The scroll bar appears if some controls do not fit into the window
observed: no any indication of layout changes if some controls do not fit into
the window area
What version of the product are you using? On what operating system?
Ver. 1.9
OS: linux mint 12
Java VM: Sun 1.6
Please provide any additional information below.
I think behavior should be like on settings-> inspections or settings->updates
(better)
minor severity/priority for sure but some user might not even know about so
important button as "donate" because of this issue :)
Original issue reported on code.google.com by [email protected]
on 8 Apr 2012 at 11:16
Hi,
Eclipse Code Formatter Settings are nor exported via "File -> Export Settings,
File -> Import Settings" in plugin version 1.5.1.1 beta.
This is a very handy feature if you have multiple idea projects and you want
the same settings for them all.
Greets,
Chris
Original issue reported on code.google.com by [email protected]
on 20 Mar 2012 at 2:13
First of all, it's a great Job!
But sometimes I have some NullPointerException during working...
I can't help you a lot, I don't know the cause.
Stacktrace:
null
java.lang.NullPointerException
at com.intellij.ide.scopeView.ScopeTreeViewPanel$1.fileStatusChanged(ScopeTreeViewPanel.java:137)
at com.intellij.openapi.vcs.impl.FileStatusManagerImpl.fileStatusChanged(FileStatusManagerImpl.java:200)
at com.intellij.openapi.vcs.impl.VcsFileStatusProvider.refreshFileStatusFromDocument(VcsFileStatusProvider.java:129)
at com.intellij.openapi.vcs.impl.FileStatusManagerImpl.refreshFileStatusFromDocument(FileStatusManagerImpl.java:224)
at com.intellij.openapi.vcs.impl.FileStatusManagerImpl$3.documentChanged(FileStatusManagerImpl.java:122)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:89)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:65)
at $Proxy18.documentChanged(Unknown Source)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:554)
at com.intellij.openapi.editor.impl.DocumentImpl.access$500(DocumentImpl.java:51)
at com.intellij.openapi.editor.impl.DocumentImpl$MyCharArray.afterChangedUpdate(DocumentImpl.java:813)
at com.intellij.openapi.editor.impl.CharArray.replace(CharArray.java:243)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:409)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:370)
at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:127)
at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:432)
at com.intellij.formatting.FormatterImpl.adjustLineIndent(FormatterImpl.java:360)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$5.doPerform(CodeStyleManagerImpl.java:335)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$5.doPerform(CodeStyleManagerImpl.java:332)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:100)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManagerImpl.java:332)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.access$100(CodeStyleManagerImpl.java:57)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$3.compute(CodeStyleManagerImpl.java:295)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$3.compute(CodeStyleManagerImpl.java:292)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:110)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:292)
at krasa.formatter.plugin.DelegatingCodeStyleManager.adjustLineIndent(DelegatingCodeStyleManager.java:86)
at com.intellij.codeInsight.editorActions.EnterHandler$DoEnterAction.run(EnterHandler.java:409)
at com.intellij.codeInsight.editorActions.EnterHandler.a(EnterHandler.java:160)
at com.intellij.codeInsight.editorActions.EnterHandler.access$000(EnterHandler.java:53)
at com.intellij.codeInsight.editorActions.EnterHandler$1.run(EnterHandler.java:71)
at com.intellij.psi.impl.source.PostprocessReformattingAspect$2.compute(PostprocessReformattingAspect.java:101)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:110)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:98)
at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:69)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at com.intellij.codeInsight.template.impl.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:51)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:82)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:93)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:542)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:458)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Original issue reported on code.google.com by [email protected]
on 19 Jul 2012 at 12:49
Though the preference for the plugin shows up as a per project setting enabling
or disabling only works globally. This means switching between projects with
different code style settings is not possible. I'm using IntelliJ Idea 12.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2012 at 7:00
Attachments:
type something useful here...
Using this plugin in webstorm on Mac OS X Mountain Lion it perpetually reports
this error into my error log:
XX:XX:XX AM NoClassDefFoundError: update failed for AnAction with
ID=ChangeFormatterToolbarAction: com/intellij/openapi/actionSystem/DataKeys
Any ideas on something I may have configured wrongly would be appreciated.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2012 at 3:42
What steps will reproduce the problem?
1. Format a Javascript file with compilation problems
Exception is thrown:
startOffset0, endOffset:2046, length of file 2046: formatting failed, probably
due to not compilable code or wrong config file
java.lang.RuntimeException: formatting failed, probably due to not compilable
code or wrong config file
at krasa.formatter.eclipse.JSCodeFormatterFacade.formatInternal(JSCodeFormatterFacade.java:83)
at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:26)
at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:109)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:96)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWithEclipse(EclipseCodeFormatter.java:65)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:50)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:108)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:80)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:74)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:187)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:889)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:459)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:88)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:76)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:455)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:694)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:416)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
What version of the product are you using?
IntelliJ 11.0.2
On what operating system?
Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Feb 2012 at 10:46
you can tweak the order and style of imports in this section:
Project Settings / Code Style / Imports
maybe you can point to this settings
in the import layout you can try to have a more eclipse style order of imports
if you add your own packages etc.
Original issue reported on code.google.com by [email protected]
on 23 Nov 2011 at 12:50
Had a declaration like this:
return new Tuple<Data, Chain>(data, postResult.getB());
This caused other, unformatted lines in the method to not be formatted.
(correct spacing).
Original issue reported on code.google.com by [email protected]
on 12 Dec 2012 at 1:45
This is idea report. See my attached eclipse formatter export file.
Tested on Idea latest community edition.
Thanx.
startOffset0, endOffset:1372, length of file 1372: formatting failed, probably
due to syntax error in the code or wrong config file
java.lang.RuntimeException: formatting failed, probably due to syntax error in
the code or wrong config file
at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:95)
at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:18)
at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:103)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:88)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWithEclipse(EclipseCodeFormatter.java:55)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:49)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:119)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:75)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:93)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:82)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 12 Sep 2012 at 6:56
Attachments:
Hi,
configured the import feature like you've described. Unfortunately I experience
strange behavior if I format a file more than one time:
The blanks between groups of imports disappear on one format action and
reappear on the next format command, so they toogle between blanks are present
between groups and no blanks between groups.
Original issue reported on code.google.com by [email protected]
on 15 Mar 2012 at 10:47
What steps will reproduce the problem?
1. open intellij
2. out this error
3.
update failed for AnAction with ID=EditSource:
java.lang.ClassNotFoundException:
com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
java.lang.RuntimeException: java.lang.ClassNotFoundException:
com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.loadClass(ServiceManagerImpl.java:131)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getDelegate(ServiceManagerImpl.java:171)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.initializeInstance(ServiceManagerImpl.java:159)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter$1.compute(ServiceManagerImpl.java:147)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:964)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:139)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:241)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:228)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:215)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:40)
at com.intellij.openapi.roots.ui.configuration.ProjectSettingsService.getInstance(ProjectSettingsService.java:39)
at com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode.canNavigate(PsiDirectoryNode.java:209)
at com.intellij.ide.actions.BaseNavigateToSourceAction.getTarget(BaseNavigateToSourceAction.java:81)
at com.intellij.ide.actions.BaseNavigateToSourceAction.update(BaseNavigateToSourceAction.java:40)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:100)
at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:167)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:126)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:241)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96)
at com.intellij.ide.ui.customization.CustomizationUtil$3.invokePopup(CustomizationUtil.java:284)
at com.intellij.ui.PopupHandler.mouseReleased(PopupHandler.java:55)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:420)
at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:51)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.ClassNotFoundException:
com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:101)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:115)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:266)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.loadClass(ServiceManagerImpl.java:128)
... 60 more
What is the expected output? What do you see instead?
no error
What version of the product are you using? On what operating system?
IDE version: http://s23.postimg.org/50v16d03v/Immagine.png
Windows 7 home premium x64
Android Studio 0.1.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 31 May 2013 at 7:17
Hi,
Just got this in the plugin, subsequently invoking the formatting again worked
fine.
startOffset0, endOffset:1987, length of file 1987: formatting failed, probably
due to not compilable code or wrong config file
java.lang.RuntimeException: formatting failed, probably due to not compilable
code or wrong config file
at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:122)
at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:27)
at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:157)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:90)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWithEclipse(EclipseCodeFormatter.java:57)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:44)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:118)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:73)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:158)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:93)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:82)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:82)
at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:79)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Original issue reported on code.google.com by [email protected]
on 17 Apr 2012 at 6:27
type something useful here...
krasa/formatter/settings/GlobalSettings : Unsupported major.minor version 51.0
[Plugin: EclipseCodeFormatter]: krasa/formatter/settings/GlobalSettings :
Unsupported major.minor version 51.0 [Plugin: EclipseCodeFormatter]
com.intellij.diagnostic.PluginException:
krasa/formatter/settings/GlobalSettings : Unsupported major.minor version 51.0
[Plugin: EclipseCodeFormatter]
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:470)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:435)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:421)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:102)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:346)
at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:83)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:554)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:208)
at com.intellij.idea.MainImpl$3.run(MainImpl.java:160)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:663)
at java.awt.EventQueue$2.run(EventQueue.java:661)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.UnsupportedClassVersionError:
krasa/formatter/settings/GlobalSettings : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:131)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:127)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:103)
at com.intellij.ide.plugins.cl.PluginClassLoader.d(PluginClassLoader.java:102)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:445)
... 25 more
com.intellij.diagnostic.PluginException:
krasa/formatter/settings/ProjectSettingsComponent : Unsupported major.minor
version 51.0 [Plugin: EclipseCodeFormatter]
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:470)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:435)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:421)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:102)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:346)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:86)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:307)
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:279)
at com.intellij.openapi.project.impl.ProjectManagerImpl.access$300(ProjectManagerImpl.java:81)
at com.intellij.openapi.project.impl.ProjectManagerImpl$9.compute(ProjectManagerImpl.java:529)
at com.intellij.openapi.project.impl.ProjectManagerImpl$9.compute(ProjectManagerImpl.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:275)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:310)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:191)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:181)
at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:692)
at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:465)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)
Caused by: java.lang.UnsupportedClassVersionError:
krasa/formatter/settings/ProjectSettingsComponent : Unsupported major.minor
version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:131)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:127)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:103)
at com.intellij.ide.plugins.cl.PluginClassLoader.d(PluginClassLoader.java:102)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:445)
... 25 more
Original issue reported on code.google.com by [email protected]
on 9 Dec 2012 at 3:04
What steps will reproduce the problem?
1. Install plugin
2. Configure using a file exported from eclipse
3. Try to organize imports
What is the expected output? What do you see instead?
Imports being in order. Instead is occurring an exception
What version of the product are you using? On what operating system?
IntelliJ 12.0.1
Plugin version 3.3
Windows 7
Please provide any additional information below.
See attachment to see files.
Stack trace:
imports: import org.junit.BeforeClass;import org.junit.Test;import
java.io.IOException;, settings: java;javax;org;com;: imports: import
org.junit.BeforeClass;import org.junit.Test;import java.io.IOException;,
settings: java;javax;org;com;
krasa.formatter.plugin.ImportSorterException: imports: import
org.junit.BeforeClass;import org.junit.Test;import java.io.IOException;,
settings: java;javax;org;com;
at krasa.formatter.plugin.processor.ImportOrderProcessor.process(ImportOrderProcessor.java:50)
at krasa.formatter.plugin.EclipseCodeFormatter.postProcess(EclipseCodeFormatter.java:91)
at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:84)
at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:52)
at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:124)
at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: krasa.formatter.plugin.InvalidPropertyFile: Property
org.eclipse.jdt.ui.importorder does not exists in
D:\workspaces\bacen\bcjur2\Modelos_e_Implementacao\Implementacao\config\bcjur2.i
mportorder
at krasa.formatter.settings.provider.ImportOrderProvider.readFile(ImportOrderProvider.java:29)
at krasa.formatter.settings.provider.ImportOrderProvider.readFile(ImportOrderProvider.java:16)
at krasa.formatter.settings.provider.CachedProvider.get(CachedProvider.java:25)
at krasa.formatter.plugin.processor.ImportOrderProcessor.getImportSorter(ImportOrderProcessor.java:61)
at krasa.formatter.plugin.processor.ImportOrderProcessor.process(ImportOrderProcessor.java:38)
... 35 more
Original issue reported on code.google.com by VictorDFB
on 16 Jan 2013 at 8:36
Attachments:
Newlines are added at the end of the file, despite the eclipse using the prefs
file does not add it.
Original issue reported on code.google.com by [email protected]
on 15 Mar 2012 at 10:49
when i right-click on the plugin in the installed plugin list then the option
'update' is greyed out. This means i have to uninstall-reinstall ?
Original issue reported on code.google.com by [email protected]
on 2 May 2012 at 7:52
I have made a simple Play! Framework Controller that uses a Play! Module (named
"Deadbolt"). I turned on the "new experimental import optimizer" (using 1.5.2.1
beta). In Eclipse i am using the default settings for organizing imports
(screen).
All formatting is fine but the ordering of the import statement for
"controllers.deadbolt.Restrict" is confusing and different to the eclipse
ordering.
Hope the screens may help. Let me know if you need more information.
Original issue reported on code.google.com by [email protected]
on 21 Mar 2012 at 12:06
Attachments:
Is it possible to format only the changed lines and not all the lines for a
file automatically?
Eclipse has an option to configure this.
Original issue reported on code.google.com by [email protected]
on 7 May 2013 at 11:06
[deleted issue]
The imports organized by the plugin look like this:
import android.widget.TextView;
import android.view.View;
import android.view.LayoutInflater;
import android.content.Context;
when they should be like this (like in eclipse):
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
Original issue reported on code.google.com by [email protected]
on 22 Apr 2013 at 11:46
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.