{"action":"opened","issue":{"url":"https://api.github.com/repos/sharpdx/SharpDX/issues/695","labels_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/695/comments","events_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/695/events","html_url":"https://github.com/sharpdx/SharpDX/issues/695","id":127645325,"number":695,"title":"ShaderBytecode.CompileFromFile(...) returns false CompilationResult in case of compilation errors","user":{"login":"kairohmer","id":4760892,"avatar_url":"https://avatars.githubusercontent.com/u/4760892?v=3","gravatar_id":"","url":"https://api.github.com/users/kairohmer","html_url":"https://github.com/kairohmer","followers_url":"https://api.github.com/users/kairohmer/followers","following_url":"https://api.github.com/users/kairohmer/following{/other_user}","gists_url":"https://api.github.com/users/kairohmer/gists{/gist_id}","starred_url":"https://api.github.com/users/kairohmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kairohmer/subscriptions","organizations_url":"https://api.github.com/users/kairohmer/orgs","repos_url":"https://api.github.com/users/kairohmer/repos","events_url":"https://api.github.com/users/kairohmer/events{/privacy}","received_events_url":"https://api.github.com/users/kairohmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T09:58:49Z","updated_at":"2016-01-20T09:58:49Z","closed_at":null,"body":"Hi There,\r\nI'm recompiling changed shaders at runtime an run into issue after updating from an oder SharpDX 2.x version to the current one. The 'HasErrors' is false even if there was an error. \r\n\r\nhere is an example (with source file path and includes):\r\nvar res = ShaderBytecode.CompileFromFile(filepath, \"main\", \"ps_5_0\", ShaderFlags.PackMatrixRowMajor, EffectFlags.None, null, include);\r\n\r\nres.ByteCode = null\r\nres.HasErrors = false\r\nres.IsDisposed = false\r\nres.Message = \"...\\\\unknown(25,2-8): error X3000: syntax error: unexpected token 'element'\\n\"\r\nmy source file misses a semicolon and produces\r\nres.ResultCode = 0x0\r\n\r\nthanks for looking into this"}}