{"action":"created","issue":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/337","labels_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/337/comments","events_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/337/events","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/337","id":104913981,"number":337,"title":"Crash when upgrading to FSharp.Formatting 1.4.0.4","user":{"login":"eiriktsarpalis","id":2813363,"avatar_url":"https://avatars.githubusercontent.com/u/2813363?v=3","gravatar_id":"","url":"https://api.github.com/users/eiriktsarpalis","html_url":"https://github.com/eiriktsarpalis","followers_url":"https://api.github.com/users/eiriktsarpalis/followers","following_url":"https://api.github.com/users/eiriktsarpalis/following{/other_user}","gists_url":"https://api.github.com/users/eiriktsarpalis/gists{/gist_id}","starred_url":"https://api.github.com/users/eiriktsarpalis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiriktsarpalis/subscriptions","organizations_url":"https://api.github.com/users/eiriktsarpalis/orgs","repos_url":"https://api.github.com/users/eiriktsarpalis/repos","events_url":"https://api.github.com/users/eiriktsarpalis/events{/privacy}","received_events_url":"https://api.github.com/users/eiriktsarpalis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-04T15:33:02Z","updated_at":"2015-10-13T17:19:55Z","closed_at":"2015-09-12T01:57:42Z","body":"I came across the following crash when upgrading FSharp.Formatting in the [mbrace-docs](https://github.com/mbraceproject/mbrace-docs) repository:\r\n```\r\nGenerating 'c:\\Users\\eirik\\Development\\mbrace\\mbrace-docs\\docs\\tools\\..\\content/azure-tutorial.html'\r\nSystem.MethodAccessException: Attempt by method 'FSharpVSPowerTools.Lexer.|GenericTypeParameterPrefix|StaticallyResolvedTypeParameterPrefix|Other|@92(System.String, Microsoft.FSharp.Compiler.SourceCodeServices.FSharpTokenInfo)' to access method 'Microsoft.FSharp.Compiler.Parser.tokenTagToTokenId(Int32)' failed.\r\n   at FSharp.CodeFormat.CodeFormatAgent.ParseSource(String file, String source, FSharpOption`1 options, FSharpOption`1 defines) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.CodeFormat\\CodeFormatAgent.fs:line 390\r\n   at FSharp.Literate.ParseScript.parseScriptFile(String file, String content, CompilerContext ctx) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\ParseScript.fs:line 198\r\n   at FSharp.Literate.Literate.ParseScriptFile[d](String path, FSharpOption`1 formatAgent, FSharpOption`1 compilerOptions, FSharpOption`1 definedSymbols, FSharpOption`1 references, FSharpOption`1 fsiEvaluator) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 67\r\n   at FSharp.Literate.Literate.ProcessScriptFile(String input, FSharpOption`1 templateFile, FSharpOption`1 output, FSharpOption`1 format, FSharpOption`1 formatAgent, FSharpOption`1 prefix, FSharpOption`1 compilerOptions, FSharpOption`1 lineNumbers, FSharpOption`1 references, FSharpOption`1 fsiEvaluator, FSharpOption`1 replacements, FSharpOption`1 includeSource, FSharpOption`1 layoutRoots, FSharpOption`1 generateAnchors, FSharpOption`1 assemblyReferences, FSharpOption`1 customizeDocument) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 167\r\n   at <StartupCode$FSharp-Literate>.$Main.processScriptFile@184.Invoke(String file, String output) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 184\r\n   at <StartupCode$FSharp-Literate>.$Main.processDirectory@199(FSharpOption`1 format, Boolean processRecursive, FSharpFunc`2 processScriptFile, FSharpFunc`2 processMarkdown, String indir, String outdir) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 218\r\n   at FSharp.Literate.Literate.ProcessDirectory(String inputDirectory, FSharpOption`1 templateFile, FSharpOption`1 outputDirectory, FSharpOption`1 format, FSharpOption`1 formatAgent, FSharpOption`1 prefix, FSharpOption`1 compilerOptions, FSharpOption`1 lineNumbers, FSharpOption`1 references, FSharpOption`1 fsiEvaluator, FSharpOption`1 replacements, FSharpOption`1 includeSource, FSharpOption`1 layoutRoots, FSharpOption`1 generateAnchors, FSharpOption`1 assemblyReferences, FSharpOption`1 processRecursive, FSharpOption`1 customizeDocument) in c:\\Tomas\\Public\\tpetricek\\FSharp.Formatting\\src\\FSharp.Literate\\Main.fs:line 181\r\n   at FSI_0003.processDir@88(String topdir) in c:\\Users\\eirik\\Development\\mbrace\\mbrace-docs\\docs\\tools\\generate.fsx:line 93\r\n   at FSI_0003.buildDocumentation() in c:\\Users\\eirik\\Development\\mbrace\\mbrace-docs\\docs\\tools\\generate.fsx:line 85\r\n   at <StartupCode$FSI_0003>.$FSI_0003.main@() in c:\\Users\\eirik\\Development\\mbrace\\mbrace-docs\\docs\\tools\\generate.fsx:line 105\r\nStopped due to error\r\n```"},"comment":{"url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/comments/147782726","html_url":"https://github.com/tpetricek/FSharp.Formatting/issues/337#issuecomment-147782726","issue_url":"https://api.github.com/repos/tpetricek/FSharp.Formatting/issues/337","id":147782726,"user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T17:19:55Z","updated_at":"2015-10-13T17:19:55Z","body":"not sure, but would releasing https://github.com/tpetricek/FSharp.Formatting/pull/345 help?"}}