Coder Social home page Coder Social logo

Comments (4)

gravityblast avatar gravityblast commented on June 6, 2024

hi @justinfx, can you please post your config file?

from fresh.

justinfx avatar justinfx commented on June 6, 2024

It's the default sample config, with just the root value changed:

root:              domain.com/me/myProject/src
tmp_path:          ./tmp
build_name:        runner-build
build_log:         runner-build-errors.log
valid_ext:         .go, .tpl, .tmpl, .html
build_delay:       600
colors:            1
log_color_main:    cyan
log_color_build:   yellow
log_color_runner:  green
log_color_watcher: magenta
log_color_app:

from fresh.

gravityblast avatar gravityblast commented on June 6, 2024

@justinfx if you are running fresh from the myProject folder, can you try setting ./src as root?

from fresh.

justinfx avatar justinfx commented on June 6, 2024

Hi, sorry it took me so long to reply on this issue.
Yes, changing to ./src as the root does allow fresh to run, but it is only monitoring that src directory as the root, which means you must have go files in the root of your project for it to monitor anything.

I realize that fresh has to know where to issue a build in terms of the source, but it might be nice to be able to express the src root separately from the monitor root. Something like:

  1. Keep root the way it is, acting as both the src root and monitor root
  2. But, if the config specifies src_root, then use that for building the source, and root for watching changes

And it would also be nice if the paths could use [os.ExpandEnv|http://godoc.org/os#ExpandEnv] so that you can use $GOPATH in your path:

root          $GOPATH/domain/project
src_root    $GOPATH/domain/project/src

This would allow all of the files in the project tree to be monitored, as well as supporting the actual go source files be in a subdirectory. It would probably help support other projects that are multi-language.

Also, in terms of my originally posted issue... fresh does completely panic if you specify a bad path as a root. It might be nice if it legitimately checked the path and died gracefully with "Path does not exist" instead of a "invalid memory address or nil pointer dereference"

from fresh.

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.