Giter Site home page Giter Site logo

Observe files queried about fsatrace HOT 13 CLOSED

ndmitchell avatar ndmitchell commented on September 22, 2024
Observe files queried

from fsatrace.

Comments (13)

jacereda avatar jacereda commented on September 22, 2024

This one is trickier, but https://github.com/jacereda/fsatrace/compare/stat seems to work properly on Darwin.

from fsatrace.

jacereda avatar jacereda commented on September 22, 2024

Linux version is even more ugly. I'll attempt Windows tomorrow.

from fsatrace.

jacereda avatar jacereda commented on September 22, 2024

I guess we need a flag to tell what ops you're interested in to reduce parsing cost.

from fsatrace.

ndmitchell avatar ndmitchell commented on September 22, 2024

Agreed, flags would be very useful.

from fsatrace.

jacereda avatar jacereda commented on September 22, 2024

I'm interested in such a tool, in my case stack build takes 2.2 secs.

from fsatrace.

ndmitchell avatar ndmitchell commented on September 22, 2024

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.

jacereda avatar jacereda commented on September 22, 2024

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.

ndmitchell avatar ndmitchell commented on September 22, 2024

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.

jacereda avatar jacereda commented on September 22, 2024

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.

ndmitchell avatar ndmitchell commented on September 22, 2024
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.

jacereda avatar jacereda commented on September 22, 2024

Is this one fixed?

from fsatrace.

ndmitchell avatar ndmitchell commented on September 22, 2024

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.

jacereda avatar jacereda commented on September 22, 2024

Good, closing.

from fsatrace.

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.