-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Segmentation fault (core dumped) #6898
Comments
same issue happens when I updated to the latest version of 15.6.3. |
@rcerljenko Thanks for the report. I doubt this is a problem of Cosmiconfig:
Can you confirm a workaround to downgrade Cosmiconfig to 8.1.3? |
Downgrading to cosmiconfig 8.1.3 did solve the issue for me. |
Me too. |
I added this in my (I use "overrides": {
"stylelint": {
"cosmiconfig": "8.1.3"
}
}, |
I can confirmed lock "cosmiconfig": "8.1.3" works |
Confirmed that: "pnpm": {
"overrides": {
"cosmiconfig": "8.1.3"
}
}, fixes the issue |
Hi, For some reason, within I have tried running the full prettier test suite, no issues with that... I'm not sure what's different here. |
This seems relevant : https://github.com/stylelint/stylelint/blob/main/bin/stylelint.js#L6 If I remove that, the issue goes away. This seems to match some of the keywords above : zertosh/v8-compile-cache#30 |
Oh, yes |
It is an old problem zertosh/v8-compile-cache#30 |
There is no good solution, because |
This still fails. Is it possible that |
Yeah, there is nodejs/node#35889 and nodejs/node#35889 (comment), ESM is still not stable as we want 😞 |
Well, uh, that makes sense. |
Given that the issue doesn't seem trivial to resolve I think it might be best to first help those users who are affected by this. @d-fischer Would you consider doing a rollback of the changes in If that is not possible I think we should release a version of Stylelint with When the issues are resolved we can unpin the version and users won't have to take manual actual. @alexander-akait @ybiquitous thoughts? |
@d-fischer I'll tell you a secret - |
yeah, it is the best solution right now - pin it and open an issue (or rename this) and do a patch release |
Nvm, I misunderstood. |
Switching from |
So how likely do you think it is that people will invoke The new ESM loader of cosmiconfig is pretty much exactly what To be honest, I don't have any clue how to fix this problem without just getting rid of ESM loading again. This is an ecosystem issue. |
Should be fine; as '.js': (path, content) => Promise.resolve(defaultLoadersSync['.js'](path, content)), |
I guess you would still have to remove that weird cache package for that to work. |
No, or at least not intentionally. I am unsure what the behavior was before when people tried to use Is this something that was supported and should be tested? |
Currently, I don't think we should support Lines 115 to 118 in f1ace61
stylelint/docs/user-guide/configure.md Lines 5 to 8 in f1ace61
But, we note that some people may try using |
Yeah, should just work if we remove |
Just infromation - we use this https://github.com/webpack-contrib/postcss-loader/blob/master/src/utils.js#L37 for js/mjs/cjs and everything works for a lot of developers |
Shorty - many tools and bundlers handle |
I agree with removing |
Great thanks, @romainmenke! I've merged #6902. I'll do a patch release today. See also #6903. |
https://github.com/stylelint/stylelint/releases/tag/15.7.0 is released! 🎉 |
I've opened follow-up issues: So, I'm closing this issue since it's no longer needed. Feel free to comment if you still have any concerns. Thank you so much for helping us resolve this problem! |
…3118) - update electron to v25 - added `overrides:` section to `package.json` to fix stylelint/stylelint#6898 (must be removed when fixed upstream, fixing the version to `v15.6.2` did not fix the problem) - update other deps
This reverts commit 0fbc30b. References: - stylelint/stylelint#6898 - stylelint/stylelint#6898 (comment)
* chore: migrate * feat: migrate pnpmOptions to pnpm-config file * feat: enabled some extra experiment options * chore: update repo-state * fix(rush-api-documenter): v1 didn't generate _docs on correct location * chore: reorder vscode directory alphabetical * perf(deps): upgrade `typedoc-plugin-missing-exports` to v2 to support latest typedoc * feat: re-work typedoc configuration for new version 0.24 * perf(deps): upgrade all minor and patch dependencies * perf(rush-dependencies-updater): upgrade latest by default * feat: add patch for eslint module resolver issue * perf(deps): upgrade major dependencies * feat(web-rig): upgrade heft to v0.51.0 * chore: add debug profile for debugging rush build * perf(node-rig): upgrade heft to v0.51.0 * chore(deps): update lock files and approved packages * perf(web-rig): sync configs from node-rig-package * perf(reset.css): upgrade stylelint config to new version * feat: migrate all package to new heft v0.51.0 * chore: update pnpm lock file * perf(rigs): add heft-lint-plugin patch fixes microsoft/rushstack#4160 * chore(rush): update changefiles * perf: remove patches as it not works * perf: remove cyclic dependencies * chore: update lock file * chore: sync tsconfig from node-rig * perf(rush): `_phase:test` now optional, and remove `_phase:test-types` * chore: remove `_phase:test-types` * perf(rush): add _phase:test output names * fix(rigs): update rush-project config for caching test result * perf(deps): update lock file * perf(reset.css): sass no longer required and fixed type when publish * chore: remove unused file * perf(web-rig): remove webpack5 because license issues * chore: export scss typing at temp/scss-ts/ instead * perf(css): export typings to lib/types instead of temp directory * perf: add heft-lint-plugin patch to fix create() error * chore: remove old patch * fix(reset.css): cannot build on ci machine * chore: override gitleaks confg * chore(temp-fix): force add patch file for heft-lint-plugin package * fix: downgrade cosmiconfig as commented by stylelint/stylelint#6898 * fix(lint): incorrect usage of the term: “Css”, use “CSS” instead * perf(deps): upgrade @typescript-eslint/typescript-estree * chore: upgrade typedoc patch version * fix(stylelint): update stylelint to fixed segmentation fault * fix(heft): upgrade heft-plugins to fix eslint failed * chore(deps): update typescript eslint * chore: remove patch file * feat(git-hooks): add commit message lint and pre-push check * chore: update change files * perf: bring test-types back as on CI might logs warning even it successfully completed * perf: separate testing types to different script for enabled parallel * feat(rush-commitlint): add commitizen to generate git commit with conventional syntax * docs(core): add new everyday task for create git commit * fix(types): add missing build and clean phase as required by rush commandline
* Fix stylelint issue 'Segmentation fault'. Bump stylelint to v15.7.0. stylelint/stylelint#6898 * Bump @enigmatry/stylelint-config to latest. * Delete deploy-stylelint-config.yml
As seen here: stylelint/stylelint#6898 (comment)
What steps are needed to reproduce the bug?
Just install latest version.
What Stylelint configuration is needed to reproduce the bug?
NA
How did you run Stylelint?
Which version of Stylelint or dependencies are you using?
15.6.3
What did you expect to happen?
Run without errors.
What actually happened?
It crashes with this exception:
Segmentation fault (core dumped)
Does the bug relate to non-standard syntax?
No
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: