Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all 5481 articles
Browse latest View live

More information on IDE processes?

$
0
0

On more than one occasion bg housekeep processes dont appear to end and I dont see how to get more information on what they are doing. Is there some status window which would provide more info that I'm currently blind to? Here I clicked on the line saying "2 processes running" and all I see is this.

 

http://i.imgur.com/ZHe6hZv.jpg


Inline substituion for resource strings

$
0
0

I'm missing something obvious but as a newbie to Intellij I'm kind of like a rabbit in the headlights with so many great options.

 

Somehow the code editor replaced some Java call for fetchnig resource string values with the actual strings (hiliting the string text black in zenburn theme). e.g

 

Log.d("ASYNC", c.getString(R.string.eoa));

 

read as

 

Log.d("ASYNC", "End of Asynchronous Call"); //<--- string text was black

 

What's this functionality called in the editor formatter and how do I use/turn it off?

 

thanks

 

r.

Custom File Watchers - confused?

$
0
0

Hey there folks,

I'm trying to set up a custom file watcher and I'm not able to figure out why it doesn't seem to be working. I've scoured the web for hours and just can't find anything on it.

The gist of it is this:

I want to use a web settings file (.php) to generate SCSS files (literally .scss) which would then be output to CSS. Basically, the "transpiler", if you will, takes name/value pairs from the settings file, and dumps them in as formatted scss variables into the .scss file.

This gives me the ability to manage application directories from one spot. Love it.

 

I wrote a powershell script that handles the creation of the .scss file from the .php and it works wonderfully. However, I haven't exported it to an .exe file (actually not sure how to do that).

My approach was to set the watcher to watch .php file changes on the directory where my web settings file lives. From there, the "program" it calls is actually powershell.exe and passes it a -file "path\to\file\" argument. The script, if run, should handle everything else on it's own. I can get the powershell call to work in a cmd prompt, which leads me to believe that intellij isn't even making the call. Intellij is running in administrator mode.

 

Am I wrong in thinking that intellij actually watches the file for you? Because this thing just isn't working

 

To sum up, I want this:

.php file -> on update -> copy values to .scss file (file update)

 

That's all. Seems simple enough, but it doesn't appear to be firing (no error or anything). The PS script is totally self-contained and requires no input, so I know that's not an issue.

I'm putting my watcher settings below. I'm starting to think I don't even understand how the file watchign system works in intellij in which case I'll just write a cmd promt watcher and run it in the background boooo

 

Thanks for any help in advance!

 

=====Settings below======

 

Setting NameSetting Value
NameApp Constants to SCSS Updater
DescriptionTakes selected App constants from the header comment @SCSSEXPORT array in Utility_Constants.php and exports them to the appVars.scss file for SCSS usage.

 

OPTIONS:

 

Setting NameSetting Value
Output Filters[none]
Show ConsoleAlways
Immediate File SynchronizationYes
Check file for syntax errorsYes
Track root only filesUnavailable

 

WATCHER SETTINGS:

 

Setting NameSetting Value
File typePHP files (PHP files)
ScopeProject Files
ProgramC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Arguments-file "C:\PROGRA~1\wamp\www\arctic\localScript\sassUpdater.ps1"
Working DirectoryC:\Program Files\wamp\www\tanguer\include\class\Utility
Environment Variables[none set, none required]
Output Paths$ProjectFileDir$\css\sass\include\appVars.scss

A note on output paths: I also had it write directly to a file at one point as well with no results- at this point I'm trying the stdout version which is bringing me no luck.

I can only assume it's not even triggering since the log won't even come up like it will when the SCSS compiler runs.

Thanks!

Java Background Processes and Mac Mission Control Auto Switching

$
0
0

So I have yet to find a good answer for this and its not specific to IntelliJ. I develop on a mac and I love using apps in full screen mode and just switching "spaces" or using "mission control" as I think it is officially called now(virtual desktops for the rest of the world I guess). Anyway, every time a background java process starts, sometimes from IntelliJ, sometimes from the surefire plugin for maven, the "space" on the screen that is currently active, switches away from whatever im doing and to the default empty space. I have tried disabling "auto switching" in the mission control plist file but then command-tab wont cause spaces to switch for the app I am trying to tab too. At this point Ive just gotten used to cmd-tabing when it happens, to get back to the space I was on, but Im just kinda over it at this point. Anybody else deal with this, or do I just need to get over it?

Synchronize Live Templates among various installations

$
0
0

Hi,

 

