Skip to content

Error window with navigation #1300

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
3 tasks done
Lorandil opened this issue Aug 6, 2022 · 4 comments
Closed
3 tasks done

Error window with navigation #1300

Lorandil opened this issue Aug 6, 2022 · 4 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid type: enhancement Proposed improvement

Comments

@Lorandil
Copy link

Lorandil commented Aug 6, 2022

Describe the request

At work I'm working with Visual Studio and I really like the possibilities of the error window:

  • all errors are listed in one window (of course there might be red herrings ;))
  • by double clicking an error entry the editor jumps to the corresponding file and line

I would like to see something similar in the Arduino IDE because searching the output window or iterating through errors by F8 is cumbersome.
At least there should be a button "Jump to next error"

Describe the current behavior

Jumping from error to error by pressing F8 (I only know this, because I looked into the shortcuts - a beginner would fail here)

Arduino IDE version

nightly-20220806

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@Lorandil Lorandil added the type: enhancement Proposed improvement label Aug 6, 2022
@per1234
Copy link
Contributor

per1234 commented Aug 6, 2022

the error window

Do you mean the "Error List"?

https://docs.microsoft.com/en-us/visualstudio/ide/reference/error-list-window?view=vs-2022

https://docs.microsoft.com/en-us/visualstudio/ide/find-and-fix-code-errors?view=vs-2022#review-errors-in-detail

I don't use Visual Studio, but it appears to be equivalent to the Arduino IDE's Problems view.

This can be opened via the command palette:

  1. Open the "Command Palette" by pressing the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users).
  2. Select the "Toggle Problems View" command from the "Command Palette".

However, the "Problems" feature was recently changed to being disabled by default (#1107), so you will also need to enable that feature before. I provided a more detailed explanation of why it is disabled and how to enable it here:

https://forum.arduino.cc/t/arduino-ide-2-0-0-rc9-available-for-download/1014434#problem-detection-disabled-by-default-15

by double clicking an error entry the editor jumps to the corresponding file and line

This is how the "Problems" view already works.

You might also like this related feature that is currently in progress: #1275

there should be a button "Jump to next error"

There is one, but it is currently in experimental status. Please give it a try and let us know if you discover any problems:

https://forum.arduino.cc/t/arduino-ide-2-0-0-rc8-available-for-download/1005909#identify-sketch-code-lines-that-caused-a-compilation-error-5

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2022
@per1234 per1234 self-assigned this Aug 6, 2022
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Aug 6, 2022
@Lorandil
Copy link
Author

Lorandil commented Aug 6, 2022

Do you mean the "Error List"?

Yes, I meant the "error list" ;)

This is how the "Problems" view already works.

I enabled the problems view but it doesn't work as I expected.
I removed a ';' after an assignment, got errors in the output, but the problem view stays empty,

You might also like this related feature that is currently in progress: #1275
In Visual Studio all compiler errors would be found in the error list, but as I see this is what #1275 will do ;)

Thanks fpr you help!

@per1234
Copy link
Contributor

per1234 commented Aug 6, 2022

the problem view stays empty,

Did you enable the feature by following the instructions at the link I provided in my previous reply?

After doing that, you should see an item in the Problems view for this type of error:

image

@Lorandil
Copy link
Author

Lorandil commented Aug 7, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants