Skip to content
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

1.6.0 IDE verbose compile output misdirected while compiling with multiple projects open at same time #2680

Open
plocher opened this issue Feb 23, 2015 · 5 comments
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug

Comments

@plocher
Copy link

plocher commented Feb 23, 2015

MacOS Java6 IDE 1.6.0

  1. Set preferences to verbose compiler output
  2. Open 2 sketches in different windows (pick one that has several libraries to compile so the verify stage takes a little bit of time...)
  3. Click on Verify on one of them
  4. While the compile is happening and generating progress output (i.e., before it finishes), click on the other sketch's window

BUG: watch the first sketch's compile output be redirected to the second sketch's window's output region.

@ffissore ffissore added Component: IDE user interface The Arduino IDE's user interface Type: Bug labels Feb 23, 2015
@ffissore
Copy link
Contributor

That's an old issue, although never reported before. Thanks, we'll fix it asap

@ffissore
Copy link
Contributor

This will be hard to fix. IDE uses plain access to stdout/stderr, which is intercepted and duplicated on both original stdour/err and current editor console. This means that the IDE is unable to understand the difference between something happening on one window and something happening on another window.

Solution is to replace each stdour/err call to a call to the local editor console. They are everywhere, so it will take time

@ffissore ffissore removed this from the Release 1.6.6 milestone Jun 29, 2015
@plocher
Copy link
Author

plocher commented Jun 29, 2015

IMO, consider this more of a request for enhancement than a bug - I'm
pretty sure the sweet spot for users is still a single sketch...

That said, it is not unusual to see multi-arduino projects in the wild -
and those developers (myself included) would value better support for this
workflow...

Unfortunately, there are many obstacles to overcome, the biggest being that
the board settings are global instead of sketch specific, which makes it is
a royal pain to build a two-board system that uses different boards or usb
connections - the tools menu almost starts to melt with all the activity it
sees :-)

Since this isn't that request, and until a larger project addresses these
fundamental multi-IDE/board issues, this bug could easily be fixed in the
traditional way - with a release note - so it becomes, if not a feature, at
least not a surprise.

Peace,
-John

On Mon, Jun 29, 2015 at 6:54 AM, Federico Fissore notifications@github.com
wrote:

This will be hard to fix. IDE uses plain access to stdout/stderr, which is
intercepted and duplicated on both original stdour/err and current editor
console. This means that the IDE is unable to understand the difference
between something happening on one window and something happening on
another window.

Solution is to replace each stdour/err call to a call to the local editor
console. They are everywhere, so it will take time


Reply to this email directly or view it on GitHub
#2680 (comment).

@lmihalkovic
Copy link

there are many obstacles to overcome

@plocher the points you mention are real, however IMHO none of it a show-stopper

 They are everywhere, so it will take time

IMHE(xperience) a couple hours at best. maybe even a couple more to think up some missing bits. grand total 1/2 day at best. but say I am completely wrong, and it takes 1 full day. this spring cleaning will also address #4221

before someone asks, my codebase has diverged a lot (looks more like a 2.0 at this point) last week when I added multi editor types (a match for Arduino Create, see #4197), but if not obvious (a subjective topic by all means) it is IMHE easy (measured by amount of code) to make these changes

@lmihalkovic
Copy link

[LMDONE]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants