Dmitriy Fuks

Results 50 comments of Dmitriy Fuks

This issue has been interfering with the operation of Vite since version 5.1.0 https://github.com/vitejs/vite/issues/15910#issuecomment-1945471207 There is a workaround, but it seems that this problem should be fixed on the yarn...

I've opened a pull request: https://github.com/fi3ework/vite-plugin-checker/pull/296

I conducted some research. For example, I tried using the 'transformProgram': true option. The plugin code looked something like this: ```ts export default function (program: Program, host: CompilerHost) { const...

Although... I managed to make it work with fork-ts-checker (by turning off the 'build' option in the fork-ts-checker settings). However, the plugin behaves incorrectly. getSemanticDiagnostics is called only once, and...

I figured out with `fork-ts-checker` - it indeed does not invoke `afterProgramEmitAndDiagnostics` or something similar. It directly [uses the 'getSemanticDiagnostics'](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/26a81edca9c7d9abada1e76e76fb978f903f97a3/src/typescript/worker/lib/diagnostics.ts#L41) method without parameters. It returns diagnostics for all files (similar...

> do you know if emitFilesAndReportErrors is ever called? no :( My workaround looks something like this: ```json { "transform": "ts-overrides-plugin/cli", "transformProgram": true, "overrides": [ { "files": ["./src/modern/*.{ts,tsx}"], "compilerOptions": {...

@nonara Thank you for your help! Here is the report: tspc ``` {} Error: originalCreateProgram true at program.getSemanticDiagnostics (/Users/difuks/WebstormProjects/ts-overrides-plugin/dist/cli/index.js:200:19) at emitFilesAndReportErrors (evalmachine.:126163:52) at emitFilesAndReportErrorsAndGetExitStatus (evalmachine.:126194:43) at performCompilation (evalmachine.:189723:24) at executeCommandLineWorker...