Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
itmuckel
@itmuckel
I want to programmatically disable the boldness:
grafik.png
Is this possible?
Fudge
@natanfudge
what is "non-roamable storage"?
Fudge
@natanfudge
if I want to depend on a bundled plugin, how do I know what the right artifact id is?
Steve Ramage
@SJrX

What exactly does implementing a ReferenceContributor do exactly, in terms of functionality to the app. I have a PsiReferenceContributor that is allegedly providing references from a properties file to Java field names, however, I can't hit CTRL+B on it in the properties file, nor can I find usages of it, in the code.

If I step through the debugger, I can see the references are being created correctly (I created a new subtype of PsiReference), and the and the element is the element, and the target is the PsiField.

itmuckel
@itmuckel
@SJrX You need to implement this too http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/find_usages_provider.html. The ReferenceContributor provides the base for other functionality as far as I understand. But for Ctrl+B to work you need a FindUsagesProvider.
Patrick Scheibe
@halirutan
@SJrX Then something is off. To give a concrete example: In my language we have usage strings for functions. So something like func::usage = "func[x] does really awesome things". Here the word func is part of the string and can appear everywhere inside the usage string. My reference contributor checks all strings if they are indeed such usage definitions and connect the words of the function inside the string with the declaration of func. Now, I can navigate from the appearance of func inside the string to the definition and more importantly, everything gets renamed correctly.
Patrick Scheibe
@halirutan
@natanfudge If I understood this correctly, then "non-roamable" means that opposed to certain settings, this kind of persistent data cannot be shared like you can with other project/module settings, but I might be wrong here.
Yann Cébron
@YannCebron
@itmuckel you can define your own attributes, but it's really better to inherit from defaults and keep "standards" like bold formatting for keywords
Steve Ramage
@SJrX
What is the best way to get a PsiReference to a field, it looks like PsiField.getReference() returns null, so I just created my own subtype inline. I can only assume there is a much better way of doing this.
Scott McKinney
@rsmckinney
Hey guys. Given a PsiElement I need a standard way to get to the physical virtual file corresponding with that element. Normally this is a simple matter of getContainingFile().getVirtualFile(). But some PsiFiles are "light", for instance the XmlFile is this way -- it maps a fake dtd to the xml file. But I really want the underlying physical file, but I want to avoid one-off hacks involving if-statements like if (isXmlFile()) ....
Scott McKinney
@rsmckinney
Ah, nm, I found a way.
Calssess
@Calssess
Hi i'm newbie to make plugin, I wanna make some auto completion.(And I have some code data for completion) Is there any way to save data to someone who install my plugin? (If i can, save to local or save in some intellij DB?)
Purusothaman Ramanujam
@Purus
@Calssess You can use PropertiesComponent.getInstance(project).setValue() to save values
Calssess
@Calssess
@Purus Thank you!! I will try it
Yann Cébron
@YannCebron
Today we are introducing JetBrains Platform Slack for plugin developers - https://blog.jetbrains.com/platform/2019/10/introducing-jetbrains-platform-slack-for-plugin-developers/
See you there!
Gareth Jones
@G-Rath

Hi All, was wondering if someone would mind giving me a hand understanding how to go about supporting IJ products optionally? Or point me at the right documentation?

I've seen bits on how to do it around, but apparently I've not done it right: http://puu.sh/EyqD5/3451895b20.png

I'd like to be able to support Ruby & Javascript independent of if each is available
Tesla Ice Zhang‮
@ice1000
An optional, separated plugin.xml can do this
itmuckel
@itmuckel
@YannCebron Is this new Slack channel replacing this channel? I'd like to hang out where most people are. ;-)
Patrick Scheibe
@halirutan
@/all To give a somewhat more official "inofficial" statement: Colin and I started this Gitter chat in 2017 somewhat in a rush. We were talking about the SDK and it was so nice to discuss things with a fellow IntelliJ plugin dev that we decided it's worth a shot. We weren't sure if it works and if others will join. Since then, all of you have made this place to what it is now: A friendly room where we can hang out and discuss problems. It was clear from the start that it's not going to be an official channel, where JB devs contribute. They already maintain the IntelliJ forum and JB employees do a really great job there. Maintaining and contributing yet to another chatroom would probably keep them from working on IDEA. This was and is understandable and we always had the approach to direct people to the forum when we cannot answer a question or when the question would be of general interest.
Patrick Scheibe
@halirutan
Nevertheless, we always knew that Gitter is not the best way to chat. Lacking of threads for discussions and channels made it hard to follow messages. Our hope was always that JB sees that this chat works and that it's not a replacement for a good forum where information are archived for the future. Since @YannCebron started to contribute, this room became so much more helpful and he did and does an awesome job. From time to time I discussed the idea of a JB-provided Slack chat with him and we are fortunate that JB sees the value of this place and finally made the step to provide Slack for us. Although I don't know any details, I am quite certain that @YannCebron was the driving force behind it.
So my answer to "Is Slack replacing this channel" is a clear YES. We should move all together and take the good vibes we nurtured over the years with us.
Chris Cunningham
@cmcpasserby
yes really good to here there is a slack, between channels and threads its much easier to keep it organized. also something i already use for work
Yann Cébron
@YannCebron
Thanks @halirutan and @cmf for running this chat and everyone who contributed during the years. I hope the new platform will be even more accessible and useful to everyone :thumbsup:
Tesla Ice Zhang‮
@ice1000
Wow, new slack channel
itmuckel
@itmuckel
Alright then. See you there. :-)
Harsh
@Harsh2402

Hello,
I have used my plugin to build number 191. and for the JPanel, I can see my Panel on the action.
But when I tried to run it in 192.
build number android studio (4.0 preview) then it returns the error inside JPanel class.

I have used JTextField inside it.
It returns the following error.
java.lang.NoSuchMethodError: com.intellij.ui.layout.Cell.invoke$default(Lcom/intellij/ui/layout/Cell;Ljavax/swing/JComponent;[Lcom/intellij/ui/layout/CCFlags;ILcom/intellij/ui/layout/GrowPolicy;Ljava/lang/String;ILjava/lang/Object;)V
Can anyone help me on this?

Réda Housni Alaoui
@reda-alaoui

Hi everyone,
I wrote a plugin performing massive refactoring on a targeted project.
The plugin action is fully wrapped inside a WriteCommand.
Everything works fine except the WriteCommand always freeze the IntelliJ UI, even side projects one.
I tried to trigger the WriteCommand from another Thread but it always fail.

Is there a way to have a responsive UI (at least for project neighbors) during a WriteCommand?

Patrick Scheibe
@halirutan
@reda-alaoui @Harsh2402 Please move to the Slack chat. You find the invite link at the top of this chat.
Fisk Debug
@fiskurgit
High, I've requested Slack access yesterday - but no response yet.
*hi!
OuYuBin
@OuYuBin
@YannCebron How do I get the size of the entire area of ​​the current editor? Or a Rectangule Object. Thanks
Patrick Scheibe
@halirutan
@OuYuBin We move to Slack! Please see the invitation link at the top of this chat.
OuYuBin
@OuYuBin
@halirutan Thanks
Igal Tabachnik
@hmemcpy
Hi all! Is there a way to add the scala-plugin test dependencies to my own plugin (with gradle?)
I want to write some test using the base classes that are already present in the scala-plugin... any way to get it without copying it over to mine?
Alexis BRENON
@AlexisBRENON
@hmemcpy We move to Slack! Please see the invitation link at the top of this chat.
Igal Tabachnik
@hmemcpy
Cheers, thanks!
GRYE
@GRYE

Hi everyone!

Can someone explain me, how can I change a text, which pop-ups upon variable when I hover mouse with CMD pressed over it?

zifeihan
@zifeihan
@YannCebron excuse me. how do i jump code form method descriptor, like this input "com.ganpengyu.trace.store.MethodParser#reifyTypeArguments" to jump it declaration scope.
GRYE
@GRYE
@YannCebron can you help please?

Hi everyone!

Can someone explain me, how can I change a text, which pop-ups upon variable when I hover mouse with CMD pressed over it?

Edoardo Luppi
@lppedd
Slack! See above
Eyal Katz
@eyalk100_twitter
what are you favorite intellij shortcuts?
Filipe Regadas
@regadas
Hello, i have a case where a macro @foo class Foobar that generates a case class Foobar(a: Int) extends Bar. is it possible to inject the hole case class? it doesn’t seem to be possible these days with injectInners.
Filipe Regadas
@regadas
saw the move to slack :)