Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,108
    • Issues 2,108
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #36752
Closed
Open
Created Mar 03, 2020 by FPC Admin account@fpc_adminOwner

Codetools do not accept "cblock" modifier with {$modeswitch cblocks}

Original Reporter info from Mantis: trev @trevoz
  • Reporter name: Trevor Roydhouse

Description:

Attempts to add any form method to a project results in an error and the file AudioComponents.pas is opened in the IDE editor complaining of a CodeTools error (see attached image).

Trivial compressed project1.zip demonstrating issue attached. I have the problem with much bigger real projects. This is just the least amount of code to reproduce the error.

Steps to reproduce:

Try to add a form method (eg OnCreate etc) to the attached project.

Additional information:

See Forum: https://forum.lazarus.freepascal.org/index.php/topic,48744.0.html where Dmitry thinks it may be caused by CodeTools not supporting C-blocks related syntax

Mantis conversion info:

  • Mantis ID: 36752
  • OS: macOS
  • OS Build: 10.14.6
  • Build: Lazarus Trunk r62688
  • Platform: Apple Mac mini
  • Fixed in revision: 62886 (#0cc6e203) 63028 (#7125b6ce)
  • Monitored by: » Hansaplast (Hans Luijten), » @trevoz (Trevor Roydhouse)
  • Target version: 2.0.8
Assignee
Assign to
Time tracking