Cannot find 'xxxx' using type inference
Hi there
I'm seeing this error on most ActiveRecord objects in my Rails project. I assume it's because I need to run 'Analyze dependencies' or 'Inspect Code' from the Analyze menu? However, each time I try that RubyMine complains about a lack of memory. I've tried putting -Xmx to 768 on the following screen but it still fails:
Is this a known issue?
I'm using RubyMine #535 on a Mac
Please sign in to leave a comment.
Hi lylo,
Rails uses a lot of dynamic "magic". We continuously improve our Rails support but some cases are still unsupported. Please provide us some examples from your project.
You shouldn't run these for enabling/improving autocompletion/resolve support. These actions allow you to inspect all files from project, collect problems by each inspection and show results in one table. E.g you can search all warnings about duplicate constant definition from your project, etc.
Maximum Java Heap size (-Xmx option) in range 192-350 MB should be enough for RubyMine. Please take a CPU snapshot for us:
Also open Info.plist (located in /Applications/RubyMine-XXX.app/Contents), find Root -> Java -> VMOptions in Property editor or find string in text editor:
Append *-XX:+HeapDumpOnOutOfMemoryError* option before </string> :
These changes will be applied after you restart RubyMine. Now if RubyMine crashes with OutOfMemory error it will create memory snapshot in ~/Snapshots folder.