react-ace icon indicating copy to clipboard operation
react-ace copied to clipboard

Syntax - Checker - not working

Open hanoj-budime opened this issue 2 years ago • 12 comments

Problem

JSON Syntax Error Highlight - not working Detail the problem here, including any possible solutions.

Sample code to reproduce your issue

// Ace
import AceEditor from "react-ace";
...
<AceEditor/>

References

Progress on: #

"react-ace": "^10.1.0",

Expected Resulte

image

hanoj-budime avatar Sep 28 '22 07:09 hanoj-budime

Can you assign me this issue? I think I can solve this problem.

hmmonotone avatar Oct 20 '22 07:10 hmmonotone

Hi @securingsincity,

Please assign this to @hmmonotone,

hanoj-budime avatar Oct 23 '22 07:10 hanoj-budime

Hey @hmmonotone,

Please make sure reactjs test case approach also.

hanoj-budime avatar Oct 23 '22 07:10 hanoj-budime

Sure @HanojHanu working on it.

hmmonotone avatar Oct 28 '22 07:10 hmmonotone

Any Updates ?

@hmmonotone , @securingsincity

hanoj-budime avatar Nov 08 '22 10:11 hanoj-budime

So what I observed is, for the linting to happen, we have to import { IAceOptions } from 'react-ace'.

hmmonotone avatar Nov 09 '22 05:11 hmmonotone

So what I observed is, for the linting to happen, we have to import { IAceOptions } from 'react-ace'.

@hmmonotone, can you provide me code snippet

// imports
import AceEditor, { IAceOptions }  from "react-ace"; // this way ?


// component 
return ( ... )

hanoj-budime avatar Nov 09 '22 11:11 hanoj-budime

@hmmonotone ?

hanoj-budime avatar Dec 10 '22 08:12 hanoj-budime

Anyone can help me?

Ace editor i what to use in Reactjs & Jest Test case too..

hanoj-budime avatar Dec 10 '22 08:12 hanoj-budime

@hanoj-budime find any solution ?

pranavmappoli avatar May 27 '24 20:05 pranavmappoli

@pranavmappoli use https://github.com/mkslanc/ace-linters for syntax checking

nightwing avatar May 27 '24 21:05 nightwing

@hanoj-budime find any solution ?

No

hanoj-budime avatar May 28 '24 03:05 hanoj-budime