@@ -21,22 +21,7 @@ export function Container () {
21
21
}
22
22
}
23
23
24
- const handleOpenErrorLocation = async ( report : CompilerReport ) => {
25
- if ( report . labels . length > 0 ) {
26
- // const location = noirApp.appState.filePathToId[report.labels[0].file_id]
27
- // const startRange = report.labels[0].range.start
28
-
29
- // if (location) {
30
- // const fullPathLocation = await circuitApp.plugin.resolveReportPath(location)
31
-
32
- // await circuitApp.plugin.call('fileManager', 'open', fullPathLocation)
33
- // // @ts -ignore
34
- // const startPosition: { lineNumber: number; column: number } = await circuitApp.plugin.call('editor', 'getPositionAt', startRange)
35
- // // @ts -ignore
36
- // await circuitApp.plugin.call('editor', 'gotoLine', startPosition.lineNumber - 1, startPosition.column)
37
- // }
38
- }
39
- }
24
+ const handleOpenErrorLocation = async ( report : CompilerReport ) => { }
40
25
41
26
const handleCircuitAutoCompile = ( value : boolean ) => {
42
27
noirApp . dispatch ( { type : 'SET_AUTO_COMPILE' , payload : value } )
@@ -46,48 +31,7 @@ export function Container () {
46
31
noirApp . dispatch ( { type : 'SET_HIDE_WARNINGS' , payload : value } )
47
32
}
48
33
49
- const askGPT = async ( report : CompilerReport ) => {
50
- if ( report . labels . length > 0 ) {
51
- // const location = circuitApp.appState.filePathToId[report.labels[0].file_id]
52
- // const error = report.labels[0].message
53
-
54
- // if (location) {
55
- // const fullPathLocation = await circuitApp.plugin.resolveReportPath(location)
56
- // const content = await circuitApp.plugin.call('fileManager', 'readFile', fullPathLocation)
57
- // const message = `
58
- // circom code: ${content}
59
- // error message: ${error}
60
- // full circom error: ${JSON.stringify(report, null, 2)}
61
- // explain why the error occurred and how to fix it.
62
- // `
63
- // await circuitApp.plugin.call('popupPanel' as any, 'showPopupPanel', true)
64
- // setTimeout(async () => {
65
- // await circuitApp.plugin.call('remixAI' as any, 'chatPipe', 'error_explaining', message)
66
- // }, 500)
67
- // } else {
68
- // const message = `
69
- // error message: ${error}
70
- // full circom error: ${JSON.stringify(report, null, 2)}
71
- // explain why the error occurred and how to fix it.
72
- // `
73
- // await circuitApp.plugin.call('popupPanel' as any, 'showPopupPanel', true)
74
- // setTimeout(async () => {
75
- // await circuitApp.plugin.call('remixAI' as any, 'chatPipe', 'error_explaining', message)
76
- // }, 500)
77
- // }
78
- } else {
79
- // const error = report.message
80
- // const message = `
81
- // error message: ${error}
82
- // full circom error: ${JSON.stringify(report, null, 2)}
83
- // explain why the error occurred and how to fix it.
84
- // `
85
- // await circuitApp.plugin.call('popupPanel' as any, 'showPopupPanel', true)
86
- // setTimeout(async () => {
87
- // await circuitApp.plugin.call('remixAI' as any, 'chatPipe', 'error_explaining', message)
88
- // }, 500)
89
- }
90
- }
34
+ const askGPT = async ( report : CompilerReport ) => { }
91
35
92
36
const handleCompileClick = ( ) => {
93
37
compileNoirCircuit ( noirApp . plugin , noirApp . appState )
0 commit comments