Skip to content

Restrict the app to one instance #114

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
kittaakos opened this issue Jun 11, 2020 · 8 comments
Closed

Restrict the app to one instance #114

kittaakos opened this issue Jun 11, 2020 · 8 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Due to this: eclipse-theia/theia#7983

Users will be still able to open multiple browser windows (per sketches) for the same process, but they will NOT be able to start the Pro IDE twice.

@kittaakos kittaakos self-assigned this Jun 11, 2020
@ubidefeo
Copy link

The main reason (probably only) to run two instances of the Java IDE was a hack which allowed users to have 2 serial monitors open at once.
In the new IDE each window (sketch) can have its own Serial Monitor
Screenshot 2021-02-18 at 18 15 50

@per1234 do you think it's fair to close this as "won't do"?

@per1234
Copy link
Contributor

per1234 commented Feb 18, 2021

If I understand eclipse-theia/theia#7983 correctly (unlikely), Akos's proposal is intended to avoid a bad experience for the user by preventing them from doing something that is not supported (starting two instances of Arduino Pro IDE). That sounds like a very good thing to me.

Even if it's not considered a high priority to work on right now, I would recommend leaving it open for a later time when the higher priority work is finished, or if we find that eclipse-theia/theia#7983 is a regular source of problems for the users.

@ubidefeo
Copy link

@per1234 my point was mostly about reasons for opening multiple instances of the IDE.
Since multiple windows/sketches can use multiple Serial Monitor instances, a very common reason for doing so is to have multiple serial monitors connected to multiple boards.
2 instances of this IDE would also conflict because of the gRPC port binding to the CLI.

I cannot see any reason not to restrict it

@per1234
Copy link
Contributor

per1234 commented Feb 18, 2021

I cannot see any reason not to restrict it

Same here, so Akos's proposal to "Restrict the app to one instance" is reasonable. So, unless this improvement has already been done, I would leave this open.

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@kittaakos kittaakos removed their assignment Jul 18, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Nov 1, 2021
@CreativeRobotics
Copy link

I routinely work with several microcontrollers at once, working on code that communicates between them. The ability to run two or more instances at once, and have each instance connected to a different communication port for programming and serial debugging is an essential feature for a 'pro' IDE. Having the ability to open multiple sketches, but then having to select different boards and comm ports when dealing with each sketch is a bug in my view.

@mklemarczyk
Copy link

I moved to IDE 2.0 only because I can open multiple instances of Arduino IDE. If that feature is gone, I have noting to do here and I can as well use the old Arduino IDE 1.0.

I usually work with multiple boards and projects on Arduino IDE. If you restrict it to one instance it will be a huge drawback. Any other IDE like Visual Studio, or industrial EcoStruxure Control Expert are not having such limitation.

@kittaakos
Copy link
Contributor Author

If you restrict it to one instance it will be a huge drawback. Any other IDE like Visual Studio, or industrial EcoStruxure Control Expert are not having such limitation.

Thanks for your remark.

For clarification: single instance != single window.

Even if a single instance IDE2 app is running, it will be possible to open multiple windows and work on various sketches just as it is now.

@kittaakos
Copy link
Contributor Author

Closing. IDE2 has been using the singleInstance config for a long time ago:

"singleInstance": true

@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Jun 16, 2023
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: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

8 participants