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

IntelliJ Idea cannot remember my setting

$
0
0

Hello guys and congratulations for your products.

I have only one minor problem.

I have the latest version of IntelliJ 14 Ultimate and the IDE cannot is asking me every time I want to open a project in a new window if I want to open it in the same window or not, althought I have ticked the checkbox that says always open new projects in a new window.

Is it a bug?

Thank you.


Java code style help needed, and TODO/Task questions.

$
0
0

First off, if this is in the wrong directory, just leave a comment and I'll delete it. Secondly, I'm only asking the forums because it takes me hours to figure this stuff out sometimes with so many settings. After a large amount of time figuring out Intellij, I'm come to love it over eclipse for the mac!

 

My instructors tend to be very strict on coding style, so this is important to somewhat figure out. Keeping my programs clean, and readable. Below is a picture of an example.

1. I need my TODO, and comments below it (Both block, and line comments) to be all the way to the left margin.

2. I need both block and line comments within any block statements such as any loops, if statements, etc, to be in in aligned with the blocked statement, as if it were a normal code syntax. (Hope this made sense, check picture).

3. I need both blocked and line comments to the left margin after the blocked loops, and other various code between.

 

Hope someone might be able to assist me in saving hours of going through all the settings. I love it all, but sometimes different settings are scattered everywhere.

ALSO NOTE: I have checked the comment boxes (Also provided in pictures), but the comments below the loop statements won't move to the left margin when I reformat the code. I got this information and other info from the various help sections on JetBrains' site. But no luck.

 

EDIT: Forgot to ask about the TODO/task questions. I'm looking for a plugin, or current feature for tasks. Whenever I start a new program I create a list of tasks the the program needs to do. So far, I have it in a TODO comment. Any suggestions on plugins for this? I looked into the time management feature of intellij, but it doesn't seem to work very well for me.

 

Thank you all very much.

WebLogic server not found

$
0
0

I am running idea-IU-139.224.1 (14) and WebLogic 12.1.3.0.0.

 

I have local install of WLS that works from the command line, and a remote install at slc08uyu that runs fine and is accessible on my network.

 

When I try to run a remote session (or try to test the connection) I get this error.

 

Error running slc08uyu: Unable to connect to the slc08uyu:7003, reason: Server not found

 

Thanks for the help,

Glenn

Auto complete in intellij ide for java script

$
0
0

HI,

 

I use intellij version 14.0.3 and I want to use code complete for java-script which is not working ,

for example if I type element. and press ctrl+space I dont get any suggestion ...

any idea?

Identify this behavior

$
0
0

When I highlight text within the IntelliJ editor and attempt to drag and drop it, sometimes I get a behavior that I'm trying to understand.  A small window appears with the name of the file I'm editing on a different tab within the editor.  What is this functionality trying to do?  And, how do I prevent it (assuming its not something I want to start using)?

 

3-16-2015 11-13-56 AM.png

Maven "internal sync" for dependencies that are also in-project modules - Broken on OSX?

$
0
0

I have 2 modules in 1 project. The first module (called TOP) depends on the second module (called BOTTOM). The TOP project is a WAR file (packaging type: war) while the BOTTOM project is a jar. Standard setup. No surprises. Something I've done many times over the years. This is when it gets a bit crazy.

 

IntelliJ correctly identifies the dependency. Code completion works great. But when I compile/run in a LOCAL TOMCAT instance, it won't run. Why won't it run? It appears that none of the code from the BOTTOM project in the editor is running in Tomcat. The TOP project is updated fine, but the BOTTOM project is the "last installed into local maven repository" version. So this means that if I refactor/rename a class in BOTTOM, it shows up correctly in the editor. (Meaning that the code is code-completion ready in TOP). But when I hit compile/run in Tomcat, the ClassNotFoundException pops up. This is also the case when clicking ANY goal in the Maven window.

 

I would expect this to be the case if executing those goals on the command line. But I'm not executing them in the command line. I'm executing them in the editor.

 

This is something that I've taken for granted over the years. Is this a problem that's specific with my brand new Mac Book Pro?

 

Help me internet. You're my only hope.

14.0.3 SVN merge, revert, remerge issue

