Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

Haxe (haxeflixel) debugging and console logging

$
0
0

Hello, I am new to IntelliJ and Haxe but I've decided to try a project to gain experience! I'm working on a Mac FYI and I'm experiencing some frustrations early on. I have successfully set up the project to where I can develop and build, but I can't see any traces in the console which would be extremelly helpful. Another issue is it seems to ignore my break points. Basically I'm trying to figure out how to debug and it's not coming along very easily. I've searched a lot online for tutorials but nothing seems to deal with these issues specifically. I'd like to see a "Hello World" even output in the console window...

 

Thanks for any advice!


IntelliJ code style inspections

$
0
0

I have setup code style rules for Java in IntelliJ -> Preferences -> Code Style -> Java. Is there a way I can have IntelliJ highlight any of the rules being broken in the code in pre-existing code? For eg. this particular file is using spaces instead of tabs etc.

ExtensionPoint

$
0
0

Hi,

 

how do I use my own extension point in the plugin?

 

I have defined my extension point SuperPluginConfiguratorFactory with an interface and would like to be instantiated by CommunityEditionConfiguratorFactory. In case I detect ultimate edition I'd like to have UltimateEditionConfiguratorFactory implementation instantiated.

  • plugin.xml
<idea-plugin version="2">

    <id>com.intellij.idea.plugin.mysuperplugin</id>

    <extensionPoints>
        <extensionPoint name="SuperPluginConfiguratorFactory" interface="com.intellij.idea.plugin.project.configurators.ConfiguratorFactory"></extensionPoint>
    </extensionPoints>

    <extensions defaultExtensionNs="com.intellij.idea.plugin.mysuperplugin">
        <SuperPluginConfiguratorFactoryimplementation="com.intellij.idea.plugin.project.configurators.CommunityEditionConfiguratorFactory"></SuperPluginConfiguratorFactory >
    </extensions>

    <depends optional="true" config-file="spring-optional-dependencies.xml">com.intellij.spring</depends>
...

 

 

spring-optional-dependencies.xml

 

    <extensions defaultExtensionNs="com.intellij.idea.plugin.mysuperplugin">
        <SuperPluginConfiguratorFactoryimplementation="com.intellij.idea.plugin.project.configurators.UltimateEditionConfiguratorFactory"></SuperPluginConfiguratorFactory >
    </extensions>

 

in java what do I do when I want to get ConfiguratorFactory instance?

 

Extensions.getExtensions("SuperPluginConfiguratorFactory");
returns exception 
java.lang.IllegalArgumentException: Missing extension point: SuperPluginConfiguratorFactory in area null

Intellij with Jetty issue

$
0
0

Hi !

 

I need to deploy a war that contains a specific jetty-web.xml but there is not way to specify it , the content of the file is like this :

 

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/</Set>
    <Set name="war"><Property name="jetty.webapps" default="./lib"/>/favor.war</Set>
    <Set name="extraClasspath">./conf/</Set>
    <Set name="maxFormContentSize">200000</Set>
    <Set name="configurationClasses">
        <Array type="java.lang.String">
            <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item>
            <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item>
            <Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item>
        </Array>
    </Set>
    <Set name="systemClasses">
        <Array type="java.lang.String">
            <Item>org.eclipse.jetty.webapp.</Item>
        </Array>
    </Set>
    <Set name="serverClasses">
        <Array type="java.lang.String">
            <Item>-org.eclipse.jetty.webapp.</Item>
        </Array>
    </Set>
    <Set name="parentLoaderPriority">true</Set>

    <Call name="setAttribute">
        <Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>
        <Arg>^$</Arg>
    </Call>
</Configure>


But Intellij doesn't provide a way to do it , I found that Intellij is creating in tmp folders that contains an xml with the following , which seems 
to be autogenerated from intellij based on the options that we have in the ide.



<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"><Configure class="org.eclipse.jetty.webapp.WebAppContext"><Set name="contextPath">/</Set><Set name="resourceBase">/home/apps/workspace/favor/build/classes/artifacts/favor/exploded/favor.war</Set></Configure>

Any idea on how to specify it ?
Thanks !

Dart plugin, can Intellij import project from dart editor?

$
0
0

Before I download Intellij I need to know if i can import a small dart project being developed with the now defunct dart editor.  My project has both serverside and webside code.

 

Thanks

Scala Project - Dependency Management

$
0
0

