GithubHelp home page GithubHelp logo

Comments (9)

sillydan1 avatar sillydan1 commented on September 14, 2024 1

Terminfo? Wouldn't that give information about terminal?

Correct, I think I meant the 'file' command, or maybe https://en.cppreference.com/w/cpp/filesystem/file_type or similar

from aaltitoad.

sillydan1 avatar sillydan1 commented on September 14, 2024 1

It's in the plugin_system.cpp 😄

from aaltitoad.

kiner-shah avatar kiner-shah commented on September 14, 2024 1

You may keep it at debug level actually, if a plugin is loaded, then a info level log would make sense.

from aaltitoad.

kiner-shah avatar kiner-shah commented on September 14, 2024

Terminfo? Wouldn't that give information about terminal?

from aaltitoad.

kiner-shah avatar kiner-shah commented on September 14, 2024

Which file is this function in?

from aaltitoad.

sillydan1 avatar sillydan1 commented on September 14, 2024

Which file is this function in?

Right, sorry. I was referring to the Linux file command 😄 I'm not sure if it is available on Windows though - and I'm also not sure which library it is part of 🤔

from aaltitoad.

kiner-shah avatar kiner-shah commented on September 14, 2024

I meant, which file is bool is_dynamic_library(const std::string& filename) in?

from aaltitoad.

kiner-shah avatar kiner-shah commented on September 14, 2024

Maybe the check for is_dynamic_library isn't required. If dlopen fails, then it fails; instead of throwing a logic error, better to log a message "couldn't load file as shared/dynamic lib" and continue.

from aaltitoad.

sillydan1 avatar sillydan1 commented on September 14, 2024

So, just remove

if (is_dynamic_library(entry.path().filename())) {
? Yea, that probably works just fine 🤔

I might also downgrade the warning log to an info level, just so you dont get weird warnings about being unable to load non-plugin files.

from aaltitoad.

Related Issues (18)

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.