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

syntax error in './gsk-4.0/path_point.cr:122:13': can't use variable name 'center' inside assignment to variable 'center' #144

Open
GeopJr opened this issue Mar 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@GeopJr
Copy link
Contributor

GeopJr commented Mar 9, 2024

This is on 46beta, the generated code is:

def curvature(path : Gsk::Path,direction : Gsk::PathDirection,) : Graphene::Point
  # gsk_path_point_get_curvature: (Method)
# @path: 
# @direction: 
# @center: (out) (nullable) (caller-allocates) 
# Returns: (transfer none) 

  
  # Generator::NullableArrayPlan
center = if center.nil?
Void.null
else
center.to_unsafe
end
# Generator::CallerAllocatesPlan
center=Graphene::Point.new
  # C call
  _retval = LibGsk.gsk_path_point_get_curvature(to_unsafe, path, direction, center)


  
  # Return value handling
  center

end

The order doesn't really make much sense as center gets overwritten afterwards anyway?

@GeopJr
Copy link
Contributor Author

GeopJr commented Mar 9, 2024

This is the same issue as the harfbuzz one some versions ago, I don't know if curvature should also be ignored nvm

@GeopJr
Copy link
Contributor Author

GeopJr commented Mar 9, 2024

Closing as this has been fixed on gtk4.cr

@GeopJr GeopJr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
@hugopl
Copy link
Owner

hugopl commented Mar 12, 2024

I think we can keep this open here, since gtk4 shard doesn't really fix it but just ignore the function.

@hugopl hugopl reopened this Mar 12, 2024
@hugopl hugopl added the bug Something isn't working label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants