Turn off scanning/indexing of classpath

IntelliJ 8.0 does a scanning and indexing of all files that are in my
classpath.
This seems to slow down the IDE a lot and was not done in IntelliJ 7.0.4.
How do i turn this off?


Carsten

9 comments
Comment actions Permalink

Hello Carsten,

IntelliJ 8.0 does a scanning and indexing of all files that are in my
classpath.
This seems to slow down the IDE a lot and was not done in IntelliJ
7.0.4.
How do i turn this off?


Go to Settings | File Types and remap the "java" extension to Plain Text
file type.

(Of course, you'll also lose all the intelligent features of IntelliJ IDEA
- that's why the indexing is required. And of course previous versions of
IDEA also performed the indexing.)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I don't understand your answer :(
For File Type java-Files *.java is the registered pattern.
This did not change from 7.0.4 to 8.0, so i don't get the point how this
should be related to my question.
I don't even have a problem with the java files.
My problem are all other files that are not java files.
When i open the Go to File Dialog in 8.0 IntelliJ shows me all my
properties files and all my log files. And there are > 1000 log files.
In 7.0.4 it was not possible to open them so i thought they were not
indexed by IntelliJ.

Carsten


Dmitry Jemerov schrieb:

Hello Carsten,

>> IntelliJ 8.0 does a scanning and indexing of all files that are in my
>> classpath.
>> This seems to slow down the IDE a lot and was not done in IntelliJ
>> 7.0.4.
>> How do i turn this off?


Go to Settings | File Types and remap the "java" extension to Plain Text
file type.

(Of course, you'll also lose all the intelligent features of IntelliJ
IDEA - that's why the indexing is required. And of course previous
versions of IDEA also performed the indexing.)

0
Comment actions Permalink

Hello Carsten,

That's because I misunderstood your question. Now I can give you an answer
which is actually useful: There's now a "Filter" button in "Go to File" dialog.
It allows you to select the file types which will be shown in the dialog,
so you can exclude logs and .properties files if you don't want to see them
there.

Also you can go to Project Structure | Modules | ]]> and mark the
directory containing your log files as excluded. This will actually prevent
any indexing of those files.

I don't understand your answer :(
For File Type java-Files *.java is the registered pattern.
This did not change from 7.0.4 to 8.0, so i don't get the point how
this
should be related to my question.
I don't even have a problem with the java files.
My problem are all other files that are not java files.
When i open the Go to File Dialog in 8.0 IntelliJ shows me all my
properties files and all my log files. And there are > 1000 log files.
In 7.0.4 it was not possible to open them so i thought they were not
indexed by IntelliJ.
Carsten

Dmitry Jemerov schrieb:

>> Hello Carsten,
>>
>>> IntelliJ 8.0 does a scanning and indexing of all files that are in
>>> my
>>> classpath.
>>> This seems to slow down the IDE a lot and was not done in IntelliJ
>>> 7.0.4.
>>> How do i turn this off?
>> Go to Settings | File Types and remap the "java" extension to Plain
>> Text file type.
>>
>> (Of course, you'll also lose all the intelligent features of IntelliJ
>> IDEA - that's why the indexing is required. And of course previous
>> versions of IDEA also performed the indexing.)
>>
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

How do i exclude these files?
In Project Structure | Modules | ]]> there is no option to
turn this off.
As i wrote these files are not part of my source directories (and i only
see the option to exclude something in the src)
These files are part of the directories i added at the dependencies tab.
(this is my classpath!)
As i wrote these filese were not indexed before 8.0.
I have one module with all my src-files and for every class i want to
start from IntelliJ i have another module, because every class has it's
own start directory, with it's own configuration directory and it's own
log directory.
This is needed because it's not sufficient for IntelliJ to specify the
working directory in the Run/Debug dialog. I must also choose the
correct module in the 'use classpath and JDK of module'-combobox to get
a class running. Otherwise it will not find it's configuration files.

Carsten


Dmitry Jemerov schrieb:

Hello Carsten,

That's because I misunderstood your question. Now I can give you an
answer which is actually useful: There's now a "Filter" button in "Go to
File" dialog. It allows you to select the file types which will be shown
in the dialog, so you can exclude logs and .properties files if you
don't want to see them there.

Also you can go to Project Structure | Modules | <your module> and mark
the directory containing your log files as excluded. This will actually
prevent any indexing of those files.

0
Comment actions Permalink

Carsten Schäfer wrote:

As i wrote these files are not part of my source directories (and i only
see the option to exclude something in the src)
These files are part of the directories i added at the dependencies tab.
(this is my classpath!)
As i wrote these filese were not indexed before 8.0.

A very good point, I've been noticing this too. In my project the user
data area of the application is added to the classpath so that the
application can access resources added by the user when using the
application. There are also loads of xml files in these directories,
storing user data, which IDEA now appears to parse/index, and I don't
remember it doing this before either.

N.

0
Comment actions Permalink

Dmitry,

Is there a way to turn off indexing of specific file types (like: .js, .py etc)? These files can be part of classpath or src directory. But, as a user I dont want unnecessary files to be indexed by intellij (This saves time/memory).

Is there a way to limit the amount of indexing?

Thanks,
Chandra

0
Comment actions Permalink

it would also be nice to be able to cancel indexing.

sometimes I temporary add a source root, just to use IDEA's fantastic features ;-)
I don't always need full indexing there.
e.g. I am only interested in a file in the root directory - all the subdirs with tons of megabytes are not interesting...

a button like "cancel indexing" -> "warning: some features will not work if you cancel indexing..." and so on...
maybe combined with some "re-index"-button, if the user should change his mind ;-)


