Contribution

Hi

I wanted to contribute to Scala plugin, but I didn't succeed yet. I imported code from GitHub, but currently facing following issues: 

 

Information:23.06.2016 13:00 - Compilation completed with 11 errors and 1 warning in 54s 733ms
E:\git\intellij-scala\src\org\jetbrains\plugins\scala\components\libinjection\LibraryInjectorLoader.scala
Warning:(191, 18) This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning.
case e =>
^
E:\git\intellij-scala\src\org\jetbrains\plugins\scala\components\libinjection\ui\JarCacheModel.scala
Error:(11, 65) javax.swing.AbstractListModel does not take type parameters
class JarCacheModel(val cache: InjectorPersistentCache) extends AbstractListModel[JarManifest] {
^
Error:(20, 5) not found: value fireIntervalRemoved
fireIntervalRemoved(o, idx, idx)
^
Error:(26, 5) not found: value fireContentsChanged
fireContentsChanged(o, idx, idx)
^
E:\git\intellij-scala\src\org\jetbrains\plugins\scala\lang\refactoring\introduceParameter\ScalaIntroduceParameterDialog.scala
Error:(145, 27) type mismatch;
found : com.intellij.openapi.ui.ComboBox[String]
required: java.awt.Component
typeLabel.setLabelFor(typeCombobox)
^
Error:(148, 34) type mismatch;
found : com.intellij.openapi.ui.ComboBox[String]
required: javax.swing.JComboBox
JListCompatibility.addItem(typeCombobox, typeName)
^
Error:(165, 55) type mismatch;
found : com.intellij.openapi.ui.ComboBox[String]
required: javax.swing.JComponent
IJSwingUtilities.adjustComponentsOnMac(typeLabel, typeCombobox)
^
Error:(166, 20) overloaded method value add with alternatives:
(x$1: java.awt.Component,x$2: Any)Unit <and>
(x$1: java.awt.Component,x$2: Int)java.awt.Component <and>
(x$1: String,x$2: java.awt.Component)java.awt.Component
cannot be applied to (com.intellij.openapi.ui.ComboBox[String], String)
paramTypePanel.add(typeCombobox, BorderLayout.SOUTH)
^
E:\git\intellij-scala\src\org\jetbrains\plugins\scala\worksheet\ui\WorksheetUiConstructor.scala
Error:(99, 46) type mismatch;
found : com.intellij.application.options.ModulesComboBox
required: javax.swing.JComponent
WorksheetUiConstructor.fixUnboundMaxSize(modulesBox, isSquare = false)
^
Error:(56, 50) type mismatch;
found : com.intellij.application.options.ModulesComboBox
required: java.awt.Component
addChild(panel, createSelectClassPathList(Option(RunWorksheetAction.getModuleFor(PsiManager getInstance project findFile file).getName), file))
^
E:\git\intellij-scala\src\org\jetbrains\sbt\project\settings\SbtProjectSettingsControl.scala
Error:(59, 25) type mismatch;
found : com.intellij.openapi.roots.ui.configuration.JdkComboBox
required: java.awt.Component
label.setLabelFor(jdkComboBox)
^
Error:(62, 16) overloaded method value add with alternatives:
(x$1: java.awt.Component)java.awt.Component <and>
(x$1: java.awt.PopupMenu)Unit
cannot be applied to (com.intellij.openapi.roots.ui.configuration.JdkComboBox)
jdkPanel.add(jdkComboBox)
^

1 comment
Comment actions Permalink
Official comment

It seems you're using JDK 1.6 to compile the project.

Although this should theoretically be possible with a few fixes, I would still suggest using 1.8, especially since we are currently migrating to Scala 2.12, which will make 1.8 mandatory.

Please sign in to leave a comment.