• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • Artistic Style
  • Bugs
Artistic Style

When Astyle fails to open a specified file, the file is emptied

Brought to you by: jimp03, saalen
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Bugs
    • Feature Requests
  • Code
  • Artistic Style Wx
Menu ▾ ▴
  • Create Ticket
  • View Stats

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#602 When Astyle fails to open a specified file, the file is emptied

open
nobody
None
2025-08-04
2025-08-02
Francis CLERC
No

For some files sometimes Astyle seem not able to open it

Cannot open file
path\to\some\file.hpp
Artistic Style has terminated

in this case the file is emptied with no backup (.orig).
That is a problem when Astyle is used automatically just before submitting a change for example

using version 3.6.7
Astyle options: --style=allman --indent=spaces=3 --indent-switches --max-continuation-indent=80 --pad-include --indent-col1-comments --min-conditional-indent=0 --pad-comma --pad-oper --pad-header --attach-namespaces --break-blocks --squeeze-ws --squeeze-lines=3 --unpad-paren --close-templates --align-pointer=middle --align-reference=middle

Discussion

  • Francis CLERC