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

Can't Create SocketAddress Object #2

Open
fribeiro1 opened this issue Dec 27, 2015 · 2 comments
Open

Can't Create SocketAddress Object #2

fribeiro1 opened this issue Dec 27, 2015 · 2 comments
Assignees
Labels

Comments

@fribeiro1
Copy link

When creating a SocketAddress object with the code below, I am getting the following error:

load: 'src/net/sockets.slate'

[| addr |
  addr: (Net SocketAddress newOn: '127.0.0.1:61613').
] do.

The method #subexpression: was not found for the following arguments: {#(Matcher subexpressions: #(Dictionary ...). matchee: '127.0.0.1:61613'. regex: #(Expression ...). Fail: -1). 0}

Am I doing something wrong, or is there a bug there?

@briantrice
Copy link
Owner

It starts here: https://github.com/briantrice/slate-language/blob/master/src/net/sockets.slate#L100C3-L100C3

But I think it's traced to @timmydo's work on the regex update, where the regex library was swapped out without updating the callers fully, here:
3b8a08b

Basically, it's calling the old library's subexpression: method, which wasn't ported to the new library per se, and it should be calling subexpressionAt: instead.

@briantrice
Copy link
Owner

I've created a PR I think addresses this, will have to test: #4

@briantrice briantrice added the bug label Jul 5, 2023
@briantrice briantrice self-assigned this Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants