Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid underscore as identifier for Scala 2.13.x ? #214

Closed
xuwei-k opened this issue Jan 22, 2019 · 1 comment
Closed

avoid underscore as identifier for Scala 2.13.x ? #214

xuwei-k opened this issue Jan 22, 2019 · 1 comment

Comments

@xuwei-k
Copy link

xuwei-k commented Jan 22, 2019

[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Core.scala:83:17: not found: value _
[fastparse] [error]   val `_*` = P( `_` ~ `*` )
[fastparse] [error]                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Core.scala:83:17: not found: value _
[fastparse] [error]   val `_*` = P( `_` ~ `*` )
[fastparse] [error]                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Core.scala:103:61: not found: value _
[fastparse] [error]   val PostDotCheck: P0 = P( WL ~ !(`super` | `this` | "{" | `_` | `type`) )
[fastparse] [error]                                                             ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Core.scala:103:61: not found: value _
[fastparse] [error]   val PostDotCheck: P0 = P( WL ~ !(`super` | `this` | "{" | `_` | `type`) )
[fastparse] [error]                                                             ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:14:33: not found: value _
[fastparse] [error]     val Selector: P0 = P( (Id | `_`) ~ (`=>` ~/ (Id | `_`)).? )
[fastparse] [error]                                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:14:55: not found: value _
[fastparse] [error]     val Selector: P0 = P( (Id | `_`) ~ (`=>` ~/ (Id | `_`)).? )
[fastparse] [error]                                                       ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:14:33: not found: value _
[fastparse] [error]     val Selector: P0 = P( (Id | `_`) ~ (`=>` ~/ (Id | `_`)).? )
[fastparse] [error]                                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:14:55: not found: value _
[fastparse] [error]     val Selector: P0 = P( (Id | `_`) ~ (`=>` ~/ (Id | `_`)).? )
[fastparse] [error]                                                       ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:16:49: not found: value _
[fastparse] [error]     val ImportExpr: P0 = P( StableId ~ ("." ~/ (`_` | Selectors)).? )
[fastparse] [error]                                                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:16:49: not found: value _
[fastparse] [error]     val ImportExpr: P0 = P( StableId ~ ("." ~/ (`_` | Selectors)).? )
[fastparse] [error]                                                 ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:74:50: not found: value _
[fastparse] [error]       val ImplicitLambda = P( `implicit` ~ (Id | `_`) ~ (`:` ~ InfixType).? ~ `=>` ~ LambdaRhs.? )
[fastparse] [error]                                                  ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:74:50: not found: value _
[fastparse] [error]       val ImplicitLambda = P( `implicit` ~ (Id | `_`) ~ (`:` ~ InfixType).? ~ `=>` ~ LambdaRhs.? )
[fastparse] [error]                                                  ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:88:98: not found: value _
[fastparse] [error]     val ExprSuffix = P( (WL ~ "." ~/ Id | WL ~ TypeArgs | NoSemis ~ ArgList).repX ~~ (NoSemis  ~ `_`).? )
[fastparse] [error]                                                                                                  ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:88:98: not found: value _
[fastparse] [error]     val ExprSuffix = P( (WL ~ "." ~/ Id | WL ~ TypeArgs | NoSemis ~ ArgList).repX ~~ (NoSemis  ~ `_`).? )
[fastparse] [error]                                                                                                  ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:104:63: not found: value _
[fastparse] [error]       P( XmlExpr | New | BlockExpr | ExprLiteral | StableId | `_` | Parened )
[fastparse] [error]                                                               ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:111:21: not found: value _
[fastparse] [error]     val Thingy = P( `_` ~ (`:` ~/ TypePat).? ~ !("*" ~~ !syntax.Basic.OpChar) )
[fastparse] [error]                     ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:104:63: not found: value _
[fastparse] [error]       P( XmlExpr | New | BlockExpr | ExprLiteral | StableId | `_` | Parened )
[fastparse] [error]                                                               ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:111:21: not found: value _
[fastparse] [error]     val Thingy = P( `_` ~ (`:` ~/ TypePat).? ~ !("*" ~~ !syntax.Basic.OpChar) )
[fastparse] [error]                     ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:117:76: not found: value _
[fastparse] [error]   val BlockLambdaHead: P0 = P( "(" ~ BlockLambdaHead ~ ")" | `this` | Id | `_` )
[fastparse] [error]                                                                            ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:117:76: not found: value _
[fastparse] [error]   val BlockLambdaHead: P0 = P( "(" ~ BlockLambdaHead ~ ")" | `this` | Id | `_` )
[fastparse] [error]                                                                            ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:136:25: not found: value _
[fastparse] [error]   val TypePattern = P( (`_` | BacktickId | VarId) ~ `:` ~ TypePat )
[fastparse] [error]                         ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:140:28: not found: value _
[fastparse] [error]     val Binding = P( (Id | `_`) ~ `@` )
[fastparse] [error]                            ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:136:25: not found: value _
[fastparse] [error]   val TypePattern = P( (`_` | BacktickId | VarId) ~ `:` ~ TypePat )
[fastparse] [error]                         ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Exprs.scala:140:28: not found: value _
[fastparse] [error]     val Binding = P( (Id | `_`) ~ `@` )
[fastparse] [error]                            ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Types.scala:44:89: not found: value _
[fastparse] [error]     val BasicType = P( TupleType | Literals.Expr.Literal | TypeId ~ ("." ~ `type`).?  | `_` )
[fastparse] [error]                                                                                         ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Types.scala:44:89: not found: value _
[fastparse] [error]     val BasicType = P( TupleType | Literals.Expr.Literal | TypeId ~ ("." ~ `type`).?  | `_` )
[fastparse] [error]                                                                                         ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Types.scala:62:13: not found: value _
[fastparse] [error]     P((Id | `_`) ~ TypeArgList.? ~ TypeBounds ~ CtxBounds)
[fastparse] [error]             ^
[fastparse] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/fastparse-2dafd52f84a227c6da3fd1a716b2b02576a4f25e/scalaparse/shared/src/main/scala/scalaparse/Types.scala:62:13: not found: value _
[fastparse] [error]     P((Id | `_`) ~ TypeArgList.? ~ TypeBounds ~ CtxBounds)
[fastparse] [error]             ^
[fastparse] [error] 14 errors found
[fastparse] [info] No documentation generated with unsuccessful compiler run
[fastparse] [error] 14 errors found
[fastparse] [error] (scalaparseJVM / Compile / compileIncremental) Compilation failed
[fastparse] [error] (scalaparseJVM / Compile / doc) Scaladoc generation failed
@lihaoyi
Copy link
Member

lihaoyi commented Jan 22, 2019

I'm happy to rename it if necessary, but aren't the backticks meant to allow usage of special characters and keywords in identifiers?

@xuwei-k xuwei-k closed this as completed Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants