Type-aware highlighting

Type-aware highlighting is a part of error highlighting that relies on type system.

Some errors can be found without using type information, for example:

Other errors, however, require a knowledge of entities type:

Type-aware highlighting allows to spot such errors before compilation.

Why isn’t it enabled by default?

The feature is in beta (or maybe in alpha) and sometimes may report “false errors” in regular code. Usually, such “errors” “found” only in a truly complex code, and, normally, everything works just fine.

Scala plugin doesn’t rely on compiler to analyze code. We’re implementing our own model of the language, and sometimes it’s challenging, especially when it comes to Scala’s type system and type inference (to size up the problem, you may try to formally “infer” a type of “foo”.map(_ + 1) expression by hand).

Should you enable it?

Unless such highlighting produces too much false “red code” in your project, you can benefit from better code analysis. It’s recommend to try type-aware highlighting in a particular project to evaluate whether it’s good there.

How to configure it?

In every project (with at least one Scala facet used) IDEA initially suggest to try type-aware highlighting, so you may configure it right off the bat:

You can always toggle type-aware highlighting using Ctrl+Alt+Shift+E shortcut or by clicking the highlighting icon on statusbar:

There’s a notification shown on each highlighting status change:

How to deal with false errors?

So, the truth is you have to remember that sometimes there’s no spoon error.
To help us to fix a highlighting glitch you may report it to YouTrack as usual or by pressing Alt+Enter on wrong highlight:

About Pavel Fatin

IntelliJ Scala plugin developer (http://pavelfatin.com)
This entry was posted in Uncategorized. Bookmark the permalink.

48 Responses to Type-aware highlighting

  1. Alain O'Dea says:

    I have been very happy with this feature. Besides some issues with XML patterns and DSL applications like Squeryl (both known and acknowledged in YouTrack) this works very well. It gets better with every nightly and is a very helpful way of seeing errors early without having to compile.

  2. wolverian says:

    It seems pretty crazy to implement your own Scala type inferencer. The presentation compiler isn’t powerful/usable enough?

  3. v6ak says:

    Great. But I don’t uderstand such crazy keyboard shortcut :(

  4. Chris Cobb says:

    I don’t see this features in intellij 12.1 CE on the mac (no icon on the bottom, trying the toggle shortcut and various mac equivalent bindings had no effect). Is this a UE only feature?

  5. Chris Cobb says:

    update: I just noticed that I’m in a java project and this is a feature of the scala plugin. Is it safe to say this is a scala only feature?

  6. my father have lots and numerous collectible coins that are very precious and uncommon,,

  7. Just a smiling visitant here to share the love (:, btw great design. “The price one pays for pursuing a profession, or calling, is an intimate knowledge of its ugly side.” by James Arthur Baldwin.

  8. read more... says:

    I’m extremely impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one nowadays..

  9. websites says:

    Simply wish to say your article is as surprising. The clearness in your post is simply spectacular and i could assume you’re an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work.

  10. Something else is that while looking for a good on the internet electronics store, look for web shops that are continuously updated, trying to keep up-to-date with the latest products, the perfect deals, in addition to helpful information on product or service. This will make certain you are handling a shop which stays ahead of the competition and give you what you should need to make intelligent, well-informed electronics buying. Thanks for the critical tips I have learned through your blog.

  11. more.. says:

    I am so glad I identified this weblog. Thank you for the information. You make a whole lot of excellent points in your post. Rated 5 stars!

  12. web page says:

    Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get
    there! Thank you

  13. PVC rails says:

    Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It’s very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

  14. Donte says:

    I recommend buying one of the cheap Points2Shop items listed here to verify your address and level up your honor.
    I’ve managed to generate 3-4 hundred points from completing
    daily surveys during my spare time after college classes.
    Shifting World is based on the Shift series of games from developer
    Armor Games and this time around will be developed
    by Fishing Cactus specifically for the handheld. The term QR code itself is
    a registered trademark of Denso Wave Incorporated.
    Some smartphones that have this ability (either with a preloaded app, or with
    a downloaded app): Blackberry, Nokia, Android and Nintendo 3DS.

  15. fantastic post, very informative. I wonder why the other specialists of this sector do not notice this. You should continue your writing. I’m confident, you have a huge readers’ base already!

  16. sbobet 666 says:

    The right tie accessories can ensure you look professional and help you stand out for
    the right reasons. Affirmation for confidence not only boosts your morale but also
    refines your sense of compassion towards your fellow athletes.
    The engine placement meant a low center of gravity
    and easy riding characteristics. Below, it’s explained
    as to who is eligible and renter insurance for student sport pilots.

    my web page … sbobet 666

  17. The Windows Identity Foundation is a technology that helps simplify user access for developers by externalizing user access from applications.
    Other fonts may be substituted if they are
    not embedded in a PDF. An XDP can also package a PDF file, along with XML form and template data.

  18. I think this is one of the most vital information for me.
    And i am glad reading your article. But should remark on some
    general things, The site style is great, the articles is really nice :
    D. Good job, cheers

    Here is my web site – empower network review

  19. Don’t use hard scrub or rub your skin in crucially manner, the general perception is
    that rubbing hard circulates the blood in the skin while it is a wrong thinking.

    Limit wine to one glass a day or risk halting your body’s release
    of its own antidiuretic hormone, causing dehydration of your skin. In reporting on the
    positive effects that bananas have on your face, e –
    How contributor Kelly Sundstrum notes that “Bananas help the body produce good bacteria, and help flush out the bad bacteria that helps to cause acne.

  20. isabel marant Sneakers online sale rebate Isabel Marant Wedge Sneakers Silver Bird Metallic Leather
    Shoes LixLi Dopo di che siamo andati a Xi’an per vedere i
    guerrieri di terracotta. Siamo arrivati ​​in aeroporto alla periferia di nuovo e non ho abbattere fabbrica cabina autostrada e
    strade foderato in leiegrd centro storico.
    Isabel Marant Sneakers Outfits isabel marant sneakers online
    gXlXr Entro Martedì pomeriggio, Cruz senatore Mike Lee, RUtah e altri conservatori del GOP nelle parole del Senato di volta in volta attraverso il controllo
    della terra, e si scaglia contro Obamacare. Mantenere
    registrazioni accurate EDT Mercoledì, Cruz e dei suoi alleati dal suo avvio
    nel 1900, il marchio 20 ore, il quarto discorso
    dominato Senato.. Sneakers Isabel Marant replica Isabel Marant Bekket
    Suede Sneakers Anthracite ulXBb Ma nel quadrante superiore destro erano di alto valore, prodotti unici e servizi.
    Hanno incluso servizio di biglietteria online film Fandango e Clear carta che può
    accelerare il passaggio attraverso la sicurezza dell’aeroporto.

    Isabel Marant Sale best sneakers isabel marant comprar online YAfmU È interessante notare che, a grandi
    attori diversificati come l’industria del cuoio Hidesign nel fare gli
    occhiali da sole di quest’anno, da acetato e pelle.
    Vogliono vedere la creatività e strano uso di pelle, date un’occhiata alla nostra riutilizzo concorso annuale, dove centinaia
    partecipano sperimentando una ritagli di pelle gratuiti e negozio di ferramenta, alcune delle loro
    proprie mani, dice Kapur. for sale Isabel Marant Bazil Suede And Snake-Effect Sneakers Black
    isabel marant wedge sneakers price wrsRE Alamo Square Park Clifton prevede opere di
    raccolta della spazzatura come giardiniere. Trova le scarpe.

    isabel marant shoe size fake isabel marant sneakers shop on line AkgGO Stare lontano dalle borse a buon mercato di
    caramelle, caramelle buon mercato, perché ciò che si finisce con inutili e di cattivo gusto cioccolato caramelle che hai speso i
    soldi perché i bambini non mangiano. Se si vuole fare il cioccolato (sempre una scommessa sicura), andare al marchio attuale che tutti
    noi riconosciamo.. fake Isabel Marant Bekket Suede Sneakers Wine etoile isabel marant dress AQKNO Ora, Brown non vuol dire noioso.
    Ravviva il tuo collezione di scarpe con le scarpe di Jessica Simpson Hasher donne.
    Isabel Marant Sneakers Isabel Marant Sneakers Outfits MefPm Dopo un intervallo di due
    settimane é stata condotta viene sottoposto il
    braccio opposto della stessa soluzione di nitrato di argento esposto all’aria (non coperto), nitrato d’argento 10 per cento di sodio 10 nitrato cento argento, nitrato di
    argento, 10 per cento, preparata di fresco e Argyrol 5 per cento.
    Questi sono stati letti in quarantotto ore, è mostrata in Figura I.

  21. A few months spy texting will have the letter “F” preceding the 6

  22. You should also ascertain that the associated procedures and
    medication used by the cosmetologist are legally cleared
    by the approving agencies of the country.

    Lunch: A slice of wheat bread with a tablespoon of light jam.

    Most ladies feel that it should be quite simple
    to lose around 10 or maybe twenty lbs over
    a thirty day period to get ready for the summer
    months.

  23. French macarons are quite different from coconut
    macaroons as they are made up of two almond cookies, or shells,
    that are sandwiched together with a filling. Thorough Bread has
    just started making french macarons; with any luck, they’ll be
    as flavorful as the coconut macaroons. The macaron has
    a wide variety of regional variations.

  24. camere auto says:

    What if you don’t KNOW what the gift receiver likes.
    On the last day of school, hand out permanent
    markers and have each student autograph one another’s buckets.
    The Honey Baked Ham Company offers both hams and turkeys that will feed a dinner party.

  25. Howdy! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a outstanding job!

  26. It’s great that you are getting ideas from this article as well as from our argument made at this place.

  27. what is 5htp says:

    You can certainly see your expertise within the article you write.

    The world hopes for more passionate writers like you who
    aren’t afraid to mention how they believe. At
    all times follow your heart.

  28. So next time you look enviously at that bronzed girl walking down the street,
    remember that with the help of fake tan products, that could easily be you.

    But when you choose to apply ASYANA self tanning products & tanning lotion, you could easily get away from the
    UV rays without damaging your skin. I have liked the bronzers I have
    bought from them over the years.

  29. A tank-top and a regular bikini bottom are included in the tankini swimsuits.
    The couture two-piece swimsuit is handmade of proprietary Italian fabric with an intricate Swarovski
    crystal-candied halter top and a sleek high-waisted bottom.

    Find the latest trends for summer, tips on wearing plus size leggings,
    tips on dresses for every occasion and three ways to wear one shirt.

  30. Ute says:

    com credit card and receive $10 off your order upon acceptance.
    It is a soft and lightweight fabric, produced in a tricot factory,
    which makes the day at the beach all the more enjoyable as well as
    comfortable. Find the latest trends for summer, tips on wearing plus size leggings, tips on dresses for every occasion and three ways to wear one shirt.

  31. Quite frankly, contrary to popular belief, making money online isn’t as hard or difficult as most folks make it out to be and once you understand and
    implement what is often called the ‘power of
    duplication’, then anyone – regardless of age, sex, education or
    technical background can start making money just as fast.
    Press Releases – Absolutely very powerful method, but again it costs.
    So keep in mind that learning Internet marketing can be extremely deep, and don’t
    be surprised if it overwhelms you.

  32. This post presents clear idea in favor of the new people of blogging, that actually how to do blogging and site-building.

  33. Really nice read, hope to try oficial game, for now I am playing on free diablo III server (d3server), as I can’t offer original game

  34. I read this post completely concerning the difference of most up-to-date and previous technologies, it’s remarkable article.

    My web site: locate groundwater

  35. Pretty great post. I simply stumbled upon your blog and wanted
    to say that I’ve really enjoyed browsing your blog posts.
    In any case I’ll be subscribing to your rss feed and I am
    hoping you write once more soon!

  36. I think that what you wrote made a bunch
    of sense. But, think on this, what if you composed a catchier post title?
    I ain’t suggesting your information is not solid., but suppose you added something that
    grabbed a person’s attention? I mean Type-aware highlighting |
    IntelliJ Scala plugin blog is a little vanilla. You should
    glance at Yahoo’s front page and see how they create article titles to grab people
    to click. You might add a related video or a related pic or two to get people
    interested about what you’ve got to say. In my opinion, it would bring your posts a little
    livelier.

    Feel free to surf to my site :: search engine marketing jobs in india

  37. Someone has been kind enough to reveal all the cheat codes and secrets available in Star Wars:
    The Force Unleashed. Well since this is a review I’ll give
    you a short list of all the good things about Points2Shop,
    I may leave some things out but this is an article not a book:
    . In recent times, QR codes are displayed on pamphlets, billboards, business cards and even t-shirts.

    Video Offers- You watch a video from youtube or some other site,
    then you get some points. As for evidence, there’s a lovely forum
    section on the Points2Shop website where everyone posts up proof that they recieved their items or whatever
    they ordered:.

  38. What is the best way to talk to the writer of this blog post
    if we wish to ask a few more questions?

    Visit my web site :: Toronto roofers

  39. A little recommendation, why not put the material of this article on a PDF or
    send it on an online article directory and distribute it
    so that more people can read it also? :)

    Have a look at my blog post: Toronto roofing

  40. What’s up Dear, are you genuinely visiting this web site on a regular basis, if so afterward you will absolutely get good know-how.

    Here is my web-site domain name selection

  41. The simplest way is by eating food,no cheating on your own diet and exercise.
    Not crucial to join a gym ,you are able to do things that you want, like
    running,kick boxing,football etc.Losing weight is easy,it is not a rocket science,all you need is loyalty that’s it.
    The weight-loss process not only makes you physically strong but
    mentally even more devoted which is extremely great.

    I was a child that is fat i believed it is difficult to lose excess weight,but today I’ve
    dropped over 42kgs and I think I wasted my period believing
    I can not do it thinking it was not therefore easy. It was difficult but for
    monthly,after you get in the custom nothing can really alter you..Sharing my personal experience with you all that,i hope you men reach your target goals ..goodluck

  42. The best method to burn fat is by eating extremely healthy food,no
    cheating on exercise and your diet. Not necessary to join a fitness center ,you
    are able to do things which you like, like running,kick boxing,
    soccer etc.Losing weight is simple,it’s not a rocket-science,all you will need is loyalty
    that is it. The weightloss procedure not only makes you physically strong but emotionally
    actually more devoted which is not extremely bad. I was
    a kid before,i thought it is difficult to shed weight,but now I’ve lost over 42kgs and I feel I
    wasted my period believing I can’t do it thinking it was not so easy.
    It was challenging but for monthly,once you get in the custom nothing can really
    change you..Sharing the fat kid’s encounter with you all that,i
    expect you guys realize your goal targets ..goodluck

  43. The simplest way is by eating extremely healthy food,no cheating on your diet and exercise.
    Not necessary to join a fitness center ,you are able to do things you want, like working,kickboxing,soccer
    etc.Losing fat is simple,it is not a rocket-science,all you’ll need is
    dedication that’s it. The weightloss process-not only makes you actually strong but
    emotionally also more committed which is extremely good.
    I was a child that is fat before,i believed it is difficult to slim down,but now I have lost over 42kgs and
    I think I wasted my period thinking I cannot do it believing it was
    so difficult. It was difficult but for a month,once
    you get in the custom nothing can actually alter you..Sharing my personal encounter with you all that,i hope you men attain your goal goals ..goodluck

  44. This is not a suit only worn when something unlikely is happening.

    However, there are various kinds of salmon and hardly any of them are more strong and bouncy than others.
    With fish meals you have so much choice and you are guaranteed with them to make
    highly nutritional homemade baits that will just keep on catching
    for years.

    My web page; Costa Rica Fishing Tours

  45. It’s not myy firsxt time to payy a visit this weeb page, i am browsing this site dailly
    and obtain nice facts from here every day.

    Here is my site: Android Apps For The PC

  46. Appreciating the haard work you put into your blog and in depth information you present.
    It’s nie to come across a blog every once in a while
    that isn’t the same out of date rehashed information. Fantastic
    read! I’ve saved yyour site and I’m adding your RSS feeds to my Google account.

  47. destiny pc says:

    Hey very nice blog!

    Visit my web site – destiny pc

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">