Giter Site home page Giter Site logo

Comments (9)

jacob-carlborg avatar jacob-carlborg commented on July 2, 2024

I've update the readme file. What exactly is the problem when you run dstep, no output?

from dstep.

jacob-carlborg avatar jacob-carlborg commented on July 2, 2024

I assume you've compiled this from source. Does the pre-compiled binary work?

from dstep.

repeatedly avatar repeatedly commented on July 2, 2024

@jacob-carlborg
Yes, the problem is no output.
The content of generated .d file is only 'extern(C):'.

I didn't know the pre-compiled binary.
I tried the pre-compiled binary for Mac, it works fine!
This is a big help :)

from dstep.

jacob-carlborg avatar jacob-carlborg commented on July 2, 2024

That's good to hear. But I'm still interested in figuring out way it didn't work when you compiled from source. Did you try any of the other test files?

from dstep.

repeatedly avatar repeatedly commented on July 2, 2024

Yes, other test_files and C header too.

I will try updated README process later.

from dstep.

lomereiter avatar lomereiter commented on July 2, 2024

I'm stuck with the same problem, although I swear I had dstep working successfully on the same codebase just a couple of years ago (many thanks for that!)

I'm using Linux and have tried all sorts of clang/dstep version combinations to no avail.
To reproduce, clone https://github.com/lomereiter/htslib, install libclang, and run

cd htslib/
CLANG_VERSION=3.8
DSTEP_BIN=../../dstep/bin/dstep # tweak dstep/clang paths as needed
export LD_LIBRARY_PATH=/usr/lib/llvm-${CLANG_VERSION}/lib
${DSTEP_BIN} --comments=false -I. -Icram/ -Ihtslib/ \
  -I/usr/include/clang/${CLANG_VERSION}/include/ cram/cram.h -o htslib.d; ls -l htslib.d

I would hope for some kind of an error message at least, but all I get is extern(C): as the output.

from dstep.

ciechowoj avatar ciechowoj commented on July 2, 2024

Yeah, I reproduced the issue, so it isn't only your setup.

from dstep.

ciechowoj avatar ciechowoj commented on July 2, 2024

Ok, so the problem is "cram/cram.h" contains only include files, and no declarations and dstep translates only the content of the exact input file and nothing else. In your case you need to fuse those files into single file of execute dstep for every file separately (I think there is option to execute dstep at the whole directory at once, or maybe not)...

from dstep.

jacob-carlborg avatar jacob-carlborg commented on July 2, 2024

Ok, so the problem is "cram/cram.h" contains only include files, and no declarations and dstep translates only the content of the exact input file and nothing else

Yes, that makes sense.

In your case you need to fuse those files into single file of execute dstep for every file separately (I think there is option to execute dstep at the whole directory at once, or maybe not)...

It's possible to run DStep on a whole directory (with master). I would recommend doing that instead of merging the header files. Then manually create a single file with public imports, if necessary.

from dstep.

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.