chuntungho / gist-snippet Goto Github PK
View Code? Open in Web Editor NEWAn IntelliJ plugin of code snippet tool based on GitHub Gist
Home Page: https://gist.chuntung.com
An IntelliJ plugin of code snippet tool based on GitHub Gist
Home Page: https://gist.chuntung.com
When trying to insert a gist, getting the following:
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'initialItem' of com/intellij/ui/components/labels/DropDownLink.<init> must not be null at com.intellij.ui.components.labels.DropDownLink.$$$reportNull$$$0(DropDownLink.java) at com.intellij.ui.components.labels.DropDownLink.<init>(DropDownLink.java) at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.initYoursPane(InsertGistDialog.java:269) at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.init(InsertGistDialog.java:174) at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.<init>(InsertGistDialog.java:97) at com.chuntung.plugin.gistsnippet.action.InsertAction.actionPerformed(InsertAction.java:33) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:298) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:315) at com.intellij.ide.actions.GotoActionAction.lambda$performAction$7(GotoActionAction.java:335) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:83) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:107) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:116) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransactionLater$4(TransactionGuardImpl.java:265) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
What could be the problem?
Hi! Thanks a lot for the plugin, it's great.
One small quality of life improvement I'd like to see is to auto-view the gist file contents when it's the only file in the gist.
Currently, all gists are listed on the left and to see the code, I have to first double-click the gist name to open the files list, and then click the file to see the code.
I'd like for the plugin to automatically display code on the right side for the gist when I click the gist itself. This could happen if there's only one file in the gist, or just always show the code for the first file, even if there are multiple ones present.
Add a keyboard shortcut for the insert modal and maybe give focus to the gist list. Mainly just asking for a workflow that only involves keyboard usage.
Thanks!
大佬好! 这个插件非常棒, 解决了大家苦之久已的代码片段收集和复用问题.
我主要使用Android studio (2021.1.1 patch3) 和GoLand (2020.3)这两个IDE.
我看了历史issue后发现该插件在上述两个IDE中表现和您描述的不一样.
我是从官方插件市场下载的Version 1.0.3
问题主要集中在插入界面:
希望本插件越来越好! 此致
盼复! 敬礼
I am trying to paste this file.
java.lang.AssertionError: Wrong line separators: '...) -> None:\r\n """\r...' at offset 105
at com.intellij.openapi.util.text.StringUtil.assertValidSeparators(StringUtil.java:2440)
at com.intellij.openapi.editor.impl.DocumentImpl.assertValidSeparators(DocumentImpl.java:716)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:610)
at com.intellij.openapi.editor.impl.DocumentImpl.lambda$setText$4(DocumentImpl.java:1091)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:1096)
at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.lambda$showInEditor$6(InsertGistDialog.java:367)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:955)
at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.showInEditor(InsertGistDialog.java:360)
at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.onSelect(InsertGistDialog.java:348)
at com.chuntung.plugin.gistsnippet.view.InsertGistDialog.lambda$createUIComponents$0(InsertGistDialog.java:121)
at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3020)
at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3521)
at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650)
at com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:649)
at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1120)
at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:306)
at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:200)
at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1709)
at com.intellij.ui.tree.ui.TreeAction.select(TreeAction.java:177)
at com.intellij.ui.tree.ui.TreeAction.select(TreeAction.java:152)
at com.intellij.ui.tree.ui.TreeAction.lineDown(TreeAction.java:108)
at com.intellij.ui.tree.ui.TreeAction.selectNext(TreeAction.java:367)
at com.intellij.ui.tree.ui.TreeAction.actionPerformed(TreeAction.java:76)
at com.intellij.ui.SwingActionDelegate.performAction(SwingActionDelegate.java:59)
at com.intellij.ui.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:48)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:323)
at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:47)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:584)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$9(IdeKeyEventDispatcher.java:706)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$10(IdeKeyEventDispatcher.java:706)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:346)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(IdeKeyEventDispatcher.java:703)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:647)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:595)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:478)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:467)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:225)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:815)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:750)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:774)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:813)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:743)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:467)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1676)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1634)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(DialogWrapper.java:1648)
at com.chuntung.plugin.gistsnippet.action.InsertAction.actionPerformed(InsertAction.java:42)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:323)
at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:47)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:584)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$9(IdeKeyEventDispatcher.java:706)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$10(IdeKeyEventDispatcher.java:706)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:346)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(IdeKeyEventDispatcher.java:703)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:647)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:595)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:478)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:467)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:225)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:815)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:750)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:774)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:813)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
plugin 1.1.0
PyCharm 2022.3 Build #PY-223.7571.203
There is an error when trying to connect to the GitHub account and it does not delete the account when reinstalling the plugin.
org.jetbrains.plugins.github.exceptions.GithubMissingTokenException: Missing access token for account
Plugin sometimes works but sometimes is rising an exception. I'm experiencing this on macOS Monterey 12.2 (21D49).
I have attached debug information provided by PyCharm - maybe there are some hints what could be the reason for these exceptions.
kill.trace.txt
creation.trace.txt
stacktrace.txt
Hi,
I like this plugin. I compared this with many other plugins and this one is best. Can we have some feature like searching by description when inserting gist snippets and local cache to make accessing faster?
The plugin throws the following exception:
com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'com.chuntung.plugin.gistsnippet.action.InsertAction' must override `getActionUpdateThread` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.chuntung.plugin.gistsnippet]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)
Information about IntelliJ and other Plugins:
IntelliJ IDEA 2024.1 (Ultimate Edition)
Build #IU-241.14494.240, built on March 28, 2024
Licensed to Tobias Hochgürtel
Subscription is active until January 30, 2025.
Runtime version: 17.0.10+8-b1207.12 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 12288M
Cores: 10
Metal Rendering is ON
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
editor.minimap.enabled=true
terminal.new.ui=true
Non-Bundled Plugins:
hunspell (241.14494.251)
dev.pnbarx.idea.treecolor (1.2.2)
com.bluewaitor.tsReact (1.4.0)
dev.meanmail.plugin.nginx-intellij-plugin (2022.1.1)
org.plugin.dot.id (1.5.3)
com.intellij.remoteControl (241.14494.150)
com.redhat.devtools.intellij.telemetry (1.1.0.52)
org.jetbrains.plugins.go-template (241.14494.150)
com.intellij.properties.bundle.editor (241.14494.150)
com.andrey4623.rainbowcsv (2.0.2)
com.jetbrains.edu (2024.3-2024.1-455)
com.jinsihou.react.snippets (1.1.1)
com.samvtran.plugins.macosforallkeymap (2.0.0)
com.jetbrains.space (241.14494.150)
com.steve.plugins.autoscroll (1.1)
com.intellij.apacheConfig (241.14494.240)
org.intellij.plugins.hcl (241.14494.150)
com.karateca.jstoolbox (1.10)
MultiHighlight (3.1.0)
com.paperetto.dash (3.3)
com.github.nhat-phan.codecleaner (2019.2.1)
freeriders.mag.Modular-Architecture-Generator (0.1.2-SNAPSHOT)
com.tabnine.TabNine (1.71.0)
name.kropp.intellij.makefile (241.14494.150)
com.github.jonathanlocke.intellij.easymapmac (1.0.5)
com.intellij.guice (241.14494.158)
com.chainstaysoftware.assertions2assertj (1.0.09)
com.adgainai.springbooturlfullpath (1.0.3)
gherkin (241.14494.150)
DevKit (241.14494.247)
com.github.rmatafonov.cucumber-scenarios-indexer (1.1.0)
String Manipulation (9.12.0)
com.intellij.wiremock (241.14494.150)
net.ashald.envfile (3.4.2)
io.conceptive.quarkus-intellij-plugin (1.3.2)
MavenRunHelper (4.27.1-IJ2022.2)
Groovy Console Plugin (0.1.5)
net.seesharpsoft.intellij.plugins.csv (3.3.0-241)
com.chuntung.plugin.gistsnippet (1.1.0)
com.github.yunabraska.githubworkflowplugin (3.2.1)
com.intellij.commander (241.14494.158)
org.asciidoctor.intellij.asciidoc (0.41.13)
com.intellij.aqua (241.14494.241)
awesome.console (0.1337.12)
com.lukasbach.intellij.snippets.typescriptreact (1.0.9)
com.intellij.plugins.macoskeymap (241.13688.16)
LiveTemplatePreview (0.3)
io.github.fstaudt.helm (0.8.2)
com.intellij.ml.llm (241.14494.240)
com.jetbrains.plugins.ini4idea (241.14494.240)
com.mallowigi (95.0.0)
com.yujunyang.intellij.plugin.sonar (0.2.2)
uk.co.ben-gibson.remote.repository.mapper (4.4.0)
com.haulmont.rcb (241.14494.140)
com.dmarcotte.handlebars (241.14494.150)
kemoke.net.cssmodule (1.1)
com.github.lppedd.idea-return-highlighter (0.8.3)
com.intellij.lang.jsgraphql (241.14494.150)
mdx.js (241.14494.140)
io.plugin.tsnode (2022.11.14-1)
JSTestDriver Plugin (202.5)
com.haulmont.jpab (241.14494.158)
com.github.copilot (1.5.1.5285)
org.sonarlint.idea (10.4.2.78113)
com.intellij.tide (241.14494.251)
com.github.bjansen.intellij.pebble (v0.11.0)
com.intellij.bigdatatools.core (241.14494.240)
com.intellij.bigdatatools.kafka (241.14494.158)
zielu.gittoolbox (500.2.3+233)
io.jetclient (2024.1.5-241)
izhangzhihao.rainbow.brackets (2024.2.2-241)
com.clutcher.comments_highlighter (2024.1.13)
net.labymod.intellij.singlehotswap (2.6)
LivePlugin (0.8.6 beta)
ru.adelf.idea.dotenv (2024.1)
com.jetbrains.packagesearch.intellij-plugin (241.0.8)
dev.turingcomplete.intellijdevelopertoolsplugins (4.1.1)
org.mapstruct.intellij (1.6.1)
Kotlin: 241.14494.240-IJ
WebStorm 2022
Plugin Version 1.0.3
The gist list is just empty, no exception thrown.
Have restarted WebStorm and re-added github account, gist list is still empty.
Hi, I'm seeing this error randomly on use.
The plugin works fine, but randomly the IDE alarm goes on with this message:
I tried to gather the steps to reproduce, but I was unable to. I hope the stack trace helps :)
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.