$
0
0
I'm asked regularly to merge XSD and WSDL files from an analysts branch on SVN.  Yesterday I met with a very strange problem.  I'll go over the steps, maybe someone can reproduce the issue.
1. Merge the xsd analysts branch with the trunk, using 'Subversion Working Copies Information', 'Merge from...', 'Branch....'.  I pressed cancel when the commit screen popped up in order to have an SVN changelist 'merge from <branch>'.  Then move one file to another changelist (is required for a different job).
2. After a little while part of the branch in my changelist is committed, one file kept seperately is not.  Meanwhile new changes on the BRANCH have been done to the file I kept seperate.  And I'm asked to do a new analysts xsd merge.
3. Same scenario as point 1, but one file got merged by IntelliJ smart merge, namely the file I kept locally.
4. An analyst tells me the changes he's made to the branch are not ok, so I revert the whole thing.  This includesthe file I used to keep in a seperate changelist.
5. Same scenario as point 1 BUT, the changes that were merged by IntelliJ are gone. Newer changes to that file are there, but the changes that were merged by IntelliJ are somehow 'forgotten'.  I assume IntelliJ still wrongly thinks that those changes are already on my local project, but that's just speculation.
Note: If I compare that file with the branch using 'SVN compare with branch' then the missing changes are registered.
This seems a very nasty bug, I would have broken the build on production day if I hadn't been paying attention closely and if I hadn't read that file before the ordeal.

Different target path for classes and resources

$
0
0

Hi.

 

I have simple maven web application. And while trying JRebel plugin get next problem.

When I compile classes they are compiled in target/classes folder, but *.properties files from resources folder are copiing (by pressing ctrl+F9) to the target/<FINAL_NAME>/WEB-INF/classes.

It misleads. And I doesn't understend how to configure JRebel and Idea.

 

Is it possible to configure module to do it in one folder?
Is it right if I point out  target/<FINAL_NAME>/WEB-INF/classes is output path for module?


How to completely remove a file from 'Locally Deleted Files' list?

$
0
0

Greetings!

 

I am facing a strange problem with removing some old .iml file from 'Locally Deleted Files' list. The file was created long time ago with a wrong name, then I've removed it and created a new one. Now the old file is shown in the list, and neither of the available options allow me to remove it completely (see screen shot below):

locally_deleted_files.jpg

1) Commit Changes - does nothing as this file is not a part of SVN.

2) Revert - produces Error:Can not get 'svn info' for FILE_NAME.iml error because it is not a part of SVN repo.

3) Remove from VCS - produces Error:svn: E125001: 'FILE_NAME.iml' does not exist error because of the same reason.

4) Refresh - does nothing...

 

Any ideas how I can remove the file from beeing displayed in this list?

 

Thanks,

Dmitry

InteliJ 13 Cucumber/Gerkhin

$
0
0

Hi Guys,
I hope you are fine!

It's my first post here, so hello everyone:)
I'm writing regarding one certain problem which I've encountered during usage of InteliJ version 13.
I work as a QA Specialis and on daily basis I use Behat/Cucumber/Gherkin and I'm wonder if I can navigate from some particular step definition in my feature file to a specific method in context/page file using Intelij 13? I know for sure that such solution is currently available in PHP Strom 14, however it would nice to have the same functionality in Intelij 13. I've already read that plugin "Cucumber for Java" should enable me to get this functionality but actually it doesn't work, but should have worked?
IntelliJ's Gherkin plugin thinks my first step is undefined plus there is no code assistance from IntelliJ for me to be able to define a step in my step def class. Why can't the Gherkin plugin find my step defs in class.
Please answer my question as soon as possible.

 

Regards
camel

"Insert" Key on Mac to overwrite at text cursor???

$
0
0

I used to be a big time PC user; now mac keyboards don't have "insert" keys.

 

Normally I'd throw a live template or snippet hit "insert" and type over the --------------- line created to add some fancy comments.

 

Without the insert it moves the characters coming after it along with the cursor over to the right ... when I wanted to overwrite the character.

"Insert" used to be a handy way of toggling between text insertion modes on PC.  Now I'm wondering; how do I do this on a mac in IntelliJ?

 

Thanks,

 

 

Kalani

debug applet

$
0
0

how i can debugin applet inside browser with idea ?

 

Thanks

Can I use structured replace to rename all occurrences of a function?

$
0
0

I've just changed a bunch of my Actionscript classes to have a function named foo().  Actually, it's a getter, whose signature is this:

 

public function get foo() : String

 

I just realized that I'd like to change "foo" to "bar".  They don't all implement an interface or subclass a common parent, so I can't use Refactor -> Rename.  I know I could just do a normal Search and Replace, with context "Changed Files", but I'm trying to use Structured Search more, and so I got to thinking about Structured Replace for this.

 

However, I couldn't come up with the right incantation.

 

Is there a way to use SSR for this kind of thing?

excessive CPU usage in Mavericks OS X

$
0
0

