Giter Site home page Giter Site logo

fast-eslint-8's People

Contributors

db-developer avatar

Stargazers

 avatar

Watchers

 avatar

fast-eslint-8's Issues

Failed to load config

[Linter] Error running ESLint Error: Failed to load config "airbnb-base" to extend from.

Displays as atom exception. Must be displayed as linter error.

Changing fast-eslint-8 settings in atoms settings tab does not trigger re-lint of open editors

This issue requires assistance. If you have any hints, do not hesitate to reply. Thanks!

Currently it looks like atoms 'atom.commands.dispatch( view, "linter:lint" );' is ignored.

See How can I call lint() manually for standard linter? #1511
And in fast-eslint-8 code:

fast-eslint-8/lib/exec.js

Lines 130 to 162 in 74d3338

function relintOnTimer( grammar ) {
// Note:
// Both targets (see below: workspace & editor views) can perfectly be run using the developer
// console and both DO trigger a re-linting...
// Nevertheless, when run from within this function, nothing happens *gnarf*.
//
// I tried to add an indirection by using a timer => no success
// I tried to add another indirection by introducing an event emitter in index.js => no success
//
// ... I'm out of ideas, which means: a change in linter settings currently won't trigger a
// linter run for open editors. Editors have to be closed and re-opened or editor content hast
// to be touched (ärks!) to re-lint.
//
// If you have an idea, please comment issue
/*
console.log( "trigger 'runLinter' for workspace" );
const target = atom.views.getView( atom.workspace );
atom.commands.dispatch( target, "linter:lint:true" );
*/
let editors = [];
for ( let editor of atom.workspace.getTextEditors()) {
if ( grammar.includes( editor.getGrammar().scopeName )) {
editors.push( editor );
}
}
editors.forEach(( editor ) => {
let view = atom.views.getView( editor );
console.log( "trigger 'runLinter' for view" );
return atom.commands.dispatch( view, "linter:lint" );
});
}

Activation (after Installation) error at Module.createRequire

  1. Just installed by Atom > Settings > Install (User-friendly method.
  2. Error appear in popup

Atom: 1.51.0 x64
Electron: 5.0.13
OS: Debian GNU/Linux
Thrown From: fast-eslint-8 package 5.1.3

Stack Trace

Failed to activate the fast-eslint-8 package

At Module.createRequire is not a function

TypeError: Module.createRequire is not a function
    at /packages/fast-eslint-8/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2383:26)
    at /packages/fast-eslint-8/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:4297:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at /packages/fast-eslint-8/lib/lint.js:22:19)
    at /packages/fast-eslint-8/lib/lint.js:167:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at /packages/fast-eslint-8/lib/config.js:21:21)
    at /packages/fast-eslint-8/lib/config.js:171:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at /packages/fast-eslint-8/lib/index.js:22:19)
    at /packages/fast-eslint-8/lib/index.js:97:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:14:16)
    at customRequire (/usr/share/atom/resources/app/static/<embedded>:1:695413)
    at Package.requireMainModule (/usr/share/atom/resources/app/static/<embedded>:11:3193818)
    at Package.activateNow (/usr/share/atom/resources/app/static/<embedded>:11:3181802)
    at /usr/share/atom/resources/app/static/<embedded>:11:3181580
    at Package.measure (/usr/share/atom/resources/app/static/<embedded>:11:3179190)
    at /usr/share/atom/resources/app/static/<embedded>:11:3181440
    at new Promise (<anonymous>)
    at Package.activate (/usr/share/atom/resources/app/static/<embedded>:11:3181383)
    at PackageManager.activatePackage (/usr/share/atom/resources/app/static/<embedded>:11:383037)
    at /usr/share/atom/resources/app/static/<embedded>:11:378203
    at Array.forEach (<anonymous>)
    at /usr/share/atom/resources/app/static/<embedded>:11:378187
    at /usr/share/atom/resources/app/static/<embedded>:11:335143
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1190297)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1191738)
    at Config.emitChangeEvent (/usr/share/atom/resources/app/static/<embedded>:11:337631)
    at Config.setRawValue (/usr/share/atom/resources/app/static/<embedded>:11:334871)
    at Config.set (/usr/share/atom/resources/app/static/<embedded>:11:330665)
    at Config.removeAtKeyPath (/usr/share/atom/resources/app/static/<embedded>:11:332688)
    at Package.enable (/usr/share/atom/resources/app/static/<embedded>:11:3178975)
    at PackageManager.enablePackage (/usr/share/atom/resources/app/static/<embedded>:11:375806)
    at HTMLButtonElement.enablementButtonClickHandler (/usr/share/atom/resources/app/static/<embedded>:14:2570600)

Commands

     -1:04.1.0 editor:toggle-line-comments (input.hidden-input)
     -1:00.6.0 core:undo (input.hidden-input)

Non-Core Packages

atom-auto-docks 0.3.2 
atom-clock 0.1.18 
atom-debug-ui 1.0.5 
atom-dedupe-open-files 0.1.0 
atom-ide-ui 0.13.0 
atom-php-lookup 0.1.1 
atom-toolbar 0.1.6 
busy-signal 2.0.1 
dart 1.0.1 
draw-package 0.1.2 
fast-eslint-8 5.1.3 
flatten-json 0.1.5 
ftp-remote-edit 0.18.2 
hey-pane 1.2.0 
ide-json 0.2.1 
ide-php 0.7.18 
intentions 2.0.0 
json-converter 0.2.4 
language-flow-diagram 1.1.2 
language-markdown 0.37.0 
linter 3.4.0 
linter-node-markdownlint 1.2.1 
linter-ui-default 3.0.2 
markdown-fold 0.3.0 
markdown-folding 0.3.1 
markdown-mindmap 0.6.2 
markdown-toc 0.4.2 
no-file-icons 1.0.0 
node-debugger 1.10.1 
path-copy 0.14.0 
php-debug 0.3.5 
php-hover-documentation 0.2.1 
pinned-tabs 2.3.1 
pp-markdown 0.0.2 
pretty-json 2.1.2 
project-manager 3.3.8 
remote-editor 0.2.10 
sequence-diagram 0.0.2 
sort-selected-elements 0.1.0 
split-diff 1.6.1 
tester 1.4.0 
tester-jest 1.2.4 
timetracking-reminder 0.2.2 
tree-view-copy-relative-path 1.2.0 
web-lookup 1.3.1 
xatom-debug-php 0.1.3 

.eslintignore results in Error

TypeError: _eslintEslintrc.IgnorePattern is not a constructor
    at isIgnored (file:///D:/atom/fast-eslint-8/lib/exec.js:211:28)
    at Object.lint (file:///D:/atom/fast-eslint-8/lib/index.js:82:28)
    at C:\Users\dbrenck\.atom\packages\linter\dist\index.js:1:18722
    at new Promise (<anonymous>)
    at Bt.lint (C:\Users\dbrenck\.atom\packages\linter\dist\index.js:1:18693)

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.