Git Product home page Git Product logo

Comments (11)

chemzqm avatar chemzqm commented on May 28, 2024 1

Can't reproduce

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024 1

/home/myUser/Projects/someProject/someSubDir/node_modules/eslint/lib/api.js

It's quite clear that eslint module exists in your project.

from coc-eslint.

edrpls avatar edrpls commented on May 28, 2024 1

Thanks for your response, the weird thing is that running ls on that dir returns nothing. Maybe this is caused by docker. I will try to ditch it for local development, as it is causing other issues. Sorry for the misunderstanding.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

Consider running eslint --debug /home/myUser/Projects/myDir/mySubDir/app/components/builder/QuestionHorizontalNav.jsx from a terminal to obtain a trace about the configuration files used.

from coc-eslint.

edrpls avatar edrpls commented on May 28, 2024

As I mentioned in the ticket originally, this command produces no errors, and everything runs fine from the terminal, the issue only occurs within neovim, running coc-eslint, please reopen the ticket.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

if you have local eslint, install local plugins as well

from coc-eslint.

edrpls avatar edrpls commented on May 28, 2024

What is the case for setting a eslint.nodePath configuration if installing the local modules is required?

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

[Info - 2:49:19 PM] ESLint library loaded from: /home/myUser/Projects/someProject/someSubDir/node_modules/eslint/lib/api.js

from coc-eslint.

edrpls avatar edrpls commented on May 28, 2024

Yes, please read again my ticket, I mentioned that coc-eslint is trying to read the local modules instead of reading the globally installed modules set in coc-settings.json. I did look into all the warnings, I only opened this issue because the behavior from coc-eslint is inconsistent with the documentation, especifically with eslint.nodePath.

from coc-eslint.

chemzqm avatar chemzqm commented on May 28, 2024

eslint.nodePath is fallback global module directory, it use local eslint module when possible, so it's expected.

use this setting if an installed ESLint package can't be detected.

Can you understand what can't be detected means?

from coc-eslint.

edrpls avatar edrpls commented on May 28, 2024

No need to attack, I do understand what can't be detected means, and to be honest I think there is some miscommunication or something is getting lost in translation here since I think none of us is a native speaker, I believe we both are making the same point, the modules don't exist locally, this is a limitation of my setup that I cannot change, but what I can do is install modules globally.

One would precisely think that

use this setting if an installed ESLint package can't be detected.

means setting eslint.nodePath is useful in my cases where local dependencies are not found, reason why I added this configuration.

I didn't mean to ruffle any feathers, I thought my original post included enough information to help debug this, as I have looked all the other tickets that even closely resemble mine and attempted all their solutions. I think most of what I wrote was ignored, and that's fine, OSS comes with no guarantees after all, but I do think it could've helped more people in the future, instead, pretty much everything I wrote was disregarded without a second thought.

Anyway, I appreciate the time you took and the software you've built.

from coc-eslint.

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.