Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

TSX syntax not recognized #155

Closed
1 task done
eidellev opened this issue Jun 18, 2019 · 5 comments
Closed
1 task done

TSX syntax not recognized #155

eidellev opened this issue Jun 18, 2019 · 5 comments

Comments

@eidellev
Copy link

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

@dfrankland
Copy link

Related to:

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

@winstliu
Copy link
Contributor

Can you please try Atom 1.39 beta?

@dfrankland
Copy link

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

@winstliu
Copy link
Contributor

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

@dfrankland
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants