Git Product home page Git Product logo

Comments (7)

alexflint avatar alexflint commented on May 16, 2024

@emead which example were you running? Or was it the example from the readme? (If from the readme, could you post your entire go source here?)

from gallium.

emead avatar emead commented on May 16, 2024

Using the example from the readme:

package main

import (
    "os"
    "runtime"

    "github.com/alexflint/gallium"
)

func main() {
    runtime.LockOSThread()         // must be the first statement in main - see below
    gallium.Loop(os.Args, onReady) // must be called from main function
}

func onReady(app *gallium.App) {
    app.NewWindow("http://example.com/", "Window title!")
}

However, I have since pulled the latest changes to Gallium and now get this error:
app.NewWindow undefined (type *gallium.App has no field or method NewWindow)

Can the readme please be updated with a valid example?

from gallium.

emead avatar emead commented on May 16, 2024

I think that the error I had was probably the same as the one raised here: #23

from gallium.

Virtual-Machine avatar Virtual-Machine commented on May 16, 2024

So are these warnings critical?

I am also getting broken kqueue warnings on Mac Sierra but the application still appears to work fine as far as I can tell. I am using the latest version of Gallium and I have tried rebuilding libevent as was recommended on a few other Github projects yet I still see these warnings:

=== gallium.Loop ===
in GalliumLoop
calling content::ContentMain...
MainDelegate::BasicStartupComplete
MainDelegate::PreSandboxStartup
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
at GalliumOpenWindow
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
at GalliumOpenWindowImpl
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
2017/01/01 12:56:24 about clicked

from gallium.

alexflint avatar alexflint commented on May 16, 2024

@Virtual-Machine those warnings can be safely ignored. If you figure out how to silence/fix them, please let me know!

from gallium.

alexflint avatar alexflint commented on May 16, 2024

@emead readme is fixed now. Closing this issue as I have not been able to reproduce this failure on Sierra. Please reopen if you have further problems.

from gallium.

alyssaraefox avatar alyssaraefox commented on May 16, 2024

screen shot 2017-02-09 at 6 18 24 pm

I had the same issue. I know I was getting closer to running my full program in a previous development stint. However, even in that session I had lost precious hours over the program passing the incorrect string into the newly opened browsers address bar.

from gallium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.