GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [kotlin] Support multidollar interpolation (Kotlin 2.2) · Issue #6003 · pmd/pmd

[kotlin] Support multidollar interpolation (Kotlin 2.2) #6003

New issue
Copy link
New issue
Copy link
Closed
#6497
Closed
[kotlin] Support multidollar interpolation (Kotlin 2.2)#6003
#6497
Copy link
Labels
an:enhancementAn improvement on existing features / rules
Milestone
7.24.0

Description

@martinvisser
martinvisser
opened on Aug 20, 2025
Issue body actions

Is your feature request related to a problem? Please describe.
The latest release of Kotlin (2.2) has some new language features that the current PMD plugin cannot parse, like double-dollar constructions.

Describe the solution you'd like
Support for Kotlin 2.2

Describe alternatives you've considered
The plugin doesn't crash, so there is no workaround/alternative necessary at this point.

Additional context
Result of a scan:

13:55:05,784 [INFO] Sensor PmdSensor [pmdjpinpoint]
13:55:05,785 [INFO] Execute PMD 7.10.0
13:55:05,809 [INFO] Java version: 21
13:55:05,872 [INFO] PMD configuration: /agent/_work/23/s/app/target/sonar/pmd.xml
13:55:10,311 [INFO] PMD configuration: /agent/_work/23/s/app/target/sonar/pmd-kotlin.xml
13:55:11,450 [ERROR] [stderr] line 40:59 token recognition error at: '$'
13:55:11,451 [ERROR] [stderr] line 40:60 token recognition error at: '$'
13:55:11,763 [ERROR] [stderr] line 12:90 extraneous input '{' expecting {<EOF>, '@', AT_PRE_WS, 'class', 'interface', 'fun', 'object', 'val', 'var', 'typealias', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'expect', 'actual'}
13:55:12,285 [ERROR] [stderr] line 38:12 extraneous input '{' expecting {<EOF>, '@', AT_PRE_WS, 'class', 'interface', 'fun', 'object', 'val', 'var', 'typealias', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'expect', 'actual'}
13:55:12,290 [ERROR] [stderr] line 40:26 no viable alternative at input '('
13:55:12,290 [ERROR] [stderr] line 41:16 extraneous input '"' expecting {<EOF>, '@', AT_PRE_WS, 'class', 'interface', 'fun', 'object', 'val', 'var', 'typealias', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'expect', 'actual'}
13:55:12,319 [ERROR] [stderr] line 44:8 no viable alternative at input '()\n        path'
13:55:12,334 [ERROR] [stderr] line 44:8 no viable alternative at input '\n        path'
13:55:12,334 [ERROR] [stderr] line 44:8 extraneous input 'path' expecting {<EOF>, '@', AT_PRE_WS, 'class', 'interface', 'fun', 'object', 'val', 'var', 'typealias', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'expect', 'actual'}
13:55:12,396 [ERROR] [stderr] line 61:12 no viable alternative at input 'private companion'
13:55:12,397 [ERROR] [stderr] line 61:29 extraneous input '{' expecting {NL, 'file', 'field', 'property', 'get', 'set', 'receiver', 'param', 'setparam', 'delegate', 'import', 'constructor', 'by', 'companion', 'init', 'where', 'catch', 'finally', 'out', 'dynamic', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'reified', 'expect', 'actual', Identifier}
13:55:12,403 [ERROR] [stderr] line 65:4 no viable alternative at input '\n    }'
13:55:12,404 [ERROR] [stderr] line 65:4 extraneous input '}' expecting {<EOF>, '@', AT_PRE_WS, 'class', 'interface', 'fun', 'object', 'val', 'var', 'typealias', 'public', 'private', 'protected', 'internal', 'enum', 'sealed', 'annotation', 'data', 'inner', 'value', 'tailrec', 'operator', 'inline', 'infix', 'external', 'suspend', 'override', 'abstract', 'final', 'open', 'const', 'lateinit', 'vararg', 'noinline', 'crossinline', 'expect', 'actual'}
13:55:12,460 [ERROR] [stderr] line 30:17 token recognition error at: '$'
13:55:12,460 [ERROR] [stderr] line 30:18 token recognition error at: '$'
13:55:12,664 [ERROR] [stderr] line 22:33 token recognition error at: '$'
13:55:12,664 [ERROR] [stderr] line 22:34 token recognition error at: '$'
13:55:12,846 [ERROR] [stderr] line 15:26 token recognition error at: '$'
13:55:12,846 [ERROR] [stderr] line 15:27 token recognition error at: '$'
13:55:13,044 [ERROR] [stderr] line 14:26 token recognition error at: '$'
13:55:13,045 [ERROR] [stderr] line 14:27 token recognition error at: '$'
13:55:13,124 [ERROR] [stderr] line 28:33 token recognition error at: '$'
13:55:13,124 [ERROR] [stderr] line 28:34 token recognition error at: '$'
13:55:13,128 [ERROR] [stderr] line 34:17 token recognition error at: '$'
13:55:13,129 [ERROR] [stderr] line 34:18 token recognition error at: '$'
13:55:13,304 [ERROR] [stderr] line 18:26 token recognition error at: '$'
13:55:13,304 [ERROR] [stderr] line 18:27 token recognition error at: '$'
13:55:13,404 [ERROR] [stderr] line 15:8 token recognition error at: '$'
13:55:13,404 [ERROR] [stderr] line 15:9 token recognition error at: '$'

Activity

  1. martinvisser
    added
    an:enhancementAn improvement on existing features / rules
    on Aug 20, 2025
  2. martinvisser commented on Jan 6, 2026

    @martinvisser
    martinvisser
    on Jan 6, 2026
    Author
    More actions

    Any updates on this?

  3. stokpop commented on Mar 7, 2026

    @stokpop
    stokpop
    on Mar 7, 2026
    Contributor
    More actions

    @martinvisser I saw a new informal release of Kotlin antlr grammar here: https://github.com/antlr/grammars-v4, tried that but still same issues for "Multi-dollar string interpolation". Managed to fix it locally now, let me try to turn that in a PR.

  4. adangel
    changed the title [-]Kotlin 2.2 support[/-] [+][kotlin] Support multidollar interpolation (Kotlin 2.2)[/+] on Mar 27, 2026
  5. adangel
    added this to the 7.24.0 milestone on Apr 23, 2026
  6. adangel
    added 2 commits that reference this issue on Apr 23, 2026

    [doc] Update release notes (pmd#6003, pmd#6497)

    460a6d5

    [doc] Update release notes (pmd#6003, pmd#6497)

    1328d18
  7. adangel
    closed this as completedin #6497on Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.24.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.