错误描述:
Error:scalac: Error: scala.collection.mutable.Set
.
a
p
p
l
y
(
L
s
c
a
l
a
/
c
o
l
l
e
c
t
i
o
n
/
S
e
q
;
)
L
s
c
a
l
a
/
c
o
l
l
e
c
t
i
o
n
/
G
e
n
T
r
a
v
e
r
s
a
b
l
e
;
j
a
v
a
.
l
a
n
g
.
N
o
S
u
c
h
M
e
t
h
o
d
E
r
r
o
r
:
s
c
a
l
a
.
c
o
l
l
e
c
t
i
o
n
.
m
u
t
a
b
l
e
.
S
e
t
.apply(Lscala/collection/Seq;)Lscala/collection/GenTraversable; java.lang.NoSuchMethodError: scala.collection.mutable.Set
.apply(Lscala/collection/Seq;)Lscala/collection/GenTraversable;java.lang.NoSuchMethodError:scala.collection.mutable.Set.apply(Lscala/collection/Seq;)Lscala/collection/GenTraversable;
at org.apache.flink.api.scala.codegen.TypeAnalyzer.
i
n
i
t
init
init(TypeAnalyzer.scala:37)
at org.apache.flink.api.scala.codegen.MacroContextHolderKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲1.<init>(MacroC…Lambda
1334
/
1483123270.
a
p
p
l
y
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
m
a
c
r
o
E
x
p
a
n
d
W
i
t
h
R
u
n
t
i
m
e
(
M
a
c
r
o
s
.
s
c
a
l
a
:
770
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
m
a
c
r
o
E
x
p
a
n
d
W
i
t
h
R
u
n
t
i
m
e
1334/1483123270.apply(Unknown Source) at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:770) at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime
1334/1483123270.apply(UnknownSource)atscala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:770)atscala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:746)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.macroExpandWi…Lambda
518
/
1258800825.
a
p
p
l
y
(
U
n
k
n
o
w
n
S
o
u
r
c
e
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
G
l
o
b
a
l
.
w
i
t
h
I
n
f
o
L
e
v
e
l
(
G
l
o
b
a
l
.
s
c
a
l
a
:
233
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
518/1258800825.apply(Unknown Source) at scala.tools.nsc.Global.withInfoLevel(Global.scala:233) at scala.tools.nsc.typechecker.Macros
518/1258800825.apply(UnknownSource)atscala.tools.nsc.Global.withInfoLevel(Global.scala:233)atscala.tools.nsc.typechecker.MacrosMacroExpander.expand(Macros.scala:569)
at scala.tools.nsc.typechecker.Macros
M
a
c
r
o
E
x
p
a
n
d
e
r
.
a
p
p
l
y
(
M
a
c
r
o
s
.
s
c
a
l
a
:
556
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
s
t
a
n
d
a
r
d
M
a
c
r
o
E
x
p
a
n
d
(
M
a
c
r
o
s
.
s
c
a
l
a
:
731
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
s
t
a
n
d
a
r
d
M
a
c
r
o
E
x
p
a
n
d
MacroExpander.apply(Macros.scala:556) at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:731) at scala.tools.nsc.typechecker.Macros.standardMacroExpand
MacroExpander.apply(Macros.scala:556)atscala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:731)atscala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:729)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.standardMacro…anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
473
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
11.default(AnalyzerPlugins.scala:473) at scala.tools.nsc.typechecker.AnalyzerPlugins
11.default(AnalyzerPlugins.scala:473)atscala.tools.nsc.typechecker.AnalyzerPlugins$anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
i
n
v
o
k
e
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
427
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
11.default(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand
11.default(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.pluginsMacroE…anon
6.
m
a
c
r
o
E
x
p
a
n
d
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
6.macroExpand(Global.scala:490) at scala.tools.nsc.typechecker.Macros
6.macroExpand(Global.scala:490)atscala.tools.nsc.typechecker.Macros$anon
4.
t
r
a
n
s
f
o
r
m
(
M
a
c
r
o
s
.
s
c
a
l
a
:
909
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
m
a
c
r
o
E
x
p
a
n
d
A
l
l
(
M
a
c
r
o
s
.
s
c
a
l
a
:
917
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
.
m
a
c
r
o
E
x
p
a
n
d
A
l
l
4.transform(Macros.scala:909) at scala.tools.nsc.typechecker.Macros.macroExpandAll(Macros.scala:917) at scala.tools.nsc.typechecker.Macros.macroExpandAll
4.transform(Macros.scala:909)atscala.tools.nsc.typechecker.Macros.macroExpandAll(Macros.scala:917)atscala.tools.nsc.typechecker.Macros.macroExpandAll(Macros.scala:898)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.macroExpandAl…anon
6.
m
a
c
r
o
E
x
p
a
n
d
W
i
t
h
R
u
n
t
i
m
e
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
6.macroExpandWithRuntime(Global.scala:490) at scala.tools.nsc.typechecker.Macros
6.macroExpandWithRuntime(Global.scala:490)atscala.tools.nsc.typechecker.MacrosMacroExpander.
a
n
o
n
f
u
n
anonfun
anonfunexpand
1
(
M
a
c
r
o
s
.
s
c
a
l
a
:
576
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
1(Macros.scala:576) at scala.tools.nsc.typechecker.Macros
1(Macros.scala:576)atscala.tools.nsc.typechecker.MacrosMacroExpanderKaTeX parse error: Can't use function '$' in math mode at position 7: Lambda$̲518/1258800825.…anon
6.
s
t
a
n
d
a
r
d
M
a
c
r
o
E
x
p
a
n
d
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
6.standardMacroExpand(Global.scala:490) at scala.tools.nsc.typechecker.AnalyzerPlugins
6.standardMacroExpand(Global.scala:490)atscala.tools.nsc.typechecker.AnalyzerPlugins$anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
473
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
11.default(AnalyzerPlugins.scala:473) at scala.tools.nsc.typechecker.AnalyzerPlugins
11.default(AnalyzerPlugins.scala:473)atscala.tools.nsc.typechecker.AnalyzerPlugins$anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
i
n
v
o
k
e
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
427
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
11.default(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand
11.default(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.pluginsMacroE…anon
6.
m
a
c
r
o
E
x
p
a
n
d
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
6.macroExpand(Global.scala:490) at scala.tools.nsc.typechecker.Macros
6.macroExpand(Global.scala:490)atscala.tools.nsc.typechecker.MacrosDefMacroExpander.onDelayed(Macros.scala:703)
at scala.tools.nsc.typechecker.Macros
M
a
c
r
o
E
x
p
a
n
d
e
r
.
MacroExpander.
MacroExpander.anonfun$expand
1
(
M
a
c
r
o
s
.
s
c
a
l
a
:
590
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
M
a
c
r
o
s
1(Macros.scala:590) at scala.tools.nsc.typechecker.Macros
1(Macros.scala:590)atscala.tools.nsc.typechecker.MacrosMacroExpanderKaTeX parse error: Can't use function '$' in math mode at position 7: Lambda$̲518/1258800825.…anon
6.
s
t
a
n
d
a
r
d
M
a
c
r
o
E
x
p
a
n
d
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
6.standardMacroExpand(Global.scala:490) at scala.tools.nsc.typechecker.AnalyzerPlugins
6.standardMacroExpand(Global.scala:490)atscala.tools.nsc.typechecker.AnalyzerPlugins$anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
473
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
11.default(AnalyzerPlugins.scala:473) at scala.tools.nsc.typechecker.AnalyzerPlugins
11.default(AnalyzerPlugins.scala:473)atscala.tools.nsc.typechecker.AnalyzerPlugins$anon
11.
d
e
f
a
u
l
t
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
i
n
v
o
k
e
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
427
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
(
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
s
c
a
l
a
:
470
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
P
l
u
g
i
n
s
.
p
l
u
g
i
n
s
M
a
c
r
o
E
x
p
a
n
d
11.default(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470) at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand
11.default(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:427)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)atscala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:470)
at scala.tools.nsc.GlobalKaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲6.pluginsMacroE…anon
6.
m
a
c
r
o
E
x
p
a
n
d
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
6.macroExpand(Global.scala:490) at scala.tools.nsc.typechecker.Typers
6.macroExpand(Global.scala:490)atscala.tools.nsc.typechecker.TypersTyper.vanillaAdapt
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
1209
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:1209) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:1209)atscala.tools.nsc.typechecker.TypersTyper.adapt(Typers.scala:1278)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
a
d
a
p
t
(
T
y
p
e
r
s
.
s
c
a
l
a
:
1251
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.adapt(Typers.scala:1251) at scala.tools.nsc.typechecker.Typers
Typer.adapt(Typers.scala:1251)atscala.tools.nsc.typechecker.TypersTyper.adapt(Typers.scala:1271)
at scala.tools.nsc.typechecker.Implicits
I
m
p
l
i
c
i
t
S
e
a
r
c
h
.
t
y
p
e
d
I
m
p
l
i
c
i
t
1
(
I
m
p
l
i
c
i
t
s
.
s
c
a
l
a
:
872
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
I
m
p
l
i
c
i
t
s
ImplicitSearch.typedImplicit1(Implicits.scala:872) at scala.tools.nsc.typechecker.Implicits
ImplicitSearch.typedImplicit1(Implicits.scala:872)atscala.tools.nsc.typechecker.ImplicitsImplicitSearch.typedImplicit0(Implicits.scala:809)
at scala.tools.nsc.typechecker.Implicits
I
m
p
l
i
c
i
t
S
e
a
r
c
h
.
s
c
a
l
a
ImplicitSearch.scala
ImplicitSearch.scalatools
n
s
c
nsc
nsctypechecker
I
m
p
l
i
c
i
t
s
Implicits
ImplicitsImplicitSearchKaTeX parse error: Can't use function '$' in math mode at position 77: …ecker.Implicits$̲ImplicitSearch$…anon
6.
i
n
f
e
r
I
m
p
l
i
c
i
t
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
I
m
p
l
i
c
i
t
s
.
i
n
f
e
r
I
m
p
l
i
c
i
t
F
o
r
(
I
m
p
l
i
c
i
t
s
.
s
c
a
l
a
:
46
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
I
m
p
l
i
c
i
t
s
.
i
n
f
e
r
I
m
p
l
i
c
i
t
F
o
r
6.inferImplicit(Global.scala:490) at scala.tools.nsc.typechecker.Implicits.inferImplicitFor(Implicits.scala:46) at scala.tools.nsc.typechecker.Implicits.inferImplicitFor
6.inferImplicit(Global.scala:490)atscala.tools.nsc.typechecker.Implicits.inferImplicitFor(Implicits.scala:46)atscala.tools.nsc.typechecker.Implicits.inferImplicitFor(Implicits.scala:45)
at scala.tools.nsc.Global$$anon
6.
i
n
f
e
r
I
m
p
l
i
c
i
t
F
o
r
(
G
l
o
b
a
l
.
s
c
a
l
a
:
490
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
6.inferImplicitFor(Global.scala:490) at scala.tools.nsc.typechecker.Typers
6.inferImplicitFor(Global.scala:490)atscala.tools.nsc.typechecker.TypersTyper.applyImplicitArgs(Typers.scala:263)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
Typer.
Typer.anonfun$adapt
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
869
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:869) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:869)atscala.tools.nsc.typechecker.TypersTyper.adaptToImplicitMethod
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
488
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:488) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:488)atscala.tools.nsc.typechecker.TypersTyper.adapt(Typers.scala:1274)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6056
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typed(Typers.scala:6056) at scala.tools.nsc.typechecker.Typers
Typer.typed(Typers.scala:6056)atscala.tools.nsc.typechecker.TypersTyper.computeType(Typers.scala:6130)
at scala.tools.nsc.typechecker.Namers
N
a
m
e
r
.
a
s
s
i
g
n
T
y
p
e
T
o
T
r
e
e
(
N
a
m
e
r
s
.
s
c
a
l
a
:
1127
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
N
a
m
e
r
s
Namer.assignTypeToTree(Namers.scala:1127) at scala.tools.nsc.typechecker.Namers
Namer.assignTypeToTree(Namers.scala:1127)atscala.tools.nsc.typechecker.NamersNamer.valDefSig(Namers.scala:1745)
at scala.tools.nsc.typechecker.Namers
N
a
m
e
r
.
m
e
m
b
e
r
S
i
g
(
N
a
m
e
r
s
.
s
c
a
l
a
:
1930
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
N
a
m
e
r
s
Namer.memberSig(Namers.scala:1930) at scala.tools.nsc.typechecker.Namers
Namer.memberSig(Namers.scala:1930)atscala.tools.nsc.typechecker.NamersNamer.typeSig(Namers.scala:1880)
at scala.tools.nsc.typechecker.Namers
N
a
m
e
r
Namer
NamerMonoTypeCompleter.completeImpl(Namers.scala:874)
at scala.tools.nsc.typechecker.Namers
L
o
c
k
i
n
g
T
y
p
e
C
o
m
p
l
e
t
e
r
.
c
o
m
p
l
e
t
e
(
N
a
m
e
r
s
.
s
c
a
l
a
:
2078
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
N
a
m
e
r
s
LockingTypeCompleter.complete(Namers.scala:2078) at scala.tools.nsc.typechecker.Namers
LockingTypeCompleter.complete(Namers.scala:2078)atscala.tools.nsc.typechecker.NamersLockingTypeCompleter.complete
(
N
a
m
e
r
s
.
s
c
a
l
a
:
2076
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
N
a
m
e
r
s
(Namers.scala:2076) at scala.tools.nsc.typechecker.Namers
(Namers.scala:2076)atscala.tools.nsc.typechecker.NamersTypeCompleterBase.complete(Namers.scala:2071)
at scala.reflect.internal.Symbols
S
y
m
b
o
l
.
c
o
m
p
l
e
t
e
I
n
f
o
(
S
y
m
b
o
l
s
.
s
c
a
l
a
:
1561
)
a
t
s
c
a
l
a
.
r
e
f
l
e
c
t
.
i
n
t
e
r
n
a
l
.
S
y
m
b
o
l
s
Symbol.completeInfo(Symbols.scala:1561) at scala.reflect.internal.Symbols
Symbol.completeInfo(Symbols.scala:1561)atscala.reflect.internal.SymbolsSymbol.info(Symbols.scala:1533)
at scala.reflect.internal.Symbols
S
y
m
b
o
l
.
i
n
i
t
i
a
l
i
z
e
(
S
y
m
b
o
l
s
.
s
c
a
l
a
:
1722
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Symbol.initialize(Symbols.scala:1722) at scala.tools.nsc.typechecker.Typers
Symbol.initialize(Symbols.scala:1722)atscala.tools.nsc.typechecker.TypersTyper.typed1(Typers.scala:5625)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6041
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typed(Typers.scala:6041) at scala.tools.nsc.typechecker.Typers
Typer.typed(Typers.scala:6041)atscala.tools.nsc.typechecker.TypersTyper.typedStat
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6119
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:6119) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:6119)atscala.tools.nsc.typechecker.TypersTyper.
a
n
o
n
f
u
n
anonfun
anonfuntypedStats
8
(
T
y
p
e
r
s
.
s
c
a
l
a
:
3410
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
8(Typers.scala:3410) at scala.tools.nsc.typechecker.Typers
8(Typers.scala:3410)atscala.tools.nsc.typechecker.TypersTyper.typedStats(Typers.scala:3410)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
B
l
o
c
k
(
T
y
p
e
r
s
.
s
c
a
l
a
:
2564
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typedBlock(Typers.scala:2564) at scala.tools.nsc.typechecker.Typers
Typer.typedBlock(Typers.scala:2564)atscala.tools.nsc.typechecker.TypersTyper.typedOutsidePatternMode
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
5960
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:5960) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:5960)atscala.tools.nsc.typechecker.TypersTyper.typed1(Typers.scala:5995)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6041
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typed(Typers.scala:6041) at scala.tools.nsc.typechecker.Typers
Typer.typed(Typers.scala:6041)atscala.tools.nsc.typechecker.TypersTyper.typedDefDef(Typers.scala:6318)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
5950
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typed1(Typers.scala:5950) at scala.tools.nsc.typechecker.Typers
Typer.typed1(Typers.scala:5950)atscala.tools.nsc.typechecker.TypersTyper.typed(Typers.scala:6041)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6119
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:6119) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:6119)atscala.tools.nsc.typechecker.TypersTyper.
a
n
o
n
f
u
n
anonfun
anonfuntypedStats
8
(
T
y
p
e
r
s
.
s
c
a
l
a
:
3410
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
8(Typers.scala:3410) at scala.tools.nsc.typechecker.Typers
8(Typers.scala:3410)atscala.tools.nsc.typechecker.TypersTyper.typedStats(Typers.scala:3410)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
T
e
m
p
l
a
t
e
(
T
y
p
e
r
s
.
s
c
a
l
a
:
2064
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typedTemplate(Typers.scala:2064) at scala.tools.nsc.typechecker.Typers
Typer.typedTemplate(Typers.scala:2064)atscala.tools.nsc.typechecker.TypersTyper.typedModuleDef(Typers.scala:1940)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
5952
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
Typer.typed1(Typers.scala:5952) at scala.tools.nsc.typechecker.Typers
Typer.typed1(Typers.scala:5952)atscala.tools.nsc.typechecker.TypersTyper.typed(Typers.scala:6041)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6119
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:6119) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:6119)atscala.tools.nsc.typechecker.TypersTyper.
a
n
o
n
f
u
n
anonfun
anonfuntypedStats
8
(
T
y
p
e
r
s
.
s
c
a
l
a
:
3410
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
8(Typers.scala:3410) at scala.tools.nsc.typechecker.Typers
8(Typers.scala:3410)atscala.tools.nsc.typechecker.TypersTyper.typedStats(Typers.scala:3410)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef
1
(
T
y
p
e
r
s
.
s
c
a
l
a
:
5634
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
T
y
p
e
r
s
1(Typers.scala:5634) at scala.tools.nsc.typechecker.Typers
1(Typers.scala:5634)atscala.tools.nsc.typechecker.TypersTyper.typed1(Typers.scala:5954)
at scala.tools.nsc.typechecker.Typers
T
y
p
e
r
.
t
y
p
e
d
(
T
y
p
e
r
s
.
s
c
a
l
a
:
6041
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
t
y
p
e
c
h
e
c
k
e
r
.
A
n
a
l
y
z
e
r
Typer.typed(Typers.scala:6041) at scala.tools.nsc.typechecker.Analyzer
Typer.typed(Typers.scala:6041)atscala.tools.nsc.typechecker.AnalyzertyperFactory
T
y
p
e
r
P
h
a
s
e
.
a
p
p
l
y
(
A
n
a
l
y
z
e
r
.
s
c
a
l
a
:
117
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
G
l
o
b
a
l
TyperPhase.apply(Analyzer.scala:117) at scala.tools.nsc.Global
TyperPhase.apply(Analyzer.scala:117)atscala.tools.nsc.GlobalGlobalPhase.applyPhase(Global.scala:459)
at scala.tools.nsc.typechecker.Analyzer
t
y
p
e
r
F
a
c
t
o
r
y
typerFactory
typerFactoryTyperPhase.run(Analyzer.scala:106)
at scala.tools.nsc.Global
R
u
n
.
c
o
m
p
i
l
e
U
n
i
t
s
I
n
t
e
r
n
a
l
(
G
l
o
b
a
l
.
s
c
a
l
a
:
1524
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
G
l
o
b
a
l
Run.compileUnitsInternal(Global.scala:1524) at scala.tools.nsc.Global
Run.compileUnitsInternal(Global.scala:1524)atscala.tools.nsc.GlobalRun.compileUnits(Global.scala:1508)
at scala.tools.nsc.Global
R
u
n
.
c
o
m
p
i
l
e
S
o
u
r
c
e
s
(
G
l
o
b
a
l
.
s
c
a
l
a
:
1500
)
a
t
s
c
a
l
a
.
t
o
o
l
s
.
n
s
c
.
G
l
o
b
a
l
Run.compileSources(Global.scala:1500) at scala.tools.nsc.Global
Run.compileSources(Global.scala:1500)atscala.tools.nsc.GlobalRun.compile(Global.scala:1634)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:130)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:105)
at xsbt.CompilerInterface.run(CompilerInterface.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:237)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:111)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:90)
at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:40)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:35)
at org.jetbrains.jps.incremental.scala.remote.Main
.
m
a
k
e
(
M
a
i
n
.
s
c
a
l
a
:
88
)
a
t
o
r
g
.
j
e
t
b
r
a
i
n
s
.
j
p
s
.
i
n
c
r
e
m
e
n
t
a
l
.
s
c
a
l
a
.
r
e
m
o
t
e
.
M
a
i
n
.make(Main.scala:88) at org.jetbrains.jps.incremental.scala.remote.Main
.make(Main.scala:88)atorg.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala:36)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
**报错原因:**由于scala的版本不对
解决方法:
①先查看自己项目pom文件里面对应的scala版本
②查看idea配置的Scala版本
明显看到版本不对应,将版本改成对应即可
我选择重新配置idea配置的Scala版本2.12
步骤如下
选择下载需要的版本即可。
注意:IDEA创建Scala项目时没有ScalaSDK问题解决也是如以上步骤添加对应的sdk.