I love technology related to Android.
-
Google Developers Expert for Android
-
DroidKaigi co-organizer
I'm developing the official DroidKaigi app with contributors.
Android postfix plugin for AndroidStudio
License: Apache License 2.0
I love technology related to Android.
Google Developers Expert for Android
DroidKaigi co-organizer
I'm developing the official DroidKaigi app with contributors.
when i used R.id.viewid.find+Tab
Android Postfix Completion threw an uncaught NoClassDefFoundError.
android studio 2.1.3
Plugin Error
update to Version: 2.0.3 . Android Postfix Completion threw an uncaught NoClassDefFoundError. Disable Plugin
why?
The version of Android studio and Android Postfix Completion are 4.0.1 and 2.0.3.
I found that android-studio has .if and .else completion, but no .ifelse completion like:
condition.ifelse cast to:
if(condition) {
} else {
}
hope u can make this convenience:)
Hi there,
First of all, I have to say that I'm a big fan of this plugin π π but I found a quite annoying issue, this plugin takes as TAG the name of the class but it's unable to detect that a class name is bigger than 23 characters which creates errors and you have to delete manually a part of the TAG in order to have a working TAG.
I think this issue could be easily fixed by removing all characters after the 23th one. Unhapilly, I do not have that much time to understand your code and modify it in order to get it to work π .
Best,
Android system service cast is cumbersome.
I imagine a completion such as the following .
Context.NOTIFICATION_SERVICE.sysservice
to (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
You can get map that system service name to class name in the following.
https://android.googlesource.com/platform/tools/base/+/master/lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/ServiceCastDetector.java#130
R.id.edittext.find
to
(EditText)findViewById(R.id.edittext)
That feature is very useful!
If you can implementation, Please do it and send pullrequest!
If I can this , I report to this issue.
When I'm using postfix ".find" Android Postfix Completion throw an uncaught NoSuchMethodError.
Android Studio ver.: 3.0.1.
Plugin version: Version: 2.0.3
@takahirom Could you look at this issue?
Current caret is defined, cannot operate on other ones
java.lang.IllegalStateException: Current caret is defined, cannot operate on other ones
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:331)
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:81)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:136)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:118)
at com.intellij.openapi.editor.actionSystem.EditorAction.updateForKeyboardAccess(EditorAction.java:122)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:135)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:114)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$7.run(ActionManagerImpl.java:1384)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:675)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:656)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:626)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$11.run(FocusManagerImpl.java:522)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2361)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:500)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:59)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.tryToExecuteNow(ActionManagerImpl.java:1372)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$300(ActionManagerImpl.java:77)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$6.run(ActionManagerImpl.java:1355)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.tryToExecute(ActionManagerImpl.java:1360)
at com.kogitune.intellij.codeinsight.postfix.internal.AbstractRichStringBasedPostfixTemplate.onTemplateFinished(AbstractRichStringBasedPostfixTemplate.java:90)
at com.kogitune.intellij.codeinsight.postfix.internal.AbstractRichStringBasedPostfixTemplate$1.templateFinished(AbstractRichStringBasedPostfixTemplate.java:80)
at com.intellij.codeInsight.template.impl.TemplateState.fireTemplateFinished(TemplateState.java:1288)
at com.intellij.codeInsight.template.impl.TemplateState.cleanupTemplateState(TemplateState.java:1007)
at com.intellij.codeInsight.template.impl.TemplateState.gotoEnd(TemplateState.java:940)
at com.intellij.codeInsight.template.impl.TemplateState.gotoEnd(TemplateState.java:944)
at com.intellij.codeInsight.editorActions.smartEnter.SmartEnterAction$Handler.executeWriteAction(SmartEnterAction.java:71)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:56)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:49)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3$1.perform(EditorActionHandler.java:206)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler$3.perform(EditorActionHandler.java:203)
at com.intellij.openapi.editor.impl.CaretModelImpl$3.run(CaretModelImpl.java:342)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:422)
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:333)
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:200)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:98)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:109)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:83)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:595)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:646)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:485)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:215)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:622)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
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)
As the title said.
Like string.xxx -> "string"
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.