lukwebsforge / shareit Goto Github PK
View Code? Open in Web Editor NEWTwo Intellij IDEA plugins for uploading code / files to hastebin and Discord
License: MIT License
Two Intellij IDEA plugins for uploading code / files to hastebin and Discord
License: MIT License
I appreciate this project and use it daily, please put up a way to at least buy you a coffee or beer.
The new Discord Integration called DiscordBeam for IDEA-based IDEs is now ready for testing.
Just download the .zip file and drag n' drop it onto your IDE.
DiscordBeam-1.01.zip
To use the plugin, just right click onto a file in the project panel or right click in an editor window and select Beam to Discord
Thanks @SobieskiCodes for the idea!
Add https://hastebin.com/ as a service for sharing large files.
If the HasteIt plugin is also installed, the service should use its settings.
Idea: #6 @SobieskiCodes
Is there a possibility to set custom URL to self-hosted haste-server instance?
If you want to share long files via GitHub in IDEA 2019.3, you can't, because the package name of a data class changed.
Thanks to #8 @iasemenov, who notified me about this issue and created a pull request.
The problem is fixed for the upcoming relase, but the plugin currently only works in this version. The plan is to create two Gradle builds of the plugin (one pre 2019.3 and the other post 2019.3) and distrubute these two version. If the plan works, theere will also a version of the plugin for older IDE versions.
In my previous issue #3 I forgot to mention that there's also a Gist button in the tab rightclick menu where you also might want to add a Haste button.
Thanks for implementing my previuous suggestion.
It would be useful to be able to upload an entire file by right-clicking without selection and right-clicking on a file. Both also contain a Gist button.
It would be nice, if you could add multiple Discord webhooks like you can add multiple GitHub accounts to the IDE.
Idea: #5 @SobieskiCodes
Incompatible with version 193.5233.109
Hasteit loaded in fine.
10:27 AM Plugin Error: Plugin "DiscordBeam" is incompatible (target build range is 183.4284.148 to 192.*).
EDIT: I'm dumb, saw the change log.
Hi!
Did you managed to fix issue with dynamic plugin load?
Found your issue on jetbrains support forum:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008211319-Plugin-not-unload-safe-because-class-loader-cannot-be-unloaded
Thanks!
It would be convenient to publish chunks of logs from the Debug/Console tab
The new hastebin API requires an API key linked to a GitHub account. This is due to the acquisition of hastebin by Toptal.
This eliminates the simplicity of hastebin and would require some changes to the HasteIt plugin for IDEA-based IDEs. It isn't worth implementing those changes as the new hastebin has virtually no advantage over Pastebin or GitHub Gists.
That's why I'm thinking about retiring this plugin. Any thoughts?
There should be a setting for the avatar url like there is one for the name of the webhook bot.
After install PlugIn give me an error, cant ran Intellij at all. please help!
While i was programing a random class this error popped up and since then it has constantly appearing! BTW nice plugin, easy to use and quite useful. Anyway, the error is the following:
java.lang.Throwable: cannot share data context between Swing events; initial event count = 102167; current event count = 102353
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:345)
at com.intellij.openapi.actionSystem.DataContext.getData(DataContext.java:55)
at com.intellij.openapi.actionSystem.AnActionEvent.getData(AnActionEvent.java:184)
at com.intellij.openapi.actionSystem.AnActionEvent.getProject(AnActionEvent.java:141)
at de.lukweb.discordbeam.DiscordMenu.uploadText(DiscordMenu.java:64)
at de.lukweb.share.ShareMenu.actionPerformed(ShareMenu.java:96)
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.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:604)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:657)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:656)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:517)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:472)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:221)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:830)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:775)
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)
Hope it can help to fix further bugs.
I think sending the code inside of an embed, along with sending the name of the file will make the plugin much nicer to use and share code with other people. Code blocks are still supported in an Embed Description, and the title of the embed could simply be the filename (with the footer saying Discord Beam, allowing for avatar and username to be customized - you still get branding!)
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.