M.

0
Comment actions Permalink

Hello chandra,

Is there a way to turn off indexing of specific file types (like: .js,
.py etc)? These files can be part of classpath or src directory. But,
as a user I dont want unnecessary files to be indexed by intellij
(This saves time/memory).


The only way to exclude a specific file pattern from indexing is to remove
its file type assignment in Settings | File Types. This will cause IDEA to
treat such files as opaque binary files, and will exclude them from indexing
and all other operations.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Nowadays, a large amount of people dream of possessing a unique and beautiful http://www.momocheck.com/. But when they possess their http://www.momocheck.com/category-48-b0-Breitling.html, they don't know how to maintain it. So it's important for them to maintain their http://www.momocheck.com/category-187-b0-Porsche-Design.html. As a http://www.momocheck.com/category-92-b0-Blancpain.html lover, I'd like to introduce http://www.momocheck.com/category-89-b0-Audemars-Piguet.html's maintenance method to you.Firstly, http://www.momocheck.com/category-103-b0-Vacheron-Constantin.html's battery is fitted at the time of manufacture and should be replaced at the first sign of low power.Secondly, some water-resistant http://www.momocheck.com/category-167-b0-Harry-Winston.html feature leather bands, be sure to dry the band thoroughly if it becomes wet. Prolonged wearing of the http://www.momocheck.com/category-126-b0-Accutron.html with a wet band may reduce the life of the band and cause it to discolor. It may also a skin reaction. To protect the electronic http://www.momocheck.com/category-197-b0-Sinn.html parts, it has dampers both on the inner and outer sides and thus, outstanding shock-resistance and vibration-resistance can be ensured.Thirdly, if the http://www.momocheck.com/category-204-b0-Ulysse-Nardin.html can be worn on the wrist during any hard sports, use not to allow the front glass to butt against any hard object.Fourthly, http://www.momocheck.com/category-97-b0-IWC.html I'd like to introduce any other ways to maintain http://www.momocheck.com/category-87-b0-ALange-Sohne.html:Never try to open the case or remove its back cover. You should have the rubber seal that keeps out water and dust replaced every 2 to 3 years. You should moisture appear inside the http://www.momocheck.com/category-161-b0-Gevril.html, have it checked immediately by your dealer.Please avoid exposing the http://www.momocheck.com/category-135-b0-Body-Glove.html to temperature extremes. To clean the http://www.momocheck.com/category-96-b0-Hublot.html and band, use a dry soft cloth or a soft cloth moistened in a solution of http://www.momocheck.com/category-203-b0-Triumph.html and a mild neutral detergent. Never use volatile agents (such as benzine, thinner, spray cleaners, etc.)Store your http://www.momocheck.com/category-48-b0-Breitling.html in a dry place when you are not using it.So as a http://www.momocheck.com/category-51-b0-Cartier.html owner, it's your responsibility to maintain your http://www.momocheck.com/category-192-b0-Richard-mille.html. I hope my method can help you. Try to maintain your http://www.momocheck.com/category-60-b0-Ferrari.html as well as you can.Nowadays, the idea that http://www.momocheck.com/category-242-b0-Air-king.htmles are not useful has become more and more popular, because telephones and computers have the function of showing time. However, in my opinion, people should buy http://www.momocheck.com/category-199-b0-Spazio24.html because of the importance of having them.First of all, http://www.momocheck.com/category-171-b0-Jaeger-Lecoultre.html are the symbol of being punctual. As usual, people who wear http://www.momocheck.com/category-140-b0-Casio.html are regarded as having a strong sense of time and responsibility. Wearing http://www.momocheck.com/category-204-b0-Ulysse-Nardin.html enables people to develop a good habit of being punctual. What is more, http://www.momocheck.com/category-47-b0-Breguet.html are also the symbol of personal identity and taste. Especially on formal occasions, people wearing http://www.momocheck.com/category-230-b0-Daytona.html can receive respect easier than people who do not wear them.Secondly, http://www.momocheck.com/category-167-b0-Harry-Winston.html are regarded as the decoration for people. Today, some people like to buy http://www.momocheck.com/category-49-b0-Burberry.html, because they are beautiful and fashionable. Wearing them enables people to feel more confident and happy.Thirdly, http://www.momocheck.com/category-146-b0-DG.html bring more convenience to see the time. http://www.momocheck.com/category-164-b0-Grimoldi.html cannot be replaced by telephones and computers. Although telephones and computers are the main ways for people to see http://www.momocheck.com/category-200-b0-TechnoMarine.html the time, they are not convenient on some occasions. For example, if we go outside, we cannot see the time on computers. If we are discussing http://www.momocheck.com/category-230-b0-Daytona.html an important project with a boss, we cannot take out of the telephone from the pocket to see the time, which is very impolite. But http://www.momocheck.com/category-197-b0-Sinn.html are able to solve these problems easily.Lastly but not the least, http://www.momocheck.com/category-153-b0-Elini.html are one of the factors of promoting the development of our economy. People are active to buy http://www.momocheck.com/category-203-b0-Triumph.html, which promotes the prosperity of the market and enlivens the market circulation. Gradually, our economy becomes more and more prosperous.Unquestionably, http://www.momocheck.com/category-156-b0-Festina.html have many advantages such as a symbol of being punctual, the decoration, seeing the time more conveniently http://www.momocheck.com/category-182-b0-Paul-Picot.html and the factor of promoting the development of our economy. So people should buy http://www.momocheck.com/category-54-b0-Christian-Dior.html not only for themselves but also for our society.

---
Original message URL: http://devnet.jetbrains.net/message/5278728#5278728

0

Please sign in to leave a comment.