{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/400","repository_url":"https://api.github.com/repos/fable-compiler/Fable","labels_url":"https://api.github.com/repos/fable-compiler/Fable/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/Fable/issues/400/comments","events_url":"https://api.github.com/repos/fable-compiler/Fable/issues/400/events","html_url":"https://github.com/fable-compiler/Fable/issues/400","id":176188173,"number":400,"title":"#, #line directive output","user":{"login":"ncave","id":777696,"avatar_url":"https://avatars.githubusercontent.com/u/777696?v=3","gravatar_id":"","url":"https://api.github.com/users/ncave","html_url":"https://github.com/ncave","followers_url":"https://api.github.com/users/ncave/followers","following_url":"https://api.github.com/users/ncave/following{/other_user}","gists_url":"https://api.github.com/users/ncave/gists{/gist_id}","starred_url":"https://api.github.com/users/ncave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncave/subscriptions","organizations_url":"https://api.github.com/users/ncave/orgs","repos_url":"https://api.github.com/users/ncave/repos","events_url":"https://api.github.com/users/ncave/events{/privacy}","received_events_url":"https://api.github.com/users/ncave/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fable-compiler/Fable/labels/discussion","name":"discussion","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-10T16:27:58Z","updated_at":"2016-09-11T09:45:33Z","closed_at":null,"body":"This builds, but does not output any AST:\r\n\r\n```\r\nmodule Test\r\n#line 25 \"somefile.fs\"\r\nlet i = 1\r\n```\r\nIf you take the #line directive out, then it works."},"comment":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/comments/246171488","html_url":"https://github.com/fable-compiler/Fable/issues/400#issuecomment-246171488","issue_url":"https://api.github.com/repos/fable-compiler/Fable/issues/400","id":246171488,"user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars.githubusercontent.com/u/8275461?v=3","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T09:45:33Z","updated_at":"2016-09-11T09:45:33Z","body":"Interesting. Fable [builds a file map](https://github.com/fable-compiler/Fable/blob/master/src/fable/Fable.Compiler/FSharp2Fable.fs#L968) to be able to create the necessary imports between the generated JS files later. However, if you use the `#line` directive, the file location of the entities (`entity.ImplementationLocation.FileName`) and the implementation files (`parsedProject.AssemblyContents.ImplementationFiles`) mismatch (in the sample, the later becomes `somefile.fs`) so the file map breaks down.\r\n\r\nI don't think this is an easy fix, why do you need the `#line` directive. Are you generating code?"}}
{"actor":{"display_login":"alfonsogarciacaro"}}