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

No Overload Matches with Type Path #91

Open
Tarbetu opened this issue Jul 24, 2021 · 0 comments
Open

No Overload Matches with Type Path #91

Tarbetu opened this issue Jul 24, 2021 · 0 comments

Comments

@Tarbetu
Copy link

Tarbetu commented Jul 24, 2021

I believe that Builder should work with Path class. Example:

Error target notebook_for_me failed to compile:
Showing last frame. Use --error-trace for full trace.

In src/gui.cr:6:28

 6 | builder = Gtk::Builder.new_from_file glade_file
                            ^------------
Error: no overload matches 'Gtk::Builder.new_from_file' with type Path

Overloads are:
 - Gtk::Builder.new_from_file(filename : ::String)

Steps to produce:

  • Just try to use "Gtk::builder.new_from_file" method with Path. For e.g:
    Gtk::builder.new_from_file Path["my_file.glade"]

Information about Path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants