Comments (52)
YES!
from graviton-app.
thank you for your fast responses and really look forward for the compatibility 👍
from graviton-app.
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.
from graviton-app.
Looks like we have an hero here!! , let me push that to the source, 1m
from graviton-app.
gosh 41 comments
for a 36 letters long fix :)
thanks alot :)
from graviton-app.
let's goooooooooooooooooooo
thank you @alexbrandonketchum !!
from graviton-app.
Have you tried reinstalling it? And, can you say me your OS? thanks
from graviton-app.
yes i tried older versions,
i'm running windows.
from graviton-app.
Try this:
1.Open start menu
2. Type %appdata%
3.Delete the folder ".graviton"
4.Install the last Graviton version (1.0.1)
from graviton-app.
still no success same error.
from graviton-app.
What version have you downloaded, 32 bits or 64?
from graviton-app.
64 bit
from graviton-app.
i also tried 32 bit with the same issue.
does graviton need any dependecies installation to make it work?.
from graviton-app.
No, it doesn't, it should work fine
from graviton-app.
then i have no clue why my installation throws errors.
from graviton-app.
i hope you could help me solve this issue,
i'm really interested to test this out.
from graviton-app.
Can you trying building from source? See https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/BUILDING.md
from graviton-app.
still the same. same error.
from graviton-app.
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.
from graviton-app.
I don't have such an error, in fact, nobody does.
Check you have the last version....
from graviton-app.
i use latest version.
from graviton-app.
maybe php not supported?
from graviton-app.
It's not actually supported, but opening a php file shouldn't throw any error
from graviton-app.
could support be added?
and its giving so many errors just opening a folder.
from graviton-app.
I will add support, but your problem looks like another thing
from graviton-app.
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)
from graviton-app.
You have tried installing Graviton in two pcs and you get the same error?
from graviton-app.
yes, yes
from graviton-app.
since the last commit the error log is now 50% smaller. also in the first pc now.
from graviton-app.
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
from graviton-app.
i made a video:
https://www.youtube.com/watch?v=R9WA8tCy-eg
this is what happens on both of my pcs
from graviton-app.
The error "file not found..." will be fixed on 1.0.2
from graviton-app.
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! 💯
from graviton-app.
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
from graviton-app.
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)
from graviton-app.
This is so weird... It's definitely a Codemirror thing
from graviton-app.
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
from graviton-app.
ehm i can open an empty file but its as useless as it has with pre coded content.
from graviton-app.
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.
from graviton-app.
I don't have such a bug:
😢
from graviton-app.
are you sure i dont need to install any runtimes that the app needs?
from graviton-app.
I am very sure
from graviton-app.
😭
from graviton-app.
do you have discord or else?
i can screenshare everthing.
from graviton-app.
Alright! git pull origin master , and let us know if it works @ItsPerry , thanks @alexbrandonketchum
from graviton-app.
from graviton-app.
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
from graviton-app.
I am... Fixed! try now
from graviton-app.
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
from graviton-app.
it only happens with PHP?
from graviton-app.
well html is the only one that worked for me.
from graviton-app.
Try now
from graviton-app.
Related Issues (20)
- [Suggestion] Add cargo cache persistence in between CI builds
- [Suggestion] Add cut option to the context menu in the editor HOT 5
- feat(Settings): Settings module for Extensions HOT 1
- feat(Popup): Popup module for Extensions HOT 1
- feat(desktop): Save tracing's logs in a file in production
- feat: Frontend-agnostic themes HOT 1
- feat: Login system for the Server client
- feat(web): Drag tabs
- GPU process isn't usable. Goodbye. HOT 4
- [Suggestion] Apple Silicon (M1, M2) version of graviton HOT 1
- feat(core): Implement a files watcher
- [Suggestion] Focus on terminal HOT 1
- [Suggestion] Auto-save HOT 1
- [Issue] How to change Syntax highlighting HOT 2
- tracking: Extensions support HOT 1
- tracking: Docs
- tracking: Internationalization HOT 2
- why only one folder able to open at the same time?
- Wrap lines
- [Suggestion] Make VS Code plugins work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graviton-app.