Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all actions causes to throw errors #20

Closed
legendarywaffle opened this issue Jun 12, 2019 · 52 comments
Closed

all actions causes to throw errors #20

legendarywaffle opened this issue Jun 12, 2019 · 52 comments
Assignees
Labels
bug Something isn't working

Comments

@legendarywaffle
Copy link

everything i try to change in the settings or open files throws a error.

Error
An error has appeared! Check the console on developer tools for more info.

sql.svg:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
php.svg:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
    at Object.dispatch [as token] (php.js:187)
    at readToken (codemirror.js:1153)
    at runMode (codemirror.js:1210)
    at highlightLine (codemirror.js:1056)
    at getLineStyles (codemirror.js:1100)
    at buildLineContent (codemirror.js:1733)
    at getLineContent (codemirror.js:2123)
    at buildLineElement (codemirror.js:2204)
    at patchDisplay (codemirror.js:4192)
    at updateDisplayIfNeeded (codemirror.js:4101)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
    at Object.dispatch [as token] (php.js:187)
    at readToken (codemirror.js:1153)
    at runMode (codemirror.js:1210)
    at highlightLine (codemirror.js:1056)
    at codemirror.js:3950
    at LeafChunk.iterN (codemirror.js:5596)
    at Doc.iterN (codemirror.js:5708)
    at Doc.iter (codemirror.js:6106)
    at highlightWorker (codemirror.js:3946)
    at codemirror.js:148
plugins.js:31 Uncaught ReferenceError: content is not defined
    at openPlugins (plugins.js:31)
    at HTMLButtonElement.onclick (index.html:109)
API.js:348 <div id=​"g_explorer" opened=​"false">​…​</div>​
API.js:348 <div id=​"g_explorer" opened=​"false">​…​</div>​
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
    at Object.dispatch [as token] (php.js:187)
    at readToken (codemirror.js:1153)
    at runMode (codemirror.js:1210)
    at highlightLine (codemirror.js:1056)
    at getLineStyles (codemirror.js:1100)
    at buildLineContent (codemirror.js:1733)
    at updateExternalMeasurement (codemirror.js:2345)
    at prepareMeasureForLine (codemirror.js:2381)
    at coordsCharInner (codemirror.js:2730)
    at coordsChar (codemirror.js:2698)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
    at Object.dispatch [as token] (php.js:187)
    at readToken (codemirror.js:1153)
    at processLine (codemirror.js:1138)
    at codemirror.js:1120
    at LeafChunk.iterN (codemirror.js:5596)
    at Doc.iterN (codemirror.js:5708)
    at Doc.iter (codemirror.js:6106)
    at getContextBefore (codemirror.js:1119)
    at getLineStyles (codemirror.js:1098)
    at buildLineContent (codemirror.js:1733)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
    at Object.dispatch [as token] (php.js:187)
    at readToken (codemirror.js:1153)
    at runMode (codemirror.js:1210)
    at highlightLine (codemirror.js:1056)
    at getLineStyles (codemirror.js:1100)
    at buildLineContent (codemirror.js:1733)
    at getLineContent (codemirror.js:2123)
    at buildLineElement (codemirror.js:2204)
    at patchDisplay (codemirror.js:4192)
    at updateDisplayIfNeeded (codemirror.js:4101)
dispatch @ php.js:187
readToken @ codemirror.js:1153
runMode @ codemirror.js:1210
highlightLine @ codemirror.js:1056
getLineStyles @ codemirror.js:1100
buildLineContent @ codemirror.js:1733
getLineContent @ codemirror.js:2123
buildLineElement @ codemirror.js:2204
patchDisplay @ codemirror.js:4192
updateDisplayIfNeeded @ codemirror.js:4101
endOperation_W1 @ codemirror.js:3809
endOperations @ codemirror.js:3786
(anonymous) @ codemirror.js:3775
finishOperation @ codemirror.js:2035
endOperation @ codemirror.js:3772
runInOp @ codemirror.js:3901
operation @ codemirror.js:8594
forEachCodeMirror @ codemirror.js:6613
(anonymous) @ codemirror.js:6630
setTimeout (async)
(anonymous) @ codemirror.js:6628
@marc2332
Copy link
Member

Have you tried reinstalling it? And, can you say me your OS? thanks

@marc2332 marc2332 added the bug Something isn't working label Jun 12, 2019
@legendarywaffle
Copy link
Author

yes i tried older versions,

i'm running windows.

@marc2332
Copy link
Member

Try this:
1.Open start menu
2. Type %appdata%
3.Delete the folder ".graviton"
4.Install the last Graviton version (1.0.1)

@marc2332 marc2332 self-assigned this Jun 12, 2019
@legendarywaffle
Copy link
Author

still no success same error.

@marc2332
Copy link
Member

What version have you downloaded, 32 bits or 64?

@legendarywaffle
Copy link
Author

64 bit

@legendarywaffle
Copy link
Author

i also tried 32 bit with the same issue.

does graviton need any dependecies installation to make it work?.

@marc2332
Copy link
Member

No, it doesn't, it should work fine

@legendarywaffle
Copy link
Author

then i have no clue why my installation throws errors.

@legendarywaffle
Copy link
Author

i hope you could help me solve this issue,

i'm really interested to test this out.

@marc2332
Copy link
Member

Can you trying building from source? See https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/BUILDING.md

@legendarywaffle
Copy link
Author

legendarywaffle commented Jun 12, 2019

still the same. same error.

@legendarywaffle
Copy link
Author

legendarywaffle commented Jun 12, 2019

the building made me open html files but still with php files its a bit no.

i'm trying to open php files. that makes the editor to completely break.

@marc2332
Copy link
Member

I don't have such an error, in fact, nobody does.
Check you have the last version....

@legendarywaffle
Copy link
Author

i use latest version.

@legendarywaffle
Copy link
Author

maybe php not supported?

@marc2332
Copy link
Member

It's not actually supported, but opening a php file shouldn't throw any error

@legendarywaffle
Copy link
Author

could support be added?

and its giving so many errors just opening a folder.

@legendarywaffle legendarywaffle changed the title all actions causes to throw errors all actions causes to trow errors Jun 12, 2019
@legendarywaffle legendarywaffle changed the title all actions causes to trow errors all actions causes to throw errors Jun 12, 2019
@marc2332
Copy link
Member

marc2332 commented Jun 12, 2019

I will add support, but your problem looks like another thing

@legendarywaffle
Copy link
Author

i tried it on my main pc:
this seems more that there is no php support.

Failed to load resource: net::ERR_FILE_NOT_FOUND
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1153)
at runMode (codemirror.js:1210)
at highlightLine (codemirror.js:1056)
at getLineStyles (codemirror.js:1100)
at buildLineContent (codemirror.js:1733)
at getLineContent (codemirror.js:2123)
at buildLineElement (codemirror.js:2204)
at patchDisplay (codemirror.js:4192)
at updateDisplayIfNeeded (codemirror.js:4101)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1153)
at runMode (codemirror.js:1210)
at highlightLine (codemirror.js:1056)
at codemirror.js:3950
at LeafChunk.iterN (codemirror.js:5596)
at Doc.iterN (codemirror.js:5708)
at Doc.iter (codemirror.js:6106)
at highlightWorker (codemirror.js:3946)
at codemirror.js:148
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1153)
at runMode (codemirror.js:1210)
at highlightLine (codemirror.js:1056)
at getLineStyles (codemirror.js:1100)
at buildLineContent (codemirror.js:1733)
at getLineContent (codemirror.js:2123)
at buildLineElement (codemirror.js:2204)
at patchDisplay (codemirror.js:4192)
at updateDisplayIfNeeded (codemirror.js:4101)

@marc2332
Copy link
Member

You have tried installing Graviton in two pcs and you get the same error?

@legendarywaffle
Copy link
Author

yes, yes

@legendarywaffle
Copy link
Author

since the last commit the error log is now 50% smaller. also in the first pc now.

@marc2332
Copy link
Member

The only errorI get is the file not found, which refers to the icon on the explorer, which doesn't exist. But there is nothing more

@legendarywaffle
Copy link
Author

i made a video:
https://www.youtube.com/watch?v=R9WA8tCy-eg

this is what happens on both of my pcs

@marc2332
Copy link
Member

The error "file not found..." will be fixed on 1.0.2

@marc2332
Copy link
Member

Okay, I think the bug is about CodeMirror, I am sure that if you open an empty PHP file it will open without error. I will take a look, thank you! 💯

@legendarywaffle
Copy link
Author

thank you for your fast responses and really look forward for the compatibility 👍

@marc2332
Copy link
Member

Hello!
Can you please download the source, and test it by your self? I think it must work this time

See this : https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/BUILDING.md

@legendarywaffle
Copy link
Author

Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at buildLineElement (codemirror.js:2200)
at patchDisplay (codemirror.js:4186)
at updateDisplayIfNeeded (codemirror.js:4095)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at codemirror.js:3946
at LeafChunk.iterN (codemirror.js:5579)
at Doc.iterN (codemirror.js:5681)
at Doc.iter (codemirror.js:6067)
at highlightWorker (codemirror.js:3942)
at codemirror.js:148
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at buildLineElement (codemirror.js:2200)
at patchDisplay (codemirror.js:4186)
at updateDisplayIfNeeded (codemirror.js:4095)

@marc2332
Copy link
Member

This is so weird... It's definitely a Codemirror thing

@marc2332
Copy link
Member

Can you create a new file, and then paste the code slowly so you can see when the error throws? Or, can you share the code, so I can test it by my self please?

Thanks

@legendarywaffle
Copy link
Author

ehm i can open an empty file but its as useless as it has with pre coded content.

@legendarywaffle
Copy link
Author

Uncaught TypeError: Cannot read property 'prev' of undefined at Object.dispatch [as token] (php.js:187) at readToken (codemirror.js:1149) at runMode (codemirror.js:1206) at highlightLine (codemirror.js:1052) at getLineStyles (codemirror.js:1096) at buildLineContent (codemirror.js:1729) at getLineContent (codemirror.js:2119) at buildLineElement (codemirror.js:2200) at patchDisplay (codemirror.js:4186) at updateDisplayIfNeeded (codemirror.js:4095) php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined at Object.dispatch [as token] (php.js:187) at readToken (codemirror.js:1149) at runMode (codemirror.js:1206) at highlightLine (codemirror.js:1052) at codemirror.js:3946 at LeafChunk.iterN (codemirror.js:5579) at Doc.iterN (codemirror.js:5681) at Doc.iter (codemirror.js:6067) at highlightWorker (codemirror.js:3942) at codemirror.js:148 php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined at Object.dispatch [as token] (php.js:187) at readToken (codemirror.js:1149) at runMode (codemirror.js:1206) at highlightLine (codemirror.js:1052) at getLineStyles (codemirror.js:1096) at buildLineContent (codemirror.js:1729) at getLineContent (codemirror.js:2119) at buildLineElement (codemirror.js:2200) at patchDisplay (codemirror.js:4186) at updateDisplayIfNeeded (codemirror.js:4095)

this is the error. no matter how i do it.

@marc2332
Copy link
Member

I don't have such a bug:

imagen

😢

@legendarywaffle
Copy link
Author

are you sure i dont need to install any runtimes that the app needs?

@marc2332
Copy link
Member

I am very sure

@legendarywaffle
Copy link
Author

😭

@legendarywaffle
Copy link
Author

do you have discord or else?
i can screenshare everthing.

@alexketchum
Copy link

This is a fairly old Codemirror issue: codemirror/codemirror5#4202

Adding <script src="src/mode/clike/clike.js"></script> to index.html fixed it for me.

@marc2332
Copy link
Member

Looks like we have an hero here!! , let me push that to the source, 1m

@legendarywaffle
Copy link
Author

gosh 41 comments
for a 36 letters long fix :)

thanks alot :)

@marc2332
Copy link
Member

Alright! git pull origin master , and let us know if it works @ItsPerry , thanks @alexbrandonketchum

@legendarywaffle
Copy link
Author

afbeelding

@alexketchum
Copy link

alexketchum commented Jun 12, 2019

I just did a pull, there's a spelling error:
<script src="src/mode/clicke/clicke.js"></script>

it should be clike instead of clicke

@marc2332
Copy link
Member

I am... Fixed! try now

@legendarywaffle
Copy link
Author

ehm the list got bigger.

Failed to load resource: net::ERR_FILE_NOT_FOUND
2php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at patchDisplay (codemirror.js:4194)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at codemirror.js:3946
at LeafChunk.iterN (codemirror.js:5579)
at Doc.iterN (codemirror.js:5681)
at Doc.iter (codemirror.js:6067)
at highlightWorker (codemirror.js:3942)
at codemirror.js:148
2php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at patchDisplay (codemirror.js:4194)
2php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at prepareMeasureForLine (codemirror.js:2373)
2php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at patchDisplay (codemirror.js:4194)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at codemirror.js:3946
at LeafChunk.iterN (codemirror.js:5579)
at Doc.iterN (codemirror.js:5681)
at Doc.iter (codemirror.js:6067)
at highlightWorker (codemirror.js:3942)
at codemirror.js:148
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at prepareMeasureForLine (codemirror.js:2373)
php.js:187 Uncaught TypeError: Cannot read property 'prev' of undefined
at Object.dispatch [as token] (php.js:187)
at readToken (codemirror.js:1149)
at runMode (codemirror.js:1206)
at highlightLine (codemirror.js:1052)
at getLineStyles (codemirror.js:1096)
at buildLineContent (codemirror.js:1729)
at getLineContent (codemirror.js:2119)
at updateLineText (codemirror.js:2127)
at updateLineForChanges (codemirror.js:2076)
at patchDisplay (codemirror.js:4194)
dispatch @ php.js:187
readToken @ codemirror.js:1149
runMode @ codemirror.js:1206
highlightLine @ codemirror.js:1052
getLineStyles @ codemirror.js:1096
buildLineContent @ codemirror.js:1729
getLineContent @ codemirror.js:2119
updateLineText @ codemirror.js:2127
updateLineForChanges @ codemirror.js:2076
patchDisplay @ codemirror.js:4194
updateDisplayIfNeeded @ codemirror.js:4095
endOperation_W1 @ codemirror.js:3805
endOperations @ codemirror.js:3782
(anonymous) @ codemirror.js:3771
finishOperation @ codemirror.js:2031
endOperation @ codemirror.js:3768
runInOp @ codemirror.js:3897
operation @ codemirror.js:8535
forEachCodeMirror @ codemirror.js:6564
(anonymous) @ codemirror.js:6581
setTimeout (async)
(anonymous) @ codemirror.js:6579

@marc2332
Copy link
Member

it only happens with PHP?

@legendarywaffle
Copy link
Author

well html is the only one that worked for me.

@marc2332
Copy link
Member

Try now

@legendarywaffle
Copy link
Author

afbeelding

YES!

@marc2332
Copy link
Member

marc2332 commented Jun 12, 2019

let's goooooooooooooooooooo

thank you @alexbrandonketchum !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants