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

sclang: fix resolveIfAlias [skip appveyor] #4180

Merged
merged 1 commit into from
Jan 10, 2019
Merged

sclang: fix resolveIfAlias [skip appveyor] #4180

merged 1 commit into from
Jan 10, 2019

Conversation

mossheim
Copy link
Contributor

@mossheim mossheim commented Nov 28, 2018

Purpose and Motivation

fixes an infinite hang in SC_Filesystem::resolveIfAlias on certain input
files (unknown cause).

also add regression test, update message in TestSerialPort

fixes #4131

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Note: this affects macOS only

Checklist

  • All tests are passing - See notes below
  • If necessary, new tests were created to address changes in PR, and tests are passing
  • Updated documentation, if necessary
  • This PR is ready for review

Notes on testing

This affects all places standardizePath is used, and class library
compilation. I don't know for certain whether the old behavior is
maintained under all cases. Here are the cases that do stay the same:

  • normal files
  • directories
  • devices/pipes
  • valid alias
  • broken alias

I'm not enough of a macOS filesystem expert to know if there are corner
cases this misses. It's really unfortunate that this code now has to do a full
string compare when we previously had a bool; if anyone can find a
better way please let me know!

If this goes into 3.10.1 (which i would expect it to) I would say this
change alone warrants a beta release so any obvious failings can be
caught.

fixes an infinite hang in SC_Filesystem::resolveIfAlias on certain input
files (unknown cause).

also add regression test, update message in TestSerialPort

fixes #4131
@mossheim mossheim added comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library" os: macOS comp: class library SC class library labels Nov 28, 2018
@nhthn nhthn added this to the 3.10.1 milestone Nov 28, 2018
@mossheim
Copy link
Contributor Author

mossheim commented Jan 9, 2019

Can someone please review this so we can move toward creating an RC for 3.10.1? I have already noted the things I tested above.

@mossheim mossheim merged commit f906d5c into supercollider:3.10 Jan 10, 2019
@mossheim mossheim deleted the issue/4131 branch January 10, 2019 01:45
@mossheim mossheim restored the issue/4131 branch April 10, 2020 18:53
@mossheim mossheim deleted the issue/4131 branch August 1, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: class library SC class library comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library" os: macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants