Skip to content

Make 'bare minimum' sketch modifiable by users #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dougp2 opened this issue May 16, 2021 · 4 comments · Fixed by #1559
Closed

Make 'bare minimum' sketch modifiable by users #373

dougp2 opened this issue May 16, 2021 · 4 comments · Fixed by #1559
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@dougp2
Copy link

dougp2 commented May 16, 2021

https://forum.arduino.cc/t/modify-bare-minimum/862290

It's gone. This was a nice thing in IDE 1.8.13.

@dougp2 dougp2 added the type: enhancement Proposed improvement label May 16, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label May 16, 2021
@JM-FRANCE
Copy link

The content of a new sketch is hardcoded

await promisify(fs.writeFile)(sketchFile, `void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
`, { encoding: 'utf8' });

that is not great… why not duplicate a default sketch (bareMinimum.ino but user definable would be ideal).
(This allows a new sketch to match personal preferences for what we want to see there. Anyone tired of deleting the two comments (not localized) and adding a Serial.begin for example ?

@UKHeliBob
Copy link

What is the current status of this ?

I see that the issue is closed but has been assigned to someone. At first sight that does not make sense

@per1234
Copy link
Contributor

per1234 commented Feb 10, 2022

Hi @UKHeliBob. The issue is not closed.

The "Closed" indicator you are seeing is for a duplicate here: #733.

This is just the way GitHub works. When you link to an issue or PR from any comment on GitHub, it adds this "pingback" event to the referenced issue, with a label that shows the state of the referencing issue or PR. It does seem to cause some occasional misunderstandings from those who aren't super experienced with the GitHub framework, but it is actually a super useful feature that often leads me to valuable information.

@UKHeliBob
Copy link

Can I have an update on this please ?

I am trying to use rc9 as my "daily driver" IDE but every time I start a new sketch the fact that the default new sketch cannot be modified annoys me. For instance, I never need the comment lines in the sketch and have to delete them

Ideally the default sketch that is presented when starting a new sketch would be configurable but I would settle for it being BareMinimum as long as I can edit it to suit my working practices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
5 participants