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

Error not recognised in vscode #451

Open
AprildreamMI opened this issue Apr 4, 2023 · 3 comments
Open

Error not recognised in vscode #451

AprildreamMI opened this issue Apr 4, 2023 · 3 comments
Labels
status: needs reproducible example triage needs reproducible demo or repo

Comments

@AprildreamMI
Copy link

What steps are needed to reproduce the bug?

  1. npm init stylelint
  2. Create layout.css file
.text * { top: calc(1em+ 2em);}

a{}

h1 {
  background-size: 0,0;
}

What Stylelint configuration is needed to reproduce the bug?

{
  "extends": [
    "stylelint-config-standard"
  ],
  "rules": {
    "value-list-comma-space-after": "always"
  }
}

How did you run Stylelint?

vscode

Which version of Stylelint are you using?

15.4.0

What did you expect to happen?

{
  "name": "stylelint-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "stylelint": "^15.4.0",
    "stylelint-config-standard": "^32.0.0"
  }
}

What actually happened?

Error not recognised in vscode(1.77.0), no red wavy line

Does the bug relate to non-standard syntax?

no

Proposal to fix the bug

No response

@AprildreamMI
Copy link
Author

image
image

@AprildreamMI
Copy link
Author

Found the reason, it's so strange that "stylelint.config": {} cannot exist in vscode's settings file

# settings.json
{
"stylelint.config": {}
}

The presence of this line will disable stylelint, but why this line is generated is completely beyond me

@mattxwang mattxwang transferred this issue from stylelint/stylelint Apr 9, 2023
@mattxwang
Copy link
Member

mattxwang commented Apr 9, 2023

Hi @AprildreamMI, I've transferred this issue to the VSCode extension repository (from the main one).

For what it's worth, I'm not able to reproduce your example from a brand-new VSCode installation (ex download VSCode -> install plugin -> run npm init stylelint -- nothing is produced in the config for me / it works as intended). Is it possible that you've previously changed the setting?

@ota-meshi ota-meshi added the status: needs reproducible example triage needs reproducible demo or repo label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs reproducible example triage needs reproducible demo or repo
Projects
None yet
Development

No branches or pull requests

3 participants