After updating to Mavericks I have excessive CPU % for IntelliJ up to 400%.

 

How can I start to debug this?

Aplication imported from Flash builder is not comunicating with the server

$
0
0

Hi,

 

I'm starting with intellij, and i'm using ubuntu 14.04 with Intellij 14 to compile flex web aplicatoin imported from Flash builder. the aplication compile with success, but not comunicate with my server.

But, if i put my application folder in my apache server. is comunicate, but flex not load the other module. sorry about my english. helps me.


selected file as program argument

$
0
0

is there a way to specify the selected file as a program argument in a Application run configuration? I need a configuration that lets me run/debug a fixed main class with a variable argument (path of the file selected in the project view)

 

Thanks,

-- Peter

IDEA sometimes brings window to foreground on mouseover

$
0
0

Sometimes when I have another app's window obscuring IDEA's window and I move my mouse over the IDEA window, the IDEA window will come to the foreground and steal focus.  Other times it'll grab focus (blinking its button in the task bar).  Other times, it'll do nothing (which is what it should do).

 

It seems to happen when I have something selected in the Project or Structure panel and I happen to move the mouse over or near it.  For example, take a look at the two attached images.  In IDEA_MouseMove_1, I have a browser obscuring most of IDEA, with the mouse cursor over the browser window but near the selected entry in IDEA's Structure panel.  In IDEA_MouseMove_2, I have moved the mouse cursor over that selected entry, and without my clicking any mouse button, IDEA has brought itself forward and taken focus.

 

I do not have any XMouse utilities installed, and I have not turned on Windows' "Activate a window by hovering over it with the mouse" feature.

 

This may onl happen when the item in question (the one that's selected in the panel) is wider than the panel itself (and so there's a tooltip involved).  I haven't been able to prove that conclusively, but I am pretty sure it's a factor.

 

The other thing to note is that I keep my Task Bar hidden and docked to the top of the screen (so it only shows when I jam the mouse to the top of the screen).

 

Is anyone else seeing this, or able to reproduce it?

 

Tech info:

 

Windows 7 SP 1, 64-bit

 

About IDEA:

2015-03-18 09_17_43-Clipboard.png

 

Thanks,

Rob

IDE Talk gone as of 14.1 RC (141.175.3)?

$
0
0

Hi there,

 

I just installed / updated, and now "IDE Talk" is gone. Search for actions does not give any result, no window to switch to...

 

There is a plugin named "IDE Talk", but that dates back to 2005, I do not even dare trying that

 

I'm quite sure it still worked yesterday in the previous EAP version. Is it removed intentionally, moved to somewhere I did not find it yet, or missing by accident? Does someone else with the RC has a working IDE Talk?

IntelliJ Maven System Property

$
0
0

Dear IntelliJ community,

 

When I tried to compile a Maven module I stumbled on an error. The module wouldn't compile and would show the following error:

 

"D:\Windows\Program  Files\Java\jdk1.8.0_40\bin\java" "-Dmaven.home=D:\Windows\Program  Files\Maven" "-Dclassworlds.conf=D:\Windows\Program  Files\Maven\bin\m2.conf" -Didea.launcher.port=7535  "-Didea.launcher.bin.path=D:\Windows\Program Files\IntelliJ\bin"  -Dfile.encoding=UTF-8 -classpath "D:\Windows\Program  Files\Maven\boot\plexus-classworlds-2.5.2.jar;D:\Windows\Program  Files\IntelliJ\lib\idea_rt.jar"  com.intellij.rt.execution.application.AppMain  org.codehaus.classworlds.Launcher -Didea.version=14.0.3 clean package  install
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
Process finished with exit code 1

 

When  I try to compile the module with the Windows CMD and the "mvn clean  package install" command it works. But when I try to compile the Maven  module with IntelliJ it wouldn't work.

 

With regards,

Julian v.d Berkmortel

JavaFX Packager Error

$
0
0

Hi,

 

When I try to build an artifact of a JavaFX project, I get the following error:

 

Error:Java FX Packager:
BUILD FAILED
Error reading project file C:\Users\Jürgen\.IdeaIC13\system\compile-server\_temp_\build7645261974522649442.xml: Ungültiges Byte 1 von 1-Byte-UTF-8-Sequenz. 
Total time: 0 seconds
Error:Java FX Packager: Buildfile: C:\Users\Jürgen\.IdeaIC13\system\compile-server\_temp_\build7645261974522649442.xml
Error:Java FX Packager: fx:deploy task has failed. 
When running the project from the IDE, everything is fine.
Best Regards
Jürgen
Viewing all 5661 articles
Browse latest View live


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