-
Notifications
You must be signed in to change notification settings - Fork 203
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
Compilation problems #93
Comments
After some restarts compile on save feature seems to be working again as intended, sorry for the inconvenience. |
Two possible causes: Invalid tsconfig file. Causes the worker to crash silently. Needs error reporting to user. Chokidar file watching can perform bad sometimes (historically). No idea why though. |
Hi, Sadly the problem persists :
I'm using an auto-created tsconfig.json file (created by the plugin) and tried each plugin up to 0.60 release. (now on atom 0.181). It's really difficult to work on my project. I also tried to disable then enable the plugin again and it's seems to work afterwards. More a startup problem maybe? Could I give you more information to help on the subject ?
|
@o0Djeen0o thanks for raising this. To help us narrow out the possible causes can you completely disable chokidar. I.e. comment out the entire body of function watchProjectFile(projectFile: tsconfig.TypeScriptProjectFileDetails) {
/*if (watchingProjectFile[projectFile.projectFilePath]) return; // Only watch once
var watcher = chokidar.watch(projectFile.projectFilePath, { ignoreInitial: true, persistent: true });
watchingProjectFile[projectFile.projectFilePath] = watcher;
function clear(datPathYo) {
// TODO : Invalidate only matching caches for projectFilePath
// Right now: Just invalidate *all*
projectByProjectPath = {};
projectByFilePath = {};
}
watcher.on('change', clear)
.on('unlink', clear);*/
} and see if it fixes it. |
see if |
Thank you for your response. I've tried the 0.63.0 release but it appears that problem still occurs. Then I've tried your suggestion and completely disabled chokidar integration. For now my problem seems not reproducible, so it appears that your assumption is correct. I will update my answer if things went wrong again. |
note to self: if it really does boil down to |
I see some stack traces pointing to |
Alright I've moved this to the top of my queue. Will remove the chokidar dependency and make sure not to break this #83 |
pushed in |
hi @basarat, I think this issue persists with 5.4.2. This plugin was working brilliantly until I tried adding gulp build workflow. It started showing thousands of error and still counting up, also blocks and fills some process queue (either atom's or atom-typescript's, not sure). Errors are about duplicate definitions shown at the Here is my tsconfig.json: {
"compilerOptions": {
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "commonjs",
"outDir": "app/dist/js"
},
"fileGlob": "app/src/**/*.ts"
} and package.json: {
"version": "0.0.0",
"description": "",
"main": "Gulpfile.js",
"dependencies": {},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.0.4",
"gulp-tsc": "^1.1.0",
"gulp-uglify": "^1.2.0"
}
} Am I doing something wrong? Is there a recommended way to have typescript compilation in gulp build process? |
@ciuncan if yo can provide the repo I'd be happy to debug it deeply. Also feel free to create a new issue specific to you problem 🌹 |
@basarat Thank you for your concern. This is a bit embarrassing but tried re-adding "gulp-tsc" back (prior to that, I have switched backed to atom-typescript compilation via tsconfig.json) but I couldn't reproduce the problem. So good news is it now works fine. I did a clean atom reinstall including If such a thing occurs again, I'd be coming back with concrete examples so it could be debugged. Thanks again. |
no worries 🌹 |
Hi,
I've switched up from 0.57.0 to the 0.59.0 release.
Node seems to take much CPU resources in the meanwhile.
Could you help to investigate what is going wrong with the new version?
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: