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

[Server] Show filepath in errors #2514

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

SunderB
Copy link
Contributor

@SunderB SunderB commented Oct 6, 2020

Description

Includes the file path in error messages when an error occurs in an external file (via run_file), and
Should hopefully fix #2336
Fixes a server crashing bug in the original PR (#2470)

Testing checklist

  • Sonic Pi boots without errors
  • run_file: Error message shows the external file's path
  • code in buffer: Error message shows the buffer no.

Screenshots (if appropriate):

Types of changes

Bug fix (non-breaking change which fixes an issue)

@SunderB
Copy link
Contributor Author

SunderB commented Oct 22, 2020

My tests of the PR on my Debian 10 desktop yield this result:
Sonic Pi filename in errors demo 1-lowquality576p

@SunderB SunderB changed the title Show filepath in errors [Server] Show filepath in errors Oct 22, 2020
@SunderB
Copy link
Contributor Author

SunderB commented Oct 22, 2020

@samaaron what do you think? :)

Also, does the info[:type] value need to be frozen aswell to avoid other issues?

info[:name].freeze
info.freeze
display_name.freeze

@SunderB SunderB marked this pull request as ready for review October 28, 2020 13:15
@SunderB SunderB force-pushed the patch/show-filepath-in-errors branch from 1b5d922 to 200fa77 Compare May 22, 2021 08:32
@SunderB SunderB changed the base branch from main to dev May 22, 2021 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Location and line number confusing when errors occur in external files
1 participant