Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter is not working #1738

Open
ghost opened this issue Jul 27, 2021 · 7 comments
Open

Linter is not working #1738

ghost opened this issue Jul 27, 2021 · 7 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2021

I have an HTML code but linter-tidy is never showing an error or a warning. I tried as well linter-latex with a .tex file and it is the same there. So I assume that the problem is with the base linter. As I assumed a conflict with other packagers, I tried diesabling all non-relevant packages but the problem persistet.

Later, I tried it with running linter-spell-html while I had the other packages disabled. When launching atom, an error message popped up saying "dictionary request failed". I don't know if that has something to do with it.

I was considering adding atom.exe as a firewall excemption but I was worried if this could cause a security risk.

System:
Windows 10 10.0.19043
HP Envy 17-bw0xxx

@steelbrain
Copy link
Owner

Thank you for reporting this! Can you please share the output of the Linter: Debug command with us? It contains information that is helpful in resolving this

@ghost
Copy link
Author

ghost commented Jul 30, 2021

I typed in the command you told me in the Atom console but the response was:

VM991:1 Uncaught ReferenceError: Debug is not defined
    at <anonymous>:1:9

Must I type it somewhere else?

Here is the general output of the console after I opened the developer tools:

electron/js2c/renderer_init.js:15 (electron) crashReporter.start is deprecated in the renderer process. Call it from the main process instead.
log @ electron/js2c/renderer_init.js:15
C:\Users\Katzi\AppData\Local\atom\app-1.57.0\resources\app.asar\src\text-editor-element.js:357 [Deprecation] document.registerElement is deprecated and will be removed in M80, around February 2020. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
(anonymous) @ C:\Users\Katzi\AppData\Local\atom\app-1.57.0\resources\app.asar\src\text-editor-element.js:357
index.html:1 A cookie associated with a cross-site resource at https://github.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/focus-trap.js.map: 
2DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/index.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/performance-now.js.map: 
2DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/index.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/underscore-umd.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/main.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/ansi_to_html.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/Katzi/AppData/Local/atom/app-1.58.0/resources/app.asar/static/SimpleTable.css.map: 

@steelbrain
Copy link
Owner

I think you may have pasted it in the wrong console, apologies for the confusion in terminology. Please execute that command in the Command Palette in Atom and share the results

@ghost
Copy link
Author

ghost commented Aug 2, 2021

Okay, this is the output:

Platform: win32
Atom Version: 1.58.0
Linter Version: 3.4.0
Opened file is ignored: No
Matching Linter Providers: 
Disabled Linter Providers: 
Standard Linter Providers: 
Indie Linter Providers: 
UI Providers: 
  - Linter
Ignore Glob: **/*.min.{js,css}
VCS Ignored Paths are excluded: true
Current File Scopes: 
  - *
  - text.html.basic
  - meta.tag.block.h3.html
  - punctuation.definition.tag.begin.html

@steelbrain
Copy link
Owner

As you can see from the output, none of the linter providers are registering.

It's possible that the linter providers you are using are unmaintained, and still using the deprecated years and years ago v1 API. Please ask the relevant providers to upgrade their API usage.

Thank you for reaching out!

@aliarif123
Copy link

I am writing HTML code, but linter is not showing errors in code.

@aliarif123
Copy link

I am facing error while writing code in atom editor. (Package : Linter ) is not working and not showing errors of my code. I tried multiple times by uninstalling and installing this package. still facing same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants