Missing Classes in IDEA

25 November 2019

I use InteliJ IDEA for work when working on Java code. When the IDE doesn’t work, though, it’s incredibly distracting.

I had a problem where IDEA would not find a few auxiliary classes in my application. It would highlight them as errors in imports, and the search would find the source file, but technically not the class definition. I’d poke at the problem over a couple weeks, but I’d otherwise ignore it most the time until it seemed to be losing more and more of my classes, some of which I was actively modifying.

Re-importing the project’s Maven build didn’t fix it; re-cloning a brand new project didn’t fix it; and re-installing IDEA didn’t even work. Finally, I found IDEA’s config directories, and wiped those out to start over, and that cleared up the problem: I was able to find all my classes again.


2018-01-04 Source Local Bash RC

04 January 2018

Today, I’m knocking something off the TODO list: Ensuring a way to have local, non-shared shell initialization across workstations, while still sharing most the code.


Groovy Map Minus

06 June 2017

Groovy is relatively intuitive for me: I can usually guess a method or operator and find it works as I had guessed.

Removing a key/value by the key from a Map conveniently eludes me though. I always guess that I should be able to minus a key from a Map to produce a new Map with that entry /value removed. That doesn’t work, so I needed to invent my own. I still not sure how to practically apply it everywhere though, or if it’s even worthwhile. In practice, I always end up writing the findAll inline.

@Category(Map)
class MapMinus {
    Map minus(Collection keys) {
        this.findAll { k, v -> ! (k in keys) }
    }
    Map minus(Object key) {
        this - [key]
    }
}

use (MapMinus) {
    assert [b: 2, c: 3,] == [a: 1, b: 2, c: 3,] - 'a'
    assert [b: 2, c: 3,] == [a: 1, b: 2, c: 3,] - ['a']

}


Too Many MacVims Installed

24 April 2017

I have MacVim installed by Homebrew, but MacVim still pops up sometimes to suggest an update, and brew updates it as well. After a year or 2 of this, my "Open with…​" menu was littered with about 7 different versions of MacVim dating back to version 7.4.

I figured I’d try to uninstall it, brew uninstall macvim, and see how many version I’m left. The simple uninstall confirmed that quite a few versions of MacVim were installed, and suggested the --force option to remove them all, so I did. That left mvim no longer working in the shell, and fortunately, all the MacVims had disappeared from the "Open with…​" menu as well.

Reinstalling it with brew install macvim leaves me nicely with only one MacVim now. I’ll have to see if they multiply again, but now I’ll have this note to myself on how to fix it.


All the Posts

November 2019

January 2018

June 2017

April 2017

June 2011

May 2010

January 2010

June 2008

March 2008

December 2007

October 2007

August 2007

July 2007

June 2007

May 2007

March 2007

February 2007

January 2007

November 2006

September 2006

August 2006

July 2006

March 2006

January 2006

December 2005

October 2005

August 2005

May 2005

April 2005

March 2005

January 2005

December 2004

November 2004

October 2004

September 2004

May 2004

April 2004

March 2004

January 2004

September 2003

August 2003

July 2003