Packages

t

scala.tools.nsc.settings

ScalaSettings

trait ScalaSettings extends StandardScalaSettings with Warnings

Self Type
MutableSettings
Source
ScalaSettings.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaSettings
  2. Warnings
  3. StandardScalaSettings
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed abstract class CachePolicy extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalaSettings toany2stringadd[ScalaSettings] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalaSettings, B)
    Implicit
    This member is added by an implicit conversion from ScalaSettings toArrowAssoc[ScalaSettings] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. val VdebugTypeError: BooleanSetting
  7. val Vhelp: BooleanSetting

    -V "Verbose" settings

  8. val Vimplicits: BooleanSetting
  9. val VimplicitsMaxRefined: IntSetting
  10. val VimplicitsVerboseTree: BooleanSetting
  11. val VtypeDiffs: BooleanSetting
  12. val Wconf: MultiStringSetting
    Definition Classes
    Warnings
  13. val Whelp: BooleanSetting
    Definition Classes
    Warnings
  14. val Xexperimental: BooleanSetting
  15. val Xhelp: BooleanSetting

    -X "Advanced" settings

  16. val Xjline: ChoiceSetting
  17. val XmacroSettings: MultiStringSetting
  18. val Xmigration: ScalaVersionSetting
  19. val XmixinForceForwarders: ChoiceSetting
  20. val XnoPatmatAnalysis: BooleanSetting
  21. val Xnojline: BooleanSetting
  22. val Xprint: PhasesSetting
  23. val Xprintpos: BooleanSetting
  24. val Xshowcls: StringSetting
  25. val Xshowobj: StringSetting
  26. val Xshowtrees: BooleanSetting
  27. val XshowtreesCompact: BooleanSetting
  28. val XshowtreesStringified: BooleanSetting
  29. val Xverify: BooleanSetting
  30. val Xxml: MultiChoiceSetting[MutableSettings.XxmlSettings.type]
  31. val YaddBackendThreads: IntSetting
  32. val YcacheMacroClassLoader: ChoiceSetting
  33. val YcachePluginClassLoader: ChoiceSetting
  34. val Ycompacttrees: BooleanSetting
  35. val YdebugTasty: BooleanSetting
  36. val Ydelambdafy: ChoiceSetting
  37. val YdisableFlatCpCaching: BooleanSetting
  38. val Ydocdebug: BooleanSetting
  39. val Ydumpclasses: StringSetting
  40. val YforceFlatCpCaching: BooleanSetting
  41. val Ygenasmp: StringSetting
  42. val Yhelp: BooleanSetting

    -Y "Private" settings

  43. val YhotStatisticsEnabled: BooleanSetting
  44. val Yidedebug: BooleanSetting
  45. val YjarCompressionLevel: IntSetting
  46. val YjarFactory: StringSetting
  47. val Ylogcp: BooleanSetting
  48. val YmacroAnnotations: BooleanSetting
  49. val YmacroClasspath: PathSetting
  50. val YmacroFresh: BooleanSetting
  51. val YmacrodebugLite: BooleanSetting
  52. val YmacrodebugVerbose: BooleanSetting
  53. val Ymacroexpand: ChoiceSetting
  54. val YmaxQueue: IntSetting
  55. val Ymemberpos: StringSetting
  56. val Ynogenericsig: BooleanSetting
  57. val YoptInlineHeuristics: ChoiceSetting
  58. val YoptLogInline: StringSetting
  59. val YoptTrace: StringSetting
  60. val Youtline: BooleanSetting
  61. val YpatmatExhaustdepth: IntSetting
  62. val Ypatmatdebug: BooleanSetting
  63. val YpickleJava: BooleanSetting
  64. val YpickleWrite: StringSetting
  65. val YpickleWriteApiOnly: BooleanSetting
  66. val Yposdebug: BooleanSetting
  67. val YpresentationAnyThread: BooleanSetting
  68. val YpresentationDebug: BooleanSetting
  69. val YpresentationDelay: IntSetting
  70. val YpresentationLocateSourceFile: BooleanSetting
  71. val YpresentationLog: StringSetting
  72. val YpresentationReplay: StringSetting
  73. val YpresentationStrict: BooleanSetting
  74. val YpresentationVerbose: BooleanSetting

    IDE-specific settings

  75. val YprintTrees: ChoiceSetting
  76. val YprofileDestination: StringSetting
  77. val YprofileEnabled: BooleanSetting
  78. val YprofileExternalTool: PhasesSetting
  79. val YprofileRunGcBetweenPhases: PhasesSetting
  80. val YprofileTrace: StringSetting
  81. val Yquasiquotedebug: BooleanSetting
  82. val Yrangepos: BooleanSetting
  83. val Yrecursion: IntSetting
  84. val Yreifycopypaste: BooleanSetting
  85. val Yreifydebug: BooleanSetting
  86. val YreplMagicImport: BooleanSetting
  87. val Yreplclassbased: BooleanSetting
  88. val Yreploutdir: StringSetting
  89. val Yscala3ImplicitResolution: BooleanSetting
  90. val Yscriptrunner: StringSetting
  91. val Yshow: PhasesSetting
  92. val Yshowsymkinds: BooleanSetting
  93. val Yshowsymowners: BooleanSetting
  94. val Yshowsyms: BooleanSetting
  95. val Ystatistics: PhasesSetting
  96. val YstatisticsEnabled: BooleanSetting
  97. val YtastyNoAnnotations: BooleanSetting
  98. val YtastyReader: BooleanSetting
  99. val YtrackDependencies: BooleanSetting
  100. val Ytyperdebug: BooleanSetting
  101. val Yvalidatepos: PhasesSetting
  102. lazy val allSettings: LinkedHashMap[String, Setting]

    Set of settings

    Set of settings

    Attributes
    protected[scala]
  103. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  104. val async: BooleanSetting
  105. val bootclasspath: PathSetting

    Path related settings.

    Path related settings.

    Definition Classes
    StandardScalaSettings
  106. val breakCycles: BooleanSetting
  107. val browse: PhasesSetting
  108. val check: PhasesSetting
  109. val checkInit: BooleanSetting
  110. val classpath: PathSetting
    Definition Classes
    ScalaSettingsStandardScalaSettings
  111. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  112. def conflictWarning: Option[String]
  113. val debug: BooleanSetting
  114. def debuginfo: ChoiceSetting

    Compatibility stubs for options whose value name did not previously match the option name.

  115. def defaultClasspath: String

    The user class path, specified by -classpath or -cp, defaults to the value of CLASSPATH env var if it is set, as in Java, or else to "." for the current user directory.

    The user class path, specified by -classpath or -cp, defaults to the value of CLASSPATH env var if it is set, as in Java, or else to "." for the current user directory.

    Attributes
    protected
  116. val defines: PrefixSetting
  117. def dependenciesFile: StringSetting
  118. val dependencyfile: StringSetting

    Other settings.

    Other settings.

    Definition Classes
    StandardScalaSettings
  119. val deprecation: BooleanSetting
    Definition Classes
    StandardScalaSettings
  120. val developer: BooleanSetting
  121. def disable(s: Setting): LinkedHashMap[String, Setting]

    Disable a setting

  122. val disable: MultiStringSetting
  123. val elidebelow: IntSetting
  124. val encoding: StringSetting
    Definition Classes
    StandardScalaSettings
  125. def ensuring(cond: (ScalaSettings) => Boolean, msg: => Any): ScalaSettings
    Implicit
    This member is added by an implicit conversion from ScalaSettings toEnsuring[ScalaSettings] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  126. def ensuring(cond: (ScalaSettings) => Boolean): ScalaSettings
    Implicit
    This member is added by an implicit conversion from ScalaSettings toEnsuring[ScalaSettings] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  127. def ensuring(cond: Boolean, msg: => Any): ScalaSettings
    Implicit
    This member is added by an implicit conversion from ScalaSettings toEnsuring[ScalaSettings] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  128. def ensuring(cond: Boolean): ScalaSettings
    Implicit
    This member is added by an implicit conversion from ScalaSettings toEnsuring[ScalaSettings] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  129. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  130. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  131. val explaintypes: BooleanSetting
    Definition Classes
    StandardScalaSettings
  132. val exposeEmptyPackage: BooleanSetting
  133. val extdirs: PathSetting
    Definition Classes
    StandardScalaSettings
  134. val fatalWarnings: BooleanSetting
    Definition Classes
    Warnings
  135. val feature: BooleanSetting
    Definition Classes
    StandardScalaSettings
  136. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  137. val future: BooleanSetting

    Groups of Settings.

  138. val g: ChoiceSetting
    Definition Classes
    StandardScalaSettings
  139. val genPhaseGraph: StringSetting
  140. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  141. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  142. val help: BooleanSetting
    Definition Classes
    StandardScalaSettings
  143. val imports: MultiStringSetting
  144. def infoSettings: collection.immutable.List[Setting]

    If any of these settings is enabled, the compiler should print a message and exit.

  145. def inlineHelp: String
  146. def isInfo: Boolean

    Is an info setting set? Any -option:help?

  147. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  148. def isScaladoc: Boolean

    Test whether this is scaladoc we're looking at

  149. val javabootclasspath: PathSetting
    Definition Classes
    StandardScalaSettings
  150. val javaextdirs: PathSetting
    Definition Classes
    StandardScalaSettings
  151. val jvmargs: PrefixSetting
  152. val language: MultiChoiceSetting[MutableSettings.languageFeatures.type]
  153. val lint: MultiChoiceSetting[MutableSettings.LintWarnings.type]
    Definition Classes
    Warnings
  154. def lintArgDiscard: Boolean
    Definition Classes
    Warnings
  155. def lintDeprecation: Boolean
    Definition Classes
    Warnings
  156. def lintImplicitNotFound: Boolean
    Definition Classes
    Warnings
  157. def lintImplicitRecursion: Boolean
    Definition Classes
    Warnings
  158. def lintIntDivToFloat: Boolean
    Definition Classes
    Warnings
  159. def lintNumericMethods: Boolean
    Definition Classes
    Warnings
  160. def lintUniversalMethods: Boolean
    Definition Classes
    Warnings
  161. def lintUnused: Boolean
    Definition Classes
    Warnings
  162. def lintValPatterns: Boolean
    Definition Classes
    Warnings
  163. val log: PhasesSetting
  164. val logFreeTerms: BooleanSetting
  165. val logFreeTypes: BooleanSetting
  166. val logImplicitConv: BooleanSetting
  167. val logReflectiveCalls: BooleanSetting
  168. val mainClass: StringSetting
  169. val maxerrs: IntSetting
  170. val maxwarns: IntSetting
  171. def multiargInfix: Boolean
    Definition Classes
    Warnings
  172. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  173. val noCompletion: BooleanSetting
  174. val noForwarders: BooleanSetting
  175. val noassertions: noassertions.stabilizer$1.type.s.type forSome {val stabilizer$1: EnableSettings[BooleanSetting]}
  176. val nobootcp: BooleanSetting
  177. val noimports: BooleanSetting
  178. val nonStrictPatmatAnalysis: BooleanSetting
  179. val nopredef: BooleanSetting
  180. val nospecialization: BooleanSetting
  181. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  182. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  183. val nowarn: BooleanSetting
    Definition Classes
    StandardScalaSettings
  184. def nowarnings: BooleanSetting
  185. val opt: MultiChoiceSetting[MutableSettings.optChoices.type]
  186. def optAddToBytecodeRepository: Boolean
  187. def optAllowSkipClassLoading: Boolean
  188. def optAllowSkipCoreModuleInit: Boolean
  189. def optAssumeModulesNonNull: Boolean
  190. def optBoxUnbox: Boolean
  191. def optBuildCallGraph: Boolean
  192. def optClosureInvocations: Boolean
  193. def optCompactLocals: Boolean
  194. def optCopyPropagation: Boolean
  195. def optInlineFrom: List[String]
  196. def optInlinerEnabled: Boolean
  197. def optNone: Boolean
  198. def optNullnessTracking: Boolean
  199. def optRedundantCasts: Boolean
  200. def optSimplifyJumps: Boolean
  201. def optUnreachableCode: Boolean
  202. def optUseAnalyzerCache: Boolean
  203. def optWarningEmitAtInlineFailed: Boolean
  204. def optWarningNoInlineMissingBytecode: Boolean
  205. def optWarningNoInlineMissingScalaInlineInfoAttr: Boolean
  206. def optWarningNoInlineMixed: Boolean
  207. val optWarnings: MultiChoiceSetting[MutableSettings.optWarningsChoices.type]
  208. def optWarningsSummaryOnly: Boolean
  209. val optimise: BooleanSetting
    Definition Classes
    ScalaSettingsStandardScalaSettings
  210. val outdir: OutputSetting
  211. val plugin: MultiStringSetting
  212. val pluginOptions: MultiStringSetting

    -P "Plugin" settings

  213. val pluginsDir: StringSetting
  214. val print: BooleanSetting
    Definition Classes
    StandardScalaSettings
  215. val printArgs: StringSetting
  216. def printLate: BooleanSetting
  217. val printtypes: BooleanSetting
  218. val prompt: BooleanSetting
  219. val release: ChoiceSetting
    Definition Classes
    StandardScalaSettings
  220. def releaseValue: Option[String]
    Definition Classes
    StandardScalaSettings
  221. val reporter: StringSetting
  222. val require: MultiStringSetting
  223. val resident: BooleanSetting
  224. val rootdir: PathSetting
    Definition Classes
    StandardScalaSettings
  225. val script: StringSetting
  226. val showPhases: BooleanSetting
  227. val showPlugins: BooleanSetting
  228. def showTreeDiff: Boolean
  229. val skip: PhasesSetting
  230. val source: ScalaVersionSetting
    Annotations
    @nowarn()
  231. val sourceReader: StringSetting
  232. val sourcepath: PathSetting
    Definition Classes
    StandardScalaSettings
  233. val stopAfter: PhasesSetting
  234. val stopBefore: PhasesSetting
  235. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  236. val target: ChoiceSetting
    Definition Classes
    StandardScalaSettings
  237. def targetValue: String
    Definition Classes
    StandardScalaSettings
  238. val termConflict: ChoiceSetting
  239. def toString(): String
    Definition Classes
    AnyRef → Any
  240. val unchecked: BooleanSetting
    Definition Classes
    StandardScalaSettings
  241. val uniqid: BooleanSetting
    Definition Classes
    StandardScalaSettings
  242. def unitSpecialization: Boolean
    Definition Classes
    Warnings
  243. val usejavacp: BooleanSetting
    Definition Classes
    StandardScalaSettings
  244. val usemanifestcp: BooleanSetting
    Definition Classes
    StandardScalaSettings
  245. val verbose: BooleanSetting
    Definition Classes
    StandardScalaSettings
  246. val version: BooleanSetting
    Definition Classes
    StandardScalaSettings
  247. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  248. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  249. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  250. def warnAdaptedArgs: Boolean
    Definition Classes
    Warnings
  251. def warnByNameImplicit: Boolean
    Definition Classes
    Warnings
  252. def warnCaptured: Boolean
    Definition Classes
    Warnings
  253. def warnConstant: Boolean
    Definition Classes
    Warnings
  254. val warnDeadCode: BooleanSetting
    Definition Classes
    Warnings
  255. def warnDelayedInit: Boolean
    Definition Classes
    Warnings
  256. def warnDocDetached: Boolean
    Definition Classes
    Warnings
  257. def warnEtaSam: Boolean
    Definition Classes
    Warnings
  258. def warnEtaZero: Boolean
    Definition Classes
    Warnings
  259. val warnExtraImplicit: BooleanSetting
    Definition Classes
    Warnings
  260. def warnInaccessible: Boolean
    Definition Classes
    Warnings
  261. def warnInferAny: Boolean
    Definition Classes
    Warnings
  262. val warnMacros: ChoiceSetting
    Definition Classes
    Warnings
  263. def warnMissingInterpolator: Boolean
    Definition Classes
    Warnings
  264. val warnNonUnitIf: BooleanSetting
    Definition Classes
    Warnings
  265. val warnNonUnitStatement: Warnings.warnNonUnitStatement._1.type.s.type forSome {val _1: EnableSettings[BooleanSetting]}
    Definition Classes
    Warnings
  266. def warnNonlocalReturn: Boolean
    Definition Classes
    Warnings
  267. def warnNullaryUnit: Boolean
    Definition Classes
    Warnings
  268. val warnNumericWiden: BooleanSetting
    Definition Classes
    Warnings
  269. val warnOctalLiteral: BooleanSetting
    Definition Classes
    Warnings
  270. def warnOptionImplicit: Boolean
    Definition Classes
    Warnings
  271. def warnPackageObjectClasses: Boolean
    Definition Classes
    Warnings
  272. val warnPerformance: MultiChoiceSetting[MutableSettings.PerformanceWarnings.type]
    Definition Classes
    Warnings
  273. def warnPolyImplicitOverload: Boolean
    Definition Classes
    Warnings
  274. def warnPrivateShadow: Boolean
    Definition Classes
    Warnings
  275. def warnRecurseWithDefault: Boolean
    Definition Classes
    Warnings
  276. def warnSerialization: Boolean
    Definition Classes
    Warnings
  277. def warnStarsAlign: Boolean
    Definition Classes
    Warnings
  278. def warnStrictUnsealedPatMat: Boolean
    Definition Classes
    Warnings
  279. def warnTypeParameterShadow: Boolean
    Definition Classes
    Warnings
  280. val warnUnused: MultiChoiceSetting[MutableSettings.UnusedWarnings.type]
    Definition Classes
    Warnings
  281. def warnUnusedExplicits: Boolean
    Definition Classes
    Warnings
  282. def warnUnusedImplicits: Boolean
    Definition Classes
    Warnings
  283. def warnUnusedImport: Boolean
    Definition Classes
    Warnings
  284. def warnUnusedLocals: Boolean
    Definition Classes
    Warnings
  285. def warnUnusedNowarn: Boolean
    Definition Classes
    Warnings
  286. def warnUnusedParams: Boolean
    Definition Classes
    Warnings
  287. def warnUnusedPatVars: Boolean
    Definition Classes
    Warnings
  288. def warnUnusedPrivates: Boolean
    Definition Classes
    Warnings
  289. def warnUnusedSynthetics: Boolean
    Definition Classes
    Warnings
  290. val warnValueDiscard: BooleanSetting
    Definition Classes
    Warnings
  291. val warnValueOverrides: BooleanSetting
    Definition Classes
    Warnings
  292. object CachePolicy
  293. object MacroExpand
  294. object XxmlSettings extends MultiChoiceEnumeration
  295. object languageFeatures extends MultiChoiceEnumeration
  296. object mixinForwarderChoices
  297. object optChoices extends MultiChoiceEnumeration
  298. object optWarningsChoices extends MultiChoiceEnumeration
  299. object LintWarnings extends MultiChoiceEnumeration
    Definition Classes
    Warnings
  300. object PerformanceWarnings extends MultiChoiceEnumeration
    Definition Classes
    Warnings
  301. object UnusedWarnings extends MultiChoiceEnumeration
    Definition Classes
    Warnings

Deprecated Value Members

  1. def Xchecknull: BooleanSetting
    Definition Classes
    Warnings
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) This option is being removed

  2. def Xwarnfatal: BooleanSetting
    Definition Classes
    Warnings
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use fatalWarnings

  3. val Yreplsync: BooleanSetting
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13) Unused setting will be removed

  4. def Ywarndeadcode: BooleanSetting
    Definition Classes
    Warnings
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Use warnDeadCode

  5. def d: OutputSetting
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.2) Use outdir instead.

  6. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalaSettings toStringFormat[ScalaSettings] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  7. val isScala3: BooleanSetting
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.9) Use currentRun.isScala3 instead

  8. val warnSelfImplicit: BooleanSetting
    Definition Classes
    Warnings
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.3) Use lintImplicitRecursion

  9. val xoptInlineFrom: MultiStringSetting
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.8) Deprecated alias

  10. val xoptWarnings: MultiChoiceSetting[MutableSettings.optWarningsChoices.type]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.8) Deprecated alias

  11. def [B](y: B): (ScalaSettings, B)
    Implicit
    This member is added by an implicit conversion from ScalaSettings toArrowAssoc[ScalaSettings] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Warnings

Inherited from StandardScalaSettings

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromScalaSettings to any2stringadd[ScalaSettings]

Inherited by implicit conversion StringFormat fromScalaSettings to StringFormat[ScalaSettings]

Inherited by implicit conversion Ensuring fromScalaSettings to Ensuring[ScalaSettings]

Inherited by implicit conversion ArrowAssoc fromScalaSettings to ArrowAssoc[ScalaSettings]

Ungrouped