{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/945","labels_url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/945/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/945/comments","events_url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/945/events","html_url":"https://github.com/fsharp/fsharpbinding/issues/945","id":56149143,"number":945,"title":"WebSharper.targets breaks fsautocomplete reference detection","user":{"login":"spiffytech","id":77867,"avatar_url":"https://avatars.githubusercontent.com/u/77867?v=3","gravatar_id":"","url":"https://api.github.com/users/spiffytech","html_url":"https://github.com/spiffytech","followers_url":"https://api.github.com/users/spiffytech/followers","following_url":"https://api.github.com/users/spiffytech/following{/other_user}","gists_url":"https://api.github.com/users/spiffytech/gists{/gist_id}","starred_url":"https://api.github.com/users/spiffytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiffytech/subscriptions","organizations_url":"https://api.github.com/users/spiffytech/orgs","repos_url":"https://api.github.com/users/spiffytech/repos","events_url":"https://api.github.com/users/spiffytech/events{/privacy}","received_events_url":"https://api.github.com/users/spiffytech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsharp/fsharpbinding/labels/Emacs","name":"Emacs","color":"02d7e1"}],"state":"open","locked":false,"assignee":{"login":"rneatherway","id":243995,"avatar_url":"https://avatars.githubusercontent.com/u/243995?v=3","gravatar_id":"","url":"https://api.github.com/users/rneatherway","html_url":"https://github.com/rneatherway","followers_url":"https://api.github.com/users/rneatherway/followers","following_url":"https://api.github.com/users/rneatherway/following{/other_user}","gists_url":"https://api.github.com/users/rneatherway/gists{/gist_id}","starred_url":"https://api.github.com/users/rneatherway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rneatherway/subscriptions","organizations_url":"https://api.github.com/users/rneatherway/orgs","repos_url":"https://api.github.com/users/rneatherway/repos","events_url":"https://api.github.com/users/rneatherway/events{/privacy}","received_events_url":"https://api.github.com/users/rneatherway/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-02-01T02:40:43Z","updated_at":"2015-02-05T10:17:49Z","closed_at":null,"body":"I've used the F# Scaffolding project to build a basic WebSharper sitelets demo. However, including the WebSharper.targets file in my .fsproj (as seems required for generating JavaScript from WebSharper) causes fsautocomplete to ignore all references in my .fsproj file (e.g., System.Web). Additionally, fsautocomplete does not detect the references for WebSharper's DLLs. Ceasing to include WebSharper.targets makes my references work (but then WebSharper's JavaScript generation doesn't).\r\n\r\nI consider this an fsautocomplete bug, since opening my project in MonoDevelop correctly finds the signatures for all System.Web and WebSharper code.\r\n\r\nMy sample project can be found here: http://ge.tt/api/1/files/9T3Y8e92/0/blob?download\r\n\r\nThe code file in question is src/sleep_log/Library.fs.\r\n\r\nI'm editing my project with Emacs fsharp-mode, but I've confirmed the problem with fsautocomplete.exe:\r\n\r\n```\r\n$ echo \"project \"'\"'sleep_log.fsproj'\"'\"\\nparse \"'\"'Library.fs'\"'\" sync\\n$(cat Library.fs)\\n<<EOF>>\" | mono /home/spiffytech/dotfiles-public/.emacs.d/elpa/fsharp-mode-20150114.1450/bin/fsautocomplete.exe\r\nDATA: project\r\n/home/spiffytech/Documents/programs/sleep_log/src/sleep_log/Library.fs\r\n<<EOF>>\r\nINFO: Synchronous parsing started\r\n<<EOF>>\r\nDATA: errors\r\n[3:5-3:19] ERROR The namespace or module 'IntelliFactory' is not defined\r\n[6:7-6:21] ERROR The namespace or module 'IntelliFactory' is not defined\r\n[7:4-7:14] ERROR The type 'JavaScript' is not defined\r\n[11:7-11:21] ERROR The namespace or module 'IntelliFactory' is not defined\r\n[12:7-12:21] ERROR The namespace or module 'IntelliFactory' is not defined\r\n[16:21-16:28] ERROR The type 'Content' is not defined\r\n[17:4-17:15] ERROR The value or constructor 'PageContent' is not defined\r\n[18:7-18:11] ERROR The namespace or module 'Page' is not defined\r\n[19:8-19:13] ERROR The record label 'Title' is not defined\r\n[27:14-27:22] ERROR The type 'IWebsite' is not defined\r\n[27:14-27:30] ERROR The type 'obj' is not an interface type\r\n[27:14-27:22] ERROR The type 'IWebsite' is not defined\r\n[27:14-27:22] ERROR The type 'IWebsite' is not defined\r\n[27:14-27:30] ERROR This type is not an interface type\r\n[28:18-28:25] ERROR No abstract property was found that corresponds to this override\r\n[31:18-31:25] ERROR No abstract property was found that corresponds to this override\r\n[29:8-29:15] ERROR The namespace or module 'Sitelet' is not defined\r\n[34:19-34:22] ERROR The type 'Web' is not defined\r\n[34:19-34:22] ERROR The type 'Web' is not defined\r\n[34:19-34:22] ERROR The type 'Web' is not defined\r\n[38:12-38:19] ERROR The type 'Website' is not defined\r\n<<EOF>>\r\n```"},"comment":{"url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/comments/73023674","html_url":"https://github.com/fsharp/fsharpbinding/issues/945#issuecomment-73023674","issue_url":"https://api.github.com/repos/fsharp/fsharpbinding/issues/945","id":73023674,"user":{"login":"rneatherway","id":243995,"avatar_url":"https://avatars.githubusercontent.com/u/243995?v=3","gravatar_id":"","url":"https://api.github.com/users/rneatherway","html_url":"https://github.com/rneatherway","followers_url":"https://api.github.com/users/rneatherway/followers","following_url":"https://api.github.com/users/rneatherway/following{/other_user}","gists_url":"https://api.github.com/users/rneatherway/gists{/gist_id}","starred_url":"https://api.github.com/users/rneatherway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rneatherway/subscriptions","organizations_url":"https://api.github.com/users/rneatherway/orgs","repos_url":"https://api.github.com/users/rneatherway/repos","events_url":"https://api.github.com/users/rneatherway/events{/privacy}","received_events_url":"https://api.github.com/users/rneatherway/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T10:17:49Z","updated_at":"2015-02-05T10:17:49Z","body":"This is an upstream FCS bug, see https://github.com/fsharp/FSharp.Compiler.Service/issues/294"}}