{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/1088","labels_url":"https://api.github.com/repos/ensime/ensime-server/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-server/issues/1088/comments","events_url":"https://api.github.com/repos/ensime/ensime-server/issues/1088/events","html_url":"https://github.com/ensime/ensime-server/issues/1088","id":105684193,"number":1088,"title":"Sorry, no definition found","user":{"login":"ambantis","id":602382,"avatar_url":"https://avatars.githubusercontent.com/u/602382?v=3","gravatar_id":"","url":"https://api.github.com/users/ambantis","html_url":"https://github.com/ambantis","followers_url":"https://api.github.com/users/ambantis/followers","following_url":"https://api.github.com/users/ambantis/following{/other_user}","gists_url":"https://api.github.com/users/ambantis/gists{/gist_id}","starred_url":"https://api.github.com/users/ambantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambantis/subscriptions","organizations_url":"https://api.github.com/users/ambantis/orgs","repos_url":"https://api.github.com/users/ambantis/repos","events_url":"https://api.github.com/users/ambantis/events{/privacy}","received_events_url":"https://api.github.com/users/ambantis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ensime/ensime-server/labels/Externally%20Blocked","name":"Externally Blocked","color":"990000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-09T21:04:10Z","updated_at":"2015-09-10T19:01:11Z","closed_at":"2015-09-10T10:12:50Z","body":"when I'm in a project and call `ensime-edit-definition` from emacs, I receive the message \"Sorry, no definition found\". The issue seems to be that the source jar in question has a single directory that represents two packages, dot separated. If I unpack the source jar and change it so that each package is represented by a separate directory, then ensime is able to take me to the source file.\r\n\r\nWhen I load the project in IDEA, it is able to navigate to the source file, and within emacs I am able to get code completion on the class in question and get type information about the symbol, just that it cannot open the source.\r\n\r\nI am using \"ensime-sbt\" version 0.1.7 and ensime-20150819.1214 from elpa\r\n\r\nHere is the original source jar:\r\n```\r\n$ jar tf amqp-client_2.11-1.5-sources.jar\r\nMETA-INF/\r\nMETA-INF/MANIFEST.MF\r\ncom/\r\ncom/github.sstone/\r\ncom/github.sstone/amqp/\r\ncom/github.sstone/amqp/samples/\r\ncom/github.sstone/amqp/Amqp.scala\r\ncom/github.sstone/amqp/ChannelOwner.scala\r\ncom/github.sstone/amqp/ConnectionOwner.scala\r\ncom/github.sstone/amqp/Consumer.scala\r\ncom/github.sstone/amqp/RpcClient.scala\r\ncom/github.sstone/amqp/RpcServer.scala\r\ncom/github.sstone/amqp/samples/Admin.scala\r\ncom/github.sstone/amqp/samples/BasicRpcClient.scala\r\ncom/github.sstone/amqp/samples/BasicRpcServer.scala\r\ncom/github.sstone/amqp/samples/Consumer1.scala\r\ncom/github.sstone/amqp/samples/Consumer2.scala\r\ncom/github.sstone/amqp/samples/Consumer3.scala\r\ncom/github.sstone/amqp/samples/Consumer4.scala\r\ncom/github.sstone/amqp/samples/OneToAnyRpc.scala\r\ncom/github.sstone/amqp/samples/OneToManyRpc.scala\r\ncom/github.sstone/amqp/samples/Producer.scala\r\ncom/github.sstone/amqp/samples/PublisherConfirms.scala\r\n```\r\n\r\nand here is the manually updated sources jar:\r\n```\r\n$ jar tf amqp-client_2.11-1.5-sources.jar\r\nMETA-INF/\r\nMETA-INF/MANIFEST.MF\r\ncom/\r\ncom/github/\r\ncom/github/sstone/\r\ncom/github/sstone/amqp/\r\ncom/github/sstone/amqp/Amqp.scala\r\ncom/github/sstone/amqp/ChannelOwner.scala\r\ncom/github/sstone/amqp/ConnectionOwner.scala\r\ncom/github/sstone/amqp/Consumer.scala\r\ncom/github/sstone/amqp/RpcClient.scala\r\ncom/github/sstone/amqp/RpcServer.scala\r\ncom/github/sstone/amqp/samples/\r\ncom/github/sstone/amqp/samples/Admin.scala\r\ncom/github/sstone/amqp/samples/BasicRpcClient.scala\r\ncom/github/sstone/amqp/samples/BasicRpcServer.scala\r\ncom/github/sstone/amqp/samples/Consumer1.scala\r\ncom/github/sstone/amqp/samples/Consumer2.scala\r\ncom/github/sstone/amqp/samples/Consumer3.scala\r\ncom/github/sstone/amqp/samples/Consumer4.scala\r\ncom/github/sstone/amqp/samples/OneToAnyRpc.scala\r\ncom/github/sstone/amqp/samples/OneToManyRpc.scala\r\ncom/github/sstone/amqp/samples/Producer.scala\r\ncom/github/sstone/amqp/samples/PublisherConfirms.scala\r\n```\r\n\r\nhere is the debug output from the `*inferior-ensime-server-play-amqp-manager*` buffer when I get the \"Sorry, no definition found\" message:\r\n```\r\n13:31:11.009 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/4 o.e.s.RequestHandler - SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,704)\r\n13:31:11.009 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.Project - received handled message SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,704)\r\n13:31:11.009 DEBUG akka://ENSIME/user/ensime-main/project/analyzer o.e.c.Analyzer - received handled message SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,704) in state ready\r\n13:31:11.013 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.RichPresentationCompiler - using symbol of class scala.reflect.internal.Trees$Select tree\r\n13:31:11.042 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.RichPresentationCompiler - search: com.github.sstone.amqp.ConnectionOwner$ = Some(FqnSymbol(Some(1443),file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2.11/jars/amqp-client_2.11-1.5.jar,jar:file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2\r\n13:31:11.044 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.RichPresentationCompiler - search object ConnectionOwner: Try Companion\r\n13:31:11.046 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.RichPresentationCompiler - search: com.github.sstone.amqp.ConnectionOwner = Some(FqnSymbol(Some(1138),file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2.11/jars/amqp-client_2.11-1.5.jar,jar:file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2.\r\n13:31:11.064 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.RichPresentationCompiler - search object ConnectionOwner: Try Companion\r\n13:31:11.068 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/4 o.e.s.RequestHandler - received handled message Some(SymbolInfo(com.github.sstone.amqp.ConnectionOwner$,ConnectionOwner,None,BasicTypeInfo(ConnectionOwner$,1,Object,com.github.sstone.amqp.ConnectionOwner$,List(),List(),None,None),false,Some(2))) in state receive\r\n```\r\nand here is the log output when I call `ensime-edit-definition` after shutting down ensime, deleting `.ensime` and `.ensime_cache`, running `gen-ensime`, and starting `ensime` again from emacs:\r\n```\r\n13:27:19.209 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/4 o.e.s.RequestHandler - SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,709)\r\n13:27:19.209 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.Project - received handled message SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,709)\r\n13:27:19.209 DEBUG akka://ENSIME/user/ensime-main/project/analyzer o.e.c.Analyzer - received handled message SymbolAtPointReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/src/main/scala/com/apple/iapps/amqp/Producer.scala,709) in state ready\r\n13:27:19.213 DEBUG None o.e.c.RichPresentationCompiler - using symbol of class scala.reflect.internal.Trees$Select tree\r\n13:27:19.243 DEBUG None o.e.c.RichPresentationCompiler - search: com.github.sstone.amqp.ConnectionOwner$ = Some(FqnSymbol(Some(1443),file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2.11/jars/amqp-client_2.11-1.5.jar,jar:file:///Users/alexandros/.ivy2/cache/com.github.sstone/amqp-client_2\r\n13:27:19.291 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/4 o.e.s.RequestHandler - received handled message Some(SymbolInfo(com.github.sstone.amqp.ConnectionOwner$,ConnectionOwner,Some(OffsetSourcePosition(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/Conne\r\n13:27:19.324 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/5 o.e.s.RequestHandler - SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,952,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldSymbol, FunctionCallSymbol,\r\n13:27:19.324 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.Project - received handled message SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,952,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldSy\r\n13:27:19.325 DEBUG akka://ENSIME/user/ensime-main/project/analyzer o.e.c.Analyzer - received handled message SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,952,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldSy\r\n13:27:19.425 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/6 o.e.s.RequestHandler - SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,7135,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldSymbol, FunctionCallSymbol\r\n13:27:19.425 DEBUG akka://ENSIME/user/ensime-main/project o.e.c.Project - received handled message SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,7135,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldS\r\n13:27:20.137 DEBUG akka://ENSIME/user/ensime-main/project/analyzer o.e.c.Analyzer - received handled message SymbolDesignationsReq(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,0,7135,List(VarSymbol, ValSymbol, VarFieldSymbol, ValFieldS\r\n13:27:20.137 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/5 o.e.s.RequestHandler - received handled message SymbolDesignations(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,List(SymbolDesignation(26,30,PackageSymbol), SymbolDesignation\r\n13:27:20.154 DEBUG akka://ENSIME/user/ensime-main/tcp-server/con1/6 o.e.s.RequestHandler - received handled message SymbolDesignations(/Users/alexandros/Documents/dev/marcom/abantis/play-amqp-manager/.ensime_cache/dep-src/source-jars/com/github/sstone/amqp/ConnectionOwner.scala,List(SymbolDesignation(26,30,PackageSymbol), SymbolDesignation\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/comments/139345668","html_url":"https://github.com/ensime/ensime-server/issues/1088#issuecomment-139345668","issue_url":"https://api.github.com/repos/ensime/ensime-server/issues/1088","id":139345668,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T19:01:11Z","updated_at":"2015-09-10T19:01:11Z","body":"And how exactly do you propose that we detect that there is a problem with the jar?"}}