{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/5472","labels_url":"https://api.github.com/repos/atom/atom/issues/5472/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/5472/comments","events_url":"https://api.github.com/repos/atom/atom/issues/5472/events","html_url":"https://github.com/atom/atom/issues/5472","id":57107955,"number":5472,"title":"Uncaught Error: target of repeat operator is not specified","user":{"login":"vscosta","id":6862998,"avatar_url":"https://avatars.githubusercontent.com/u/6862998?v=3","gravatar_id":"","url":"https://api.github.com/users/vscosta","html_url":"https://github.com/vscosta","followers_url":"https://api.github.com/users/vscosta/followers","following_url":"https://api.github.com/users/vscosta/following{/other_user}","gists_url":"https://api.github.com/users/vscosta/gists{/gist_id}","starred_url":"https://api.github.com/users/vscosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscosta/subscriptions","organizations_url":"https://api.github.com/users/vscosta/orgs","repos_url":"https://api.github.com/users/vscosta/repos","events_url":"https://api.github.com/users/vscosta/events{/privacy}","received_events_url":"https://api.github.com/users/vscosta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-09T23:40:09Z","updated_at":"2015-02-18T15:43:25Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 0.177.0\r\n**System**: Mac OS X 10.10.2\r\n**Thrown From**: Atom Core\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: target of repeat operator is not specified\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/scanner.js:31\r\n\r\nError: target of repeat operator is not specified\r\n  at Error (native)\r\n  at Scanner.module.exports.Scanner.createScanner (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/scanner.js:31:24)\r\n  at Scanner.module.exports.Scanner.getScanner (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/scanner.js:37:31)\r\n  at Scanner.module.exports.Scanner.findNextMatch (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/scanner.js:56:22)\r\n  at Rule.module.exports.Rule.findNextMatch (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/rule.js:101:28)\r\n  at Rule.module.exports.Rule.getNextTokens (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/rule.js:143:21)\r\n  at Grammar.module.exports.Grammar.tokenizeLine (/Applications/Atom.app/Contents/Resources/app/node_modules/first-mate/lib/grammar.js:125:39)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.buildTokenizedTokenizedLineForRow (/Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:432:28)\r\n  at TokenizedBuffer.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:380:31)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.buildTokenizedLinesForRows (/Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:388:10)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:340:32)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:56:24\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20)\r\n  at BufferPatch.module.exports.BufferPatch.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21)\r\n  at Transaction.module.exports.Transaction.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/transaction.js:60:29)\r\n  at History.module.exports.History.abortTransaction (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:165:24)\r\n  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:122:16)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)\r\n  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1181:26)\r\n  at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:304:22)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)\r\n  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)\r\n  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)\r\n  at [object Object].jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)\r\n  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:70:67)\r\n  at EventEmitter.emit (events.js:119:17)\r\n  at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:21:31)\r\n  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:110:29)\r\n  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app/src/context-menu-manager.js:169:33)\r\n  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:141:33)\r\n  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)\r\n  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)\r\n  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -6:27.3 editor:consolidate-selections (input.hidden-input)\r\n     -6:27.3 core:cancel (input.hidden-input)\r\n     -4:39.4 editor:newline (input.hidden-input)\r\n     -1:49.4 core:backspace (input.hidden-input)\r\n     -1:48.4 core:save (input.hidden-input)\r\n     -0:57.7 application:open (input.hidden-input)\r\n     -0:28.7 core:confirm (input.hidden-input)\r\n  2x -0:24.9 core:paste (input.hidden-input)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"symbols-view\",\r\n      \"linter-clang\"\r\n    ]\r\n  },\r\n  \"editor\": {\r\n    \"showIndentGuide\": true,\r\n    \"tabLength\": 4,\r\n    \"softWrap\": true,\r\n    \"useShadowDOM\": false,\r\n    \"invisibles\": {},\r\n    \"zoomFontWhenCtrlScrolling\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-ctags, v2.5.5\r\natomic-emacs, v0.4.0\r\nautocomplete-bibtex, v0.4.1\r\nautocomplete-clang, v0.6.1\r\ncolor-picker, v1.4.4\r\ndoxygen, v0.0.0\r\nfile-icons, v1.4.8\r\nlanguage-cmake, v0.1.1\r\nlanguage-latex, v0.4.1\r\nlanguage-llvm, v0.1.0\r\nlanguage-prolog, v0.9.0\r\nlatex, v0.18.0\r\nlinter, v0.11.1\r\nlinter-bootlint, v0.0.3\r\nminimap, v4.1.3\r\ntag, v0.2.3\r\nterm2, v0.9.4\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/74885981","html_url":"https://github.com/atom/atom/issues/5472#issuecomment-74885981","issue_url":"https://api.github.com/repos/atom/atom/issues/5472","id":74885981,"user":{"login":"izuzak","id":38924,"avatar_url":"https://avatars.githubusercontent.com/u/38924?v=3","gravatar_id":"","url":"https://api.github.com/users/izuzak","html_url":"https://github.com/izuzak","followers_url":"https://api.github.com/users/izuzak/followers","following_url":"https://api.github.com/users/izuzak/following{/other_user}","gists_url":"https://api.github.com/users/izuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/izuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izuzak/subscriptions","organizations_url":"https://api.github.com/users/izuzak/orgs","repos_url":"https://api.github.com/users/izuzak/repos","events_url":"https://api.github.com/users/izuzak/events{/privacy}","received_events_url":"https://api.github.com/users/izuzak/received_events","type":"User","site_admin":true},"created_at":"2015-02-18T15:43:25Z","updated_at":"2015-02-18T15:43:25Z","body":"@vscosta I'm still having trouble reproducing this. Here's what I did:\r\n\r\n1. installed the language-prolog package: https://atom.io/packages/language-prolog\r\n2. saved the content you provided as ypp.yap\r\n3. opened the file\r\n4. switched the grammar used to parse the file to prolog\r\n\r\nThis did not throw an exception. Are you still able to reproduce the issue by following those steps or can you clarify what you're doing differently to trigger the error?"}}