Comments (13)
This one is trickier, but https://github.com/jacereda/fsatrace/compare/stat seems to work properly on Darwin.
from fsatrace.
Linux version is even more ugly. I'll attempt Windows tomorrow.
from fsatrace.
I guess we need a flag to tell what ops you're interested in to reduce parsing cost.
from fsatrace.
Agreed, flags would be very useful.
from fsatrace.
I'm interested in such a tool, in my case stack build
takes 2.2 secs.
from fsatrace.
Writing it on top of the shake forward mode I added is trivial. I was going to have shake --forward -- stack build do it.
from fsatrace.
Can you try this one? https://github.com/jacereda/fsatrace/compare/file-args
For some reason the travis build gets stuck on Mac, I can't reproduce it here.
from fsatrace.
Some results:
C:\Neil\neil>cabal --version
cabal-install version 1.22.6.0
using version 1.22.4.0 of the Cabal library
C:\Neil\neil>fsatrace rwqmv - -- cabal --version
fsatrace.exe(8092): error: verbose
argv[0]=cabal
argv[1]=--version
cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library
C:\Neil\neil>fsatrace rwqmvv - -- cabal configure
fsatrace.exe(7668): error: verbose
argv[0]=cabal
argv[1]=configure
cabal configure
Fatal: win/utf8.c:9: l || !sl, err: 7a
fsatrace.exe(7668): error: command failed with code 777
argv[0]=cabal
argv[1]=configure
C:\Neil\neil>fsatrace rwqmv - -- cmd /c cabal build
fsatrace.exe(1704): error: verbose
argv[0]=cmd
argv[1]=/c
argv[2]=cabal
argv[3]=build
cmd /c cabal build
Building neil-0.10...
Preprocessing executable 'neil' for neil-0.10...
r|C:\Windows\Globalization\Sorting\SortDefault.nls
So:
cabal --version
gives different results whether I run it directly or via cmd. Any idea why that might be?cabal configure
fails in your utf8 stuff.- If I do the build, it claims to only read one file, which must be inaccurate, since it does a dependency check.
The neil
directory is a checked out copy of https://github.com/ndmitchell/neil, but I have no reason to think that is particularly relevant.
from fsatrace.
What does this yield?
where cabal
fsatrace q - -- where cabal
As for invoking cabal via cmd, you probably want
fsatrace q - -- cmd /c "cabal build"
(Note the quotes)
I think I fixed the utf8 error.
from fsatrace.
C:\Neil>where cabal
C:\ghc\minghc-7.10.2-i386\bin\cabal.exe
C:\bin\cabal.exe
C:\Program Files (x86)\MinGHC-7.8.3\bin\cabal.exe
C:\Neil>fsatrace q - -- where cabal
where cabal
C:\ghc\minghc-7.10.2-i386\bin\cabal.exe
C:\bin\cabal.exe
C:\Program Files (x86)\MinGHC-7.8.3\bin\cabal.exe
I'll do some more digging tonight.
from fsatrace.
Is this one fixed?
from fsatrace.
Seemingly - both now give the same cabal version. Whether that is due to changes in fsatrace or the things on my PATH I don't really know... Sorry I totally forgot about this bug.
from fsatrace.
Good, closing.
from fsatrace.
Related Issues (20)
- sh.exe test fails on Windows
- Doesn't trace execution on Windows HOT 4
- Make a release HOT 1
- Output file even on non-zero exit code HOT 1
- Tracing multiple subprocesses doesn't work on Windows HOT 8
- Can't trace Go code on Linux HOT 2
- Can't trace gcc on Mac HOT 2
- fsatrace isn't recording executable being run as a "read". HOT 6
- Clarify (or clean up) the Windows makefile HOT 1
- Can't spawn a 32bit process from a .bat file HOT 3
- Tracking reads from non-existing files HOT 6
- Corruption of PATH HOT 2
- failures on ubuntu 20.04 HOT 6
- Quantifying fsatrace's coverage HOT 2
- Consider ETW on Windows HOT 3
- Removing a symlink looks like removing its target HOT 8
- segfault in emiting op HOT 8
- Tracing mkdir syscalls
- Basic tracing does not appear to work on macOS Monterey Version 12.5.1 HOT 3
- Fails to compile on GitHub Mac runners (incompatible architecture) HOT 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 fsatrace.