I am evaluating Intellij for one of our new scala project and may purchase the product once I am fully satisfied with my evaluation.

 

This is also my first attempt to move from Eclipse default build management to SBT build management in IntelliJ. So kind of bit lost, appreciate any kind of links or video that will help me to migrate my projects to IntelliJ Idea.

 

I have around 7 scala projects in Eclipse, so similarly i will create 7 scala projects in IntelliJ, hope this is the right way to migrate.

 

Additionally, each of the project is dependent upon few common libraries, how do i reference this project dependency during design time so that I can access the project class and traits.

 

I am reading on SBT and it seems that i need to follow multi build management approach to achieve this during runtime.

 

I also work on Visual Studio  platform and dependency management is just a breeze over there.

 

Thanks in advance.

CLion community version?

$
0
0

I wonder why there's no free version of CLion?

 

I don't use C/C++ most of the time. But I still want a great IDE like CLion. Especially if you don't work on C/C++ environment, having an IDE can be really helpful.

 

I currently have an IntelliJ license, but the C/C++ plugin is nothing like CLion. It would be awesome if JetBrain provide a plugin and make IntelliJ IDE works like CLion. If not, a free version of CLion would be nice.

Git Annotate feature behavior

$
0
0

The annotate feature is very useful to track the changes by line of code. however given the git behavior with commit and author timestamp after merge, not sure whether annotate displays the right info. here is a test case. Developer X modified line#10 and checked in the code in file F1 on Aug 6th into feature branch B1 with commit id "c1". on Aug 15th, the code was merged from feature branch into master with commit id "c2". When i checkout the master branch in intellij and run annotate on a file F1, i would expect it to show that against line#10, the commit "c2" and timestamp of Aug 15th since this reflects the time when the change was introduced in master branch. however it shows "c1" and Aug 6th.

 

Interested to hear what you think.

 

Appreciate any thoughts and insights.

 

Thanks,

Venkat

 

Intellij community edition 14.1

platform windows


Multi-project Play applications in IntelliJ

$
0
0

Hi all.

 

I’m using IntelliJ to develop a Play application. The application has several maven dependencies developed in house, some of them being marked “SNAPSHOT" meaning I want to see changes made in them immediately.

 

Now. When I make changes to the SNAPSHOT dependencies in IntelliJ, my Play Application doesn’t pick them up undil I build and install the modified artifacts (using maven) and trigger an SBT-build of the Play project. Otherwise the application doesn’t see my changes.

 

Is there any way for my Play application to resolve dependencies locally, without me having to do an install and build every time I modify one of the maven projects?

 

Cheers,
- hugi

 

PS: For those familiar with the Eclipse way of thinking, that’s kind of what I’m looking for. There I can split my project up into multiple modules and have Eclipse worry about resolving my dependencies in the workspace.

How much functionality is there in the Spring diagram for Java config?

$
0
0

Consider the following Java config (from Spring in Action)

 

@Configuration
@EnableTransactionManagement
@ComponentScanpublicclass RepositoryTestConfig {    @Bean    public DataSource dataSource() {...}       @Bean    public SessionFactory sessionFactory(DataSource dataSource) {...}       @Bean    public PlatformTransactionManager platformTransactionManager(SessionFactory sessionFactory) {...}}   

 

When I invoke the Spring Dependencies diagram I get the following:

 

spring-dependencies-diagram.png

 

IDEA sees that the sessionFactory is injected in the repositories but misses the dependencies from the Java config above. sessionFactory depends on dataSource and platformTransactionManager depends on sessionFactory.

 

What functionality is there in the diagram generated from a JavaConfig? The documentation doesn't really go into the details of what is or isn't supported. What I see now doesn't look very helpful for a big project.

 

