{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/283","repository_url":"https://api.github.com/repos/fsharp/FsAutoComplete","labels_url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/283/comments","events_url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/283/events","html_url":"https://github.com/fsharp/FsAutoComplete/issues/283","id":303604584,"number":283,"title":"completion with backticks doesnt work","user":{"login":"enricosada","id":147243,"avatar_url":"https://avatars3.githubusercontent.com/u/147243?v=4","gravatar_id":"","url":"https://api.github.com/users/enricosada","html_url":"https://github.com/enricosada","followers_url":"https://api.github.com/users/enricosada/followers","following_url":"https://api.github.com/users/enricosada/following{/other_user}","gists_url":"https://api.github.com/users/enricosada/gists{/gist_id}","starred_url":"https://api.github.com/users/enricosada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricosada/subscriptions","organizations_url":"https://api.github.com/users/enricosada/orgs","repos_url":"https://api.github.com/users/enricosada/repos","events_url":"https://api.github.com/users/enricosada/events{/privacy}","received_events_url":"https://api.github.com/users/enricosada/received_events","type":"User","site_admin":false},"labels":[{"id":210756846,"url":"https://api.github.com/repos/fsharp/FsAutoComplete/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-08T19:37:27Z","updated_at":"2018-04-12T07:46:05Z","closed_at":null,"author_association":"COLLABORATOR","body":"Completion with backticks doesnt send correct value as text to insert\r\n\r\nref https://github.com/ionide/ionide-vscode-fsharp/issues/726\r\n\r\n```fsharp\r\nopen System\r\n\r\nmodule CommonPaketFiles =\r\n    let  ``opennlp.sourceforge.net`` = ()\r\n\r\nlet f () =\r\n    CommonPaketFiles.|\r\n```\r\n\r\nWith completion at `|` the result shold be\r\n\r\n```fsharp\r\nlet f () =\r\n    CommonPaketFiles.``opennlp.sourceforge.net``\r\n```\r\n\r\ninstead is\r\n\r\n```fsharp\r\nlet f () =\r\n    CommonPaketFiles.opennlp.sourceforge.net\r\n```"},"comment":{"url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/comments/380710206","html_url":"https://github.com/fsharp/FsAutoComplete/issues/283#issuecomment-380710206","issue_url":"https://api.github.com/repos/fsharp/FsAutoComplete/issues/283","id":380710206,"user":{"login":"swrhim","id":2744303,"avatar_url":"https://avatars0.githubusercontent.com/u/2744303?v=4","gravatar_id":"","url":"https://api.github.com/users/swrhim","html_url":"https://github.com/swrhim","followers_url":"https://api.github.com/users/swrhim/followers","following_url":"https://api.github.com/users/swrhim/following{/other_user}","gists_url":"https://api.github.com/users/swrhim/gists{/gist_id}","starred_url":"https://api.github.com/users/swrhim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swrhim/subscriptions","organizations_url":"https://api.github.com/users/swrhim/orgs","repos_url":"https://api.github.com/users/swrhim/repos","events_url":"https://api.github.com/users/swrhim/events{/privacy}","received_events_url":"https://api.github.com/users/swrhim/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T07:46:05Z","updated_at":"2018-04-12T07:46:05Z","author_association":"NONE","body":"Hi @enricosada I'm taking a look into this issue and I wanted to confirm something I found. It looks like by the time this code is called in the CompilerServiceInterface.fs under TryGetCompletions:\r\n`let! results = checkResults.GetDeclarationListInfo(Some parseResults, pos.Line, lineStr, longName, getAllSymbols)`\r\nlongName has already parsed out the double backticks, so the CompilerService does not return ``opennlp.sourceforge.net`` as an option. Going back even more, the longName is created by this:\r\n`let longName = Microsoft.FSharp.Compiler.QuickParse.GetPartialLongNameEx(lineStr, pos.Column - 2)`\r\n\r\nThe result of longName is stripped of the ``. It seems to indicate that it might be an issue in the FSharp.Compiler. Am I on the right track or totally off base?\r\n\r\nThanks."}}
{"actor":{"display_login":"swrhim"}}