Skip to content

Compiler prints duplicate lines in output window #7093

Description

@NoelAbrahams

Hi,

Version: VS 2015/TS 1.8

This is an obvious bug so may have been reported earlier, but I couldn't find anything.

Add a new TS project in Visual Studio and add the following (erroneous) code:

class Greeter {

    constructor(element: HTMLElement) {
        this.foo = 'foo';
    }
}

Compiling this results in the following build output:

1>------ Rebuild All started: Project: TypeScriptHTMLApp1, Configuration: Debug Any CPU ------
1>C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
1>C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

The error is printed in duplicate. This can be a significant nuisance in a solution with a large number of projects.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions