Giter Site home page Giter Site logo

Comments (4)

michaelb avatar michaelb commented on May 13, 2024 1

Thanks for reporting.

I'll have a look asap, but i'm afraid that may be environment-specific. I'll come back soon with more info

from sniprun.

michaelb avatar michaelb commented on May 13, 2024 1

Okay, I could test locally and, sure enough, sniprun works on C and C++ files.

Because you say it works on Python files, I assure you that you don't have to reinstall anything. Though the fact that the checkhealth does this false error is worrisome, it's not impossible that the check might fail when sniprun works correctly, it's geared towards always failing if sniprun doesn't work at all. (aka, the way it checks is not 'clean' and is prone to a race condition and filesystem errors)

Could you provide copies of the file at ~/.cache/sniprun/sniprun.log (or your XDG_CACHE location):

  • after a checkhealth sniprun
  • after you've run a simple snippet of code for c or cpp, such as `printf("hello\n");"

Also, could you check if next to the log there are directories with the name of C an Cpp interpreters, containing the last snippets of code you sent to sniprun + boilerplate wrapped around (if so try to compile the source file). whatever happens should appear in the log file anyway, but I prefer to ask.

Also, did you configure anything through the interpreter_option key?

from sniprun.

fromtheeast710 avatar fromtheeast710 commented on May 13, 2024

After cd into .cache/sniprun, I found a bunch of junk file that I then deleted. After that, sniprun works normally again but checkhealth still show the error so I guess you are right. Yes, there are c_original file in the cache and the deleted file didn't output anything.
Thank you for your help!

from sniprun.

michaelb avatar michaelb commented on May 13, 2024

Okay, I'll keep in mind that this can happen (probably under very specific / crashy situation)

FYI, in the future if that happens again trash stuff (in fact ,the whole .cache/sniprun/)can be cleaned with :SnipReset

from sniprun.

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.