Comments (6)
from skip.
Ok, that's super strange.
There is this piece of logic that should detect a file change. You can find it in the sk script.
if [ -f "$skdir/skfiles" ]; then
find "$root" -name "*.sk" > "$skdir/skfiles_new"
if [ $(diff "$skdir/skfiles" "$skdir/skfiles_new") ]; then
echo "Detected a file configuration change"
restart
fi
fi
This should detect that you added or removed a new sk file.
from skip.
Possibly related - Sometimes (but not every time) I get the following error:
$ sk check compiler/
.../bin/sk: line 218: [: too many arguments
Line 218 is the diff line from your comment.
from skip.
In particular - I was getting that error when I would expect it to detect a new file...
from skip.
Humm. I just tested on my machine, I don't see any error :-(
How did you install sk?
I did, in the skip root dir:
$ ./prepare-release.sh 0.7 && cd skip-Linux-0.7 && ./install.sh path_to_skip_bin
from skip.
@edwinsmith's fix is correct - to test you need to add multiple files
Easiest fix is:
@@ -215,7 +215,8 @@
if [ -f "$skdir/skfiles" ]; then
find "$root" -name "*.sk" > "$skdir/skfiles_new"
- if [ $(diff "$skdir/skfiles" "$skdir/skfiles_new") ]; then
+ diff -q "$skdir/skfiles" "$skdir/skfiles_new" > /dev/null
+ if [ $? -ne 0 ]; then
echo "Detected a file configuration change"
restart
fi
from skip.
Related Issues (20)
- Abstract static methods on traits are too restrictive HOT 1
- sk still says "Written ..." even when the build failed
- Re-enable memoization tests
- Project file errors leads to skip_server deadlock
- if/then/else unexpected behavior
- Install via homebrew
- Incremental Compilation? HOT 4
- Website appears to be gone HOT 3
- The website is down again. HOT 2
- Create a project file for src/native
- Github Template Files HOT 4
- [doc website] HOT 3
- skip_server crashes when @cpp_extern is missing
- High Performance JS Backend HOT 4
- sk script needs longer ps output
- Crash of skip_server if subclass is removed
- This program should be refused, the closure is untracked
- Chars.escape is incorrect
- skip_to_native script fails with LLVM 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skip.