Skip to content

Assembly language file extension has the wrong case #218

Closed
@per1234

Description

@per1234

Describe the bug
The Arduino build system requires assembly language files to use the .S file extension but the "New Tab" dialog only allows .s. Files using the .s extension are not compiled.

To Reproduce

  1. Click the downward pointing triangle button on the right side of the tab bar.
  2. Click "New Tab"
  3. In the "Name for new file" dialog, type "Foo.S". - ".S is not a valid file extension." is shown and the "OK" button is disabled.

Expected behavior
The .S file extension to be allowed and the .s extension prohibited by the "New Tab" and "Rename" dialogs of the tab control menu.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0-beta.3-nightly.20210313
    Date: 2021-03-13T03:11:23.309Z
    CLI Version: 0.16.1 alpha [76f55490]

Additional context
Reference from the Arduino Sketch Specification: https://arduino.github.io/arduino-cli/latest/sketch-specification/#additional-code-files

I believe the relevant code is here:

export const SOURCE = ['.c', '.cpp', '.s'];
export const ADDITIONAL = ['.h', '.c', '.hpp', '.hh', '.cpp', '.s', '.json'];

Metadata

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