Skip to content

Value Raw is not a member of String error with variable named format present #112

Open
@intracer

Description

Sometimes variable names lead to this misterious error

Here is example that I found on the internet http://www.ethanjoachimeldridge.info/tech-blog/value-raw-not-member-string-scala

[error] /path/app/views/common/templateNotFound.scala.xml:4: value raw is not a member of String
[error] The template or the format does exist
[error] ^
[error] one error found
error Compilation failed

View did not compile with variables @(template: String, format: String) and compiled with variable names @(badTemplate: String, badFormat: String)

I also had to rename String variable format to outputFormat to avoid this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions