How to debug visual studio code extension in intellij - intellij-idea

I have a visual studio code extension, but usually I develop in java so I'm much more experienced in intellij IDEA than vs code. So my question is, is there a way to debug my vs code extension in intellij?
Intellij has plugins for compiling and run typescript programs, it also supports node development.
I think I should create an npm run configuration, where I put npm compile script from package.json to before launch section and then run another npm script that will launch the vs code with the compiled extension. But I don't actually know how this script should look like, or if there is a better way to go.

Try importing all the libraries first.
InelliJ has an excellent feature of running each and every method and class individually, use that feature,
To use that feature, there is a green triangle at the right side, click on that to debug

Related

Contribute to TestCafe repo for features/fixes

I want to take a stab at contributing code to TestCafe for bugs/issues.
Can anyone of the contributers help me with setting up my machine? How do you get started? (apart from forking the repo) Are there any tools/extension that specifically help you?
Node.js is a prerequisite and needs to be installed on your machine. You need to run npm install or yarn in the local copy of the repository after it is cloned. You can use gulp build to build the project without running tests. After the project is built, you can start TestCafe by executing node bin/testcafe.js <TestCafe args> in your terminal.
You can use any text editor of your choice. JetBrains Webstorm is an ultimate solution for a JS project like TestCafe, but it is paid and proprietary. Visual Studio Code is a good open-source and free alternative.
As for other questions, I suggest you refer to the Code Contribution section of our guide, which covers the majority of topics.

intellij hybris class recompile not working

I installed hybris plugin.
Imported project with it.
Have done ant clean all.
Then, if I try to build->recompile class it's not working. Seems like idea doesn't see classes generated by ant.
If I do build->rebuild project and then build->recompile class it's working fine, but it's not convenient at all. I believe there is fix to this, but I couldn't find it.
This is usual error I've got(packages are different for different cases):
this is essentially the expected behaviour. You can't mix "ant" build
and "native IDEA" build. Those are two separate build systems.
This is an explanation of hybris plugin developer (hybris-integration.atlassian.net/browse/IIPS-120)
And he suggests a solution for that:
before you try to import the project you need to do ant clean all (you will not need to use ant afterwards)
import the project using hybris plugin.
Press Build->Recompile project
Then you can create or modify your test run configuration if needed.
Recompile your classes and so on directly in Idea.
Also, he mentioned deal with JRebel here (hybris-integration.atlassian.net/browse/IIPS-47)
we support both compilation modes. Ant targets and idea internal. They
shouldn't be mixed as idea has it's own compilation model/cache. If
you use idea compilation then you can use JRebel or hotswap.
You cant hotswap classes in hybris without the help of a hotswap agent.There is a tool available in the market called JRebel. It is a good commercial tool if one can afford. However, if you are an open-sourcist, there is a promising alternative to JRebel, which is DCEVM (Dynamic Code Evolution Virtual Machine) along with HotswapAgent.
I don't know if this help,
you can start another cmd console, and run
setantenv and ant build to hotswap class in runtime.

Why use Error-prone plugin in Android Studio

I have recently installed Error-prone plugin in Android-Studio and configured the settings as explained on its website.
The plugin is working fine but I have noticed that whatever errors the Error-prone-plugin shows, at compile time, is already highlighted by the Lint tool in editor.
So I want to know why i should use Error-prone in Android-studio.
Or what are the details I don't know about Error-prone or Lint tool.

IntelliJ IDEA: Unable to create a Gradle project

I'm facing difficulties in setting up a gradle project. During setting up of the Gradle settings in the wizard,
I am not able to use the default recommended gradle wrapper because it downloads the Gradle and the network connectivity is very bad. So I go with the local gradle distribution which I have installed in my Ubuntu. On refreshing of the gradle project after creation, I always get stuck to this error. When I run the gradle build command through the terminal on the empty project, It works fine.
I have also tried the troubleshooting solutions given by the IDE. But, that made no improvements. Need assistance to solve this problem.
Comment if any additional info required.
As no-one else has chipped in, an approach that should work is to use the Gradle Idea Plugin instead of relying on the build in support Gradle in Idea. In my experience the plugin supports a wider range of Gradle project structures than Ideasupports directly. So you would
Create a Gradle project outside Idea and confirm it all works on from the command line.
Add the Idea plugin to the project
Run 'gradle cleanIdea idea' to generate the Idea project files.
Open up the newly generated project files from Idea and off you go.

How can I check the build command for my JavafX app in IntelliJ IDEA

Im creating a JavaFX application in IntelliJ IDEA, and I am new to IntelliJ.
I would like to be able to compile my JavaFX application on a Raspberry Pi, but my app is quite complex and relies on 3rd party libraries, etc.
I would like to be able to see what exactly is going on in IntelliJ when I run "Make Project"
Is there a command line output screen that Im simply missing? I want the exact command that IntelliJ uses to compile the application.
Essentially, on the Pi, I want to get the code from my repo, run the compilation command and produce an executable JAR on demand.
I have of course read the doco on how to compile a JavaFX application, but if I could see what IntelliJ does, that would be fantastic.
So far I haven't found such an option but the process is most likely some sort of flow based on IntelliJ plugins and the documentation seems to support this theory.
Perhaps you'd consider using a software management and build tool such as maven or ant or something similar. This should give you (almost) unlimited options to configure your desired build sequence and 3rd party dependencies.