Is there any new functionality in the pipeline for version 15 (I'm on 14.1.4 now)?

How to add Java EE Servlet API library on your compile classpath

$
0
0

Hi,

 

I am new to IntelliJ and I have been working on a few small projects to familiarize myself

with IDE and how to develop Java web projects with it.

 

I recently picked up Professional Java for Web Applications to practise my web development skills

and I wanted to try it because it focuses on IntelliJ rather than eclipse.

 

My main issues are from not nowing my way around the IDE at all. I have come across a problem

that I have been unable to figure out how to do correctly even while im sure it's not a complicated thing to do.

 

How do you add Java EE Servlet API library on your compile classpath ?

Where is the compile classpath located in IntelliJ?

 

Any help is appreciated!

PHP + Wordpress + Remote interpreter

$
0
0

I am trying to get setup to run and start some new projects. Primarily I work with WordPress and Python.

 

We have a development server on premisses so I setup the remote PHP interpreter.

Now that I am adding wordpress into the mix I am not sure if I have set things up correctly.

 

If I am using wordpress do I need to use a local interpreter for things to work correctly or is there a way to setup wordpress with the remote interpreter?

Maven import modules

$
0
0

I'm working on a large maven project with a lot of modules. I'm trying to import just several of them and when importing, I'm selecting the root folder, specifying the "search for projects recursively" option.

 

The problem is that on the step "Select maven projects to import", I see only several of them displayed. If I choose Finish, all modules are imported succesfully (even not visible in the previos step).

I'm using 14.1 version, and I do remember that with an older IDEA version all modules were displayed before finishing the wizard. However in the meantime something with my project may be changed as well (e.g the problem may be connected with my project).

 

Does anyone have a clue what may be wrong?

 

Thanks

Ivaylo

Syntax highlighter for config files (.cfg, .ini, .rc)

$
0
0

It's higly strange, but I can not find any configs highlighter.
Not in idea (14.1 ultimate), nor in plugins.

 

How it is possible?

Great feature in Intellij for Mac for keyboard access to Menus

$
0
0

Intellij is the only OS/X app I am aware of that supports a single keystroke combination access to the menu items:  When I press the "Option/Alt" key and then the mnemonic/first letter of the top level menu then the menu drops -down just like in Linux/Windows.

 

To make this work one needs to disable Option as "alternate key codes".

 

Thanks for making this work - my fingers appreciate it.


Intellij as possibly the most advanced Mac App AFA keyboarding / mnemonics

$
0
0

Mac is infamously keyboardist not-friendly.  However Intellij is AFAIK THE BEST Mac app at mitigating the pain.  It is the only Mac app of which I am aware that allows using the Option/Alt key to access mnemonics directly from the Menu Bar without resorting to the "Access the Menu Bar" keystrokes beforehand.

 

Now I admit to being a frequent complainer about Intellij bugs / shortcomings.  But the point is I keep coming back to IJ. Eclipse is not a competitor.  Thanks for paying attention to these small details that are not all that easy to remember/explain when queried whey we have strong (positive) feelings for IJ - even given its various quirks.

 

BTW: accessing the Menu Items using Option/ALT does require a modification to the Mac keyboard settings:  one needs to create a custom Input Source to disable "special characters" via Alt/Option. I will paste the contents of mine after I re-verify its correctness.

 

UPDATE

 

Actually it appears that the Mnemonics are not even using the Mac OS/X standard menu-ing. They appear to be using Java windowing primitives.  Notice in the screenshot below that the menus that I have accessed via the ALT/OPTION key are "living" within the Intellij window frame  - and not from the Top Menu Bar.    This is FINE -works GREAT!   (IOW please do not change (/break..) this behavior!)

 

Screen Shot 2014-10-25 at 3.12.01 PM.png

Scala / SBT / Cucumber feature file format and navigation?

$
0
0

Hi all, I'm finding two issues with Scala/Cucumber in Intellij 14 (and 15 EAP)

 

1. Cucumber feature files are not colourised according to the Colors and Fonts preferences.

 

The files have the right icon, butthe  only receive a basic Gherkin colourisation (i.e., Given, When, Then keywords but nothing else). It's mostly plain text.

 

I've got the cucumber-scala plugin for Intellij installed. Is there something else I need to do?

 

2. This might be related: there's no navigation from the feature file to the Step definition.

 

Is this being worked on?

 

Thanks.

Using intellij with dual monitors

$
0
0

Actually I'm using triple monitors.

 

Somehow I can't put the log windows on a seperate monitor.

 

Plesae see the video.

 

Is it a bug?

 

Revert 14.1 fonts back to 14?

$
0
0

How can I do this as I don't like the Fonts in 14.1

How to see spring configuration file in a GUI.

$
0
0

In eclipse there is tab called "overview". In that tab it show the graphical view of spring configuration xml file. But unfortunately I could not find anything like that in IntelIJ. I have to configure the file by writing xml code.

My question is there any option like eclipse, where I can see the graphical overview of that xml file in IntelIJ ?

I am using Intelij 14.1.4 Ultimate version.

Thank you.

Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>