I am using PHPStorm at work and using IntelliJ at home for my own work. I wanted to know... if there is a way to synchronize my live templates between these two editors. I pretty much use the templates both at work and also at home. So, there is no point to duplicating the templates all over again in anothers system.

 

Does InelliJ/PHPStorm have a plugin or a built in feature to synchronize them? It will be awesome!

maven dependencies resolution problem

$
0
0

I have variable of type SlingHttpServletRequest

And I see error that method getParameterMap cannot be resolved but code compiles without any errors.

 

When I check declaration of SlingHttpServletRequest it is declared in this lib

.m2/repository/org/apache/sling/org.apache.sling.api/2.2.0/org.apache.sling.api-2.2.0-sources.jar!/org/apache/sling/api/SlingHttpServletRequest.java

and as it extends HttpServletRequest which is declared in

.m2/repository/org/apache/felix/javax.servlet/1.0.0/javax.servlet-1.0.0.jar!/javax/servlet/http/HttpServletRequest.class

 

In diffrent project I have similar dependecy declarations in pom.xml file but method getParameterMap is valid for Idea.

difrence is where Idea shows declaration of HttpServletRequest

.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4-sources.jar!/javax/servlet/http/HttpServletRequest.java

 

I try to align dependecies configuration in pom with no success.

TDD and IDEA 13

$
0
0

Coming from eclipse world I'm being used to have almost instant feedback from running unit tests. So this is a huge drawback for me, when I have to wait almost 4-6 seconds every time I run my tests(and I run them quite often) because Make is compiling and doing other stuff. I have tried turning on autocompilation feature, but I can't see any speed improvements from that. I can also remove Make step from running tests and rely only on autocompile, but then often times I get false positive/negative from my tests because the actual changes havent been compiled yet.

 

Is there something I can do to speed up Make and compilation?

WEB-INF no longer in the project, but exists

$
0
0

I moved WEB-INF folder to a different directory, and then moved it back - via shell.  After this, I cannot get intelliJ to see WEB-INF any longer.

I checked that it is not marked to ignore.

 

Any help is appreciated.


Scala+SBT: Cannot resolve symbol

$
0
0

I was getting IDEA errors on imports and other classes of the form "Cannot resolve symbol" although compilation was working fine. I have a multi-project build.sbt file with a multi-layered dependency hierarchy. I found that these errors only occurred for implicit, transitive dependencies. For example, if project A dependsOn project B and project B dependsOn project C, then I would get these errors in project C for classes in project A. If I add those dependencies explicitly, then the problem goes away (part in bold):

 

lazy val projA = project in file("projB") ...

lazy val projB = project in file("projB") ... dependsOn(projectA)

lazy val projC = project in file("projC") ... dependsOn(projectB) dependsOn(projectA)


I don't have the time to create a standalone test of this theory to prove that this is the cause, but I just wanted to post this as a potential issue and solution in case others hit the same issue.

Ubuntu: IDEA12 vs. IDEA 13, same default font different look?

$
0
0

Hi,

 

when I installed IDEA 13, I saw that the font for the IDE (not the editor) looks bigger and bolder. It's really a waste of space this way. I thought the default font might have changed, but indeed it is the same "Ubuntu" font at size 15 which is used. Does someone know what happened here?

 

My system is Ubuntu 12.04 precise, 64bit with GNOME, Oracle JRE 1.7.0_17

 

Update: As played around, I that it is indeet the Ubuntu font which is used, but it is set in bold instead of plain. Therefore, "Ubuntu" and "Ubuntu Bold" look similar in IDEA 13 (and of course only there).

 

Here is a screenshot for IDEA 12

 

idea12.png

 

And here is one of the same window with IDEA 13

 

idea13.png

Information about maven importing

$
0
0

HI,

I noticed that when I run "Generate Source and Update Folders" action I dont get any information even if there is some error.

Only place where I can find information about it is in log files.

I'm quite new in IDEA so maybe I missing something, but I can find out that i.e. my xsd file is missing and generate source failed.

How do you handle this kind of problmes?

Find In Path igores one specific file

$
0
0

I'm sure I'm missing something obvious, but for some reason Find In Path never finds any text in one specific file in one of my main projects. It finds text in other files in that same directory, including ones with the same extension (.sql), but not in a copy of that one file in another directory.

 

The Mark As Plain Text option is enabled for that file, which from my understanding means that it hasn't already been marked as ignored. It doesn't match any of the patterns in Settings > File Types > Ignore Files and Folders.

 

The file is pretty big, 5.6 Megs (it's a generated SQL dump, used in installation). Is there a file size threshold for search, and if so, can I set it, and where?

 

Or am I missing something? Is this a bug?

Partial synchronize for Database schema

$
0
0

Can I run partial synchronization for a database schema? For example, if I add new table or remove an existing one, I don't see it displayed in the Database Tool Window. So, I have to run the sync, and it takes a lot of time updating the tables that I don't need at the moment. Can I do it faster? I know that I can use "Table names pattern" on the "Data Sources and Drivers" panel, but it will remove all the existing tables from the list. Ideally, I would like to have some include / exclude filter for the sync process, so I can select which tables need to be updated.

 

Is there an existing feature for that in IntelliJ v13?

 

Thank you!

Dzmitry

Play 2 Plugin - basic app doesn't compile or run through IDEA, but does on cmd line

$
0
0

Ok, screen shot attached. Using V13 Ultimate.

 

I have created new project as Play 2 Java module.

 

Separately I have also just downloaded Play and when I run the IDEA created app from the command line using Play it compiles and runs fine

 

Running from within the IDE (which I thought was the whole darn point of the plugin) doesn't work.

 

I am guessing that somewhere I have to specify where the Play installion is for the IDE to use. As in this (outdated) documentation:

 

http://confluence.jetbrains.com/display/IntelliJIDEA/Play+Framework+2.0

 

When I created the new project the wizard was different to this as it did not contain the "play home" box.

 

I have had no luck sorting this out and have wasted almost a whole flippin day on it. I am evaluating the version 13 with a view to upgrading but won't bother if this is broken.

 

Why does it always feel like one step forward, two steps back when new features come out?

 

thanks for your help in advance

Hugh

After upgrading to 12.1.4 "Groovyc: Internal groovyc error: code 1"

$
0
0

Hi,

 

After upgrading to 12.1.4 a simple ee7/maven/glassfish (no groovy) project doesn't compile anymore giving following error:

 

Information:Groovyc: Cannot compile Groovy files: no Groovy library is defined for module 'back'

Information:Compilation completed with 1 error and 0 warnings in 4 sec

Information:1 error

Information:0 warnings

Error:Groovyc: Internal groovyc error: code 1

 

Other projects are still fine. Restart/reimport didn't help. Any ideas?

 

Best regards, Eugene.


Migration from flash builder issue

$
0
0

Hello,

 

I'm trying to setup an existing flex project in Intellij. This modular project has been initially developed with Flash Builder.

One of the project flex module needs a class contained in the main application so in flash builder I simply added a source path pointing to the main application src folder. I can't find out how to do the same with Intellij.

 

Thanks in advance.

in Java EE intro tutorial with latest versions -- create servlet step does nothing

$
0
0

Things seemed to be going fine until step 5.3 of this tutorial: http://wiki.jetbrains.net/intellij/Developing_and_running_a_Java_EE_Hello_World_application

 

The new servlet dialog does not create a servlet. Nor does it put up an alert or log. It just does nothing. What I expected was to see HelloWorldServlet.java under web/src/myservlets after clicking OK inthe dialog.

 

Specifically, my current versions are IntelliJ 13.0.1, JDK 7u51, and JBoss EAP 6.2.0.

 

Is there any known incompatibility between the steps in the tutorial and the current versions of all tools and libraries? Equally possible is that I have added the libs in an incorrect fashion.

 

I guess my entire question could be viewed as a request to update what is a very nice tutorial but which is now getting a little out of date.

Zooming in on the Grails domain class in the "Domain classes dependencies" tab

$
0
0

Hi, I don't know if this issue has been discussed in other threads but I was wondering if it is possible, in a Grails project, (1) to zoom in on the domain class box in the "Domain classes dependencies" tab when a domain class is clicked in the project view's panel and also, (2) to refresh/redraw the dependency diagram by clicking on a button or menu item.

Jetbrains email in response to new Intellij 13 purchase

$
0
0

Howdy, just before the year end I purchased or upgraded to 13 from

12.

 

I saw an email from Jetbrains bounce while reviewing my smtpd logs.

 

The subject line was clearly about the purchase named above and the email was definitely from Jetbrains.

 

How to get a new email from Jetbrains about my purchase?

 

I have a new computer but it is 64 and my old 12 won't run on this machine.

 

Please advise, David.

Information about maven importing

$
0
0

HI,

I noticed that when I run "Generate Source and Update Folders" action I dont get any information even if there is some error.

Only place where I can find information about it is in log files.

I'm quite new in IDEA so maybe I missing something, but I can find out that i.e. my xsd file is missing and generate source failed.

How do you handle this kind of problmes?

Viewing all 5481 articles
Browse latest View live