nx icon indicating copy to clipboard operation
nx copied to clipboard

@nrwl/[email protected] update breaks tslint live inspection in WebStorm

Open spiotr12 opened this issue 8 years ago • 8 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

What is the current behavior?

After update @nrwl/schematics package from 0.8.0 to 0.9.1 I experiencing and issue in WebStrom. when in WebStorm I enable tslint plugin so it shows tslint errors while developing it crushes the IDE (please see this link where I explained what happened see it here logs are included there).

I track down different options and in result it turned out that it is this @nrwl/schematics rules directory that breaks WebStorm. I did not see this problem in 0.8.0 (I've tried to replicate it back on v 0.8.0). I did also reinstall WebStorm and I've used clean installation. TSLing plugin is included by default in this IDE.

Expected behavior:

That I can use TSLint plugin in WebStorm. It is definietly a problem on this package on certain version. I can provide logs

Minimal reproduction of the problem with instructions:

REQUIREMENTS: IDE: WebStorm; TSLing plugin enabled; In settings, enable Use "safe write" option under Appearance & Behavior -> System Settings @nrwl/[email protected]

Generate new ngrx workspace and generate new app just change any file e.g. app.component.ts file and save it multiple times very quickly until you see following error: image

Please notice that there will be two files generated by IDE: image

In my opinion there is something in schematics that crush tslint and therefore the IDE

Version of affected browser(s),operating system(s), npm, node and ngrx:

@nrwl/[email protected] WebStorm 2017.3.5 tslint plugin 173.4674.32

Other information:

I suspect that tslint is locking the file while WebStorm is trying to save it. Thanks for help

spiotr12 avatar Mar 21 '18 07:03 spiotr12

Same issue happens on @nrwl/[email protected] version

spiotr12 avatar Mar 21 '18 08:03 spiotr12

@spiotr12 could you experiment with commenting out different Nx rules to see which one(s) might be the culprit?

jeffbcross avatar Mar 28 '18 01:03 jeffbcross

Sure, I can

spiotr12 avatar Mar 28 '18 10:03 spiotr12

... seems related to #403 and I guess fixed with #404

skydever avatar Apr 07 '18 21:04 skydever

Issue is still present in 1.0.0....I have to remove the nx-enforce-module-boundaries rule to make it work....

jogelin avatar Apr 19 '18 07:04 jogelin

Having the same issues, but it only happens on windows from my experience.

BertDuyck avatar Apr 23 '18 21:04 BertDuyck

Hi!

Closing old issue.

bcabanes avatar Oct 04 '18 19:10 bcabanes

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Mar 25 '23 17:03 github-actions[bot]