atom/ide-typescript

TSX syntax not recognized

Closed this issue · 5 comments

Prerequisites

Description

TSX syntax not recognized

Steps to Reproduce

Create a simple react component like this:

import React from 'react';

export interface Props {
  schema: object;
}

export default function JsonSchemaBuilder(props: Props) {
  return <h1>it works!!!!!!!!!!</h1>;
}

Expected behavior:

Should recognize TSX syntax

Actual behavior:

Diagnostics display various syntax errors

Reproduces how often:

All the time

Versions

Atom : 1.38.2
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3

apm 2.1.7
npm 6.2.0
node 8.9.3 x64
atom 1.38.2
python 2.7.15
git 2.22.0.windows.1
visual studio

Additional Information

Turning off tree-sitter fixes the issue

Related to:

Not sure why this issue cropped up again, but glad we isolated it to changes with tree-sitter.

Can you please try Atom 1.39 beta?

I just tried the v1.39.0-beta2 and it worked! 🎉

Excellent! @eidellev, please let me know if that isn't the case for you.

The update for TSX was initially included with this release for anyone else wondering:
https://github.com/atom/atom/releases/tag/v1.39.0-beta0