Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
gayanper
@gayanper
Hi All,
i need some help, did you found any licensing issue when including libs which are under EPL into a Apache License project ?
i'm trying to start a spring tools project consuming the spring language server which is EPL, and i thought to have my intellij plugin to be apache since it matches with intellij community licesensing
bluelovers
@bluelovers
image.png

anyone know how can i make run conf support read NodePackage setting
https://github.com/bluelovers/idea-run-typescript/blob/master/src/io/plugin/tsnode/execution/TsRunConfiguration.kt

every time i re-open project this will reset to default

kebiro
@kebiro
Test: Is this highlighted
Multi Line Highlight
'code'
code

Hello, I have a question related to Kotlin syntax. Would be great if someone could help.

I have two constructors, say

constructor(a: Int, b: Int) {
...
constructor(a: Int, b: Int) {
  this.a = a
  this.b = b
}

constructor(a: Int) {
  // I want something like this:
  this(a, 0)
}
How can I call constructor #1 from within constructor #2
kebiro
@kebiro
Oh, it seems people have moved to Slack
Tesla Ice Zhang‮
@ice1000
: this
kebiro
@kebiro
@ice1000 Thank you
Tesla Ice Zhang‮
@ice1000
It's recommended to
class A(val a: Int, val b: Int) {
  constructor(a: Int) : this(a, 0)
}
:)
kebiro
@kebiro
Once again, thank you. Have a good night (:
Tesla Ice Zhang‮
@ice1000
You too
Leason
@LeasonX

@LeasonX
截屏2020-03-11下午8.14.43.png
how to move this text to the end

LookupElementBuilder.create(keyword).appendTailText(text)

This method won't work

Tesla Ice Zhang‮
@ice1000
typeText
Not tailText
Leason
@LeasonX
image.png
I want this effect
Leason
@LeasonX
ok, i try it
Leason
@LeasonX
ok, it works, thanks
Tesla Ice Zhang‮
@ice1000
I know you want that effect
Leason
@LeasonX
Another question,how to get my custom settings(use ServiceManage.getService(Project project, Class<T> serviceClass ) method) after the IDE starts
I think the point key is the IDE lifecycle method, but I have no ideas
Tesla Ice Zhang‮
@ice1000
Use it when action is invoked maybe
Leason
@LeasonX
not that, I just want to get after IDE starts, action is not invoked at that time maybe
Leason
@LeasonX
I find this method : ProjectComponent.projectOpened works maybe
Leason
@LeasonX
yeah, it works
Thijs Broersen
@ThijsBroersen
I got a question and am not sure where to ask, so I'll try here: I am using the Pants-plugin for a Pants-build project. To set the Python version I am using pyenv and have set a .python-version in my project root. When running Pants from a shell it resolved the correct Python version. When I start IntelliJ from a shell in the scope of the project directory, the Pants plugin also resolves the correct Python version. When I start IntelliJ from some other location (or Desktop shortcut) it executes al commands from some other scope and hence does not resolve to the correct Python version.
So my question is: Is this a Pants-plugin problem or IntelliJ? Can I configure some path (e.g. project root) to set as scope for all commands to be executed?
iguissouma
@iguissouma
Any one familiar with kotlin compiler engine?
Jeff Martin
@reportmill
Does anyone know of an example of adding a new file action? I'm trying to write a plugin for a visual editor for report templates and UI files and I want to have a menu to kick it off, "New Report Template File".
Jeff Martin
@reportmill
Thanks for the response! Yes, I found that one, but it isn't very specific about "New xxx file" actions. I've been looking at the CFML plugin example in the JetBrains GitHub, and it shows a reasonable example of CreateFileFromTemplateAction, but it still isn't a lot to go on.
Kirill Marchuk
@62mkv
you can look at the Intellij-community source code, for Java plugin for example
I found that one most suitable and quick to implement, as it provides almost finished solution
see CreateFileFromTemplateAction
and com.intellij.ide.actions.CreateFileFromTemplateDialog
Jeff Martin
@reportmill
I've been trying to understand how it works from the few examples I've found now, but I can't understand how it gets the content of the new file. Do I store a template file somewhere?
Borna Safa
@jarmaker
Hi all, I am not sure if this a correct Channel to ask but is there a general intellij Channel in gitter?
Jon S Akhtar
@sylvanaar
Going to also try here: My plugin seems to have been really broken by 2020 update - are there any resources from people who have already been down this path
Patrick Scheibe
@halirutan
@reportmill @62mkv @jarmaker @sylvanaar As Jon already found out, we moved this chat to Slack. If you look at the top of this page, you see a link where you can get your invite.
系统领域学术研究的一定要加好友多交流
@cld378632668
idea 打开一个新project一直卡在 preparing workspace 小窗口不动,要怎么解决?
Invoker-liu
@Invoker-liu
image.png
Maxim Smolyakov
@msmolyakov
Hi! Is it possible to publish my own TextMate bundle as an independent IntelliJ plugin? Is there any doc explaining how to do this?
I know that as a user I can go into the settings of the TextMate plugin for IntelliJ and manually add any bundle. But I would like this to be done as a separate plugin for IntelliJ and its TM plugin.