Giter Site home page Giter Site logo

Parameters don't understand `~` about go-sdk HOT 1 CLOSED

kvz avatar kvz commented on July 17, 2024
Parameters don't understand `~`

from go-sdk.

Comments (1)

Acconut avatar Acconut commented on July 17, 2024

ef6b927 now displays the errors correctly:

bin/transloadify -output=. -input=~/empty -template=foo -watch
2014/09/25 18:51:21 Converting all files in '~/empty' and putting the result into '.'.
2014/09/25 18:51:21 Using template with id 'foo'.
2014/09/25 18:51:21 Watching directory '~/empty' for changes...
2014/09/25 18:51:21 error: open ~/empty: no such file or directory
2014/09/25 18:51:21 error: inotify_add_watch: no such file or directory
fatal error: all goroutines are asleep - deadlock!

goroutine 16 [select]:
main.main()
    /home/marius/workspace/go/src/github.com/transloadit/go-sdk/transloadify/transloadify.go:97 +0xb2c

goroutine 19 [finalizer wait]:
runtime.park(0x414720, 0x858610, 0x8568a9)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x858610, 0x8568a9)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

The problem seems to be that Go (and fsnotify) can't handle ~ in paths in general.
This would require a manual workaround.

from go-sdk.

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.