Open theusaf opened 4 years ago
This issue still exists. Is there a fix coming soon?
I don't know if he will update this package soon, as his README says that he stopped using atom. You may want to check out other mcfunction packages, like the original one or mcfunction-lang.
Same problem
I type execute then I get a ton of spam errors on the side...
Why came this error: [Enter steps to reproduce:]
Atom: 1.48.0 x64 Electron: 5.0.13 OS: LAPTOP-PV49KKHA Thrown From: mcfunction-support package 3.6.0
Uncaught TypeError: Cannot read property 'startsWith' of undefined
At C:\Users\Simon\.atom\packages\mcfunction-support\lib\provider.js:292
TypeError: Cannot read property 'startsWith' of undefined
at Object.getCommandOption (/packages/mcfunction-support/lib/provider.js:292:19)
at Object.getSuggestions (/packages/mcfunction-support/lib/provider.js:175:16)
at ~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648842
at Array.forEach (<anonymous>)
at AutocompleteManager.getSuggestionsFromProviders (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648358)
at AutocompleteManager.findSuggestions (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648096)
at AutocompleteManager.requestNewSuggestions (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:656629)
at AutocompleteManager.showOrHideSuggestionListForBufferChanges (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:657720)
at Function.simpleDispatch (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:1201460)
at Emitter.emit (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:1202901)
at TextBuffer.emitDidChangeTextEvent (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:505021)
at TextBuffer.transact (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:493176)
at TextEditor.transact (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:24215)
at ~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:16150
at TextEditor.mergeSelections (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:39484)
at TextEditor.mergeIntersectingSelections (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:39038)
at TextEditor.mutateSelectedText (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:16113)
at TextEditor.insertText (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:15662)
at TextEditor.e.(anonymous function) [as insertText] (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:258561)
at TextEditorComponent.didTextInput (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:94346)
7x -1:38.3.0 core:backspace (input.hidden-input)
-1:33.5.0 core:move-down (input.hidden-input)
-1:32.7.0 autocomplete-plus:confirm (input.hidden-input)
2x -1:21.6.0 core:backspace (input.hidden-input)
7x -1:17 core:move-left (input.hidden-input)
-1:15.5.0 core:move-right (input.hidden-input)
-1:15.1.0 core:move-left (input.hidden-input)
-1:14.7.0 core:backspace (input.hidden-input)
3x -1:14.4.0 core:move-right (input.hidden-input)
3x -1:13.7.0 core:move-left (input.hidden-input)
7x -1:11.5.0 core:move-right (input.hidden-input)
-1:05.9.0 autocomplete-plus:confirm (input.hidden-input)
6x -1:04.6.0 core:backspace (input.hidden-input)
-0:25.6.0 core:move-left (input.hidden-input)
3x -0:25.4.0 core:move-right (input.hidden-input)
-0:20.1.0 autocomplete-plus:confirm (input.hidden-input)
mcfunction-support 3.6.0
I found a fix. Go to your Users\USER.atom\packages folder and delete the package. It still exist in your Users\User\Local\atom\packages folder and I don't know how, but everything works after you deleted the first folder.
[Enter steps to reproduce:]
Atom: 1.40.0 x64 Electron: 3.1.10 OS: Mac OS X 10.13.2 Thrown From: mcfunction-support package 3.6.0
Stack Trace
Uncaught TypeError: Cannot read property 'startsWith' of undefined
Commands
Non-Core Packages
Previously discussed in https://github.com/Czaplicki/mcfunction-support-resources/issues/4. Same problem with res.json.