Removed files are parsed
When a file is removed the JSGLRLink tries to parse the file causing an exception because the file does not exist.
Stacktrace:
Submitted by Gabriƫl Konat on 10 June 2013 at 16:3216:48:59.162 [main] TRACE org.spoofax.sunshine.services.filesource.DirMonitor - Changes are 3 16:48:59.163 [main] TRACE org.spoofax.sunshine.services.filesource.DirMonitor - DELETION of /Users/gohla/Spoofax/Repositories/github.com/yellowgrass/issolar.app 16:48:59.163 [main] TRACE org.spoofax.sunshine.services.filesource.DirMonitor - ADDITION of /Users/gohla/Spoofax/Repositories/github.com/yellowgrass/yellowgrass.app 16:48:59.163 [main] TRACE org.spoofax.sunshine.services.filesource.DirMonitor - MODIFICATION of /Users/gohla/Spoofax/Repositories/github.com/yellowgrass/issue/issue.app 16:48:59.163 [main] TRACE org.spoofax.sunshine.services.filesource.DirMonitor - Returning changes 16:48:59.163 [main] DEBUG org.spoofax.sunshine.services.filesource.FileSource - Notifying 2 sinks of 3 file changes 16:48:59.163 [main] DEBUG org.spoofax.sunshine.pipeline.connectors.LinkMapperOneToOne - Sinking 3 diffs mapped over link org.spoofax.sunshine.services.parser.JSGLRLink@17341b06 16:48:59.173 [main] DEBUG org.spoofax.sunshine.services.parser.JSGLRLink - Parsing of file /Users/gohla/Spoofax/Repositories/github.com/yellowgrass/yellowgrass.app produced AST ApplicationDefs("yellowgrass",[Imports("templates"),Imports("ac"),Imports("auxiliary"),Imports("issue/issue"),Imports("user/user"),Imports("project/project"),Define([Page],"root",[],None,[TemplateCallNoBody("main",[]),Define([],"body",[],None,[TemplateCallPropsNoArgs("block",[PropertyAssignment("class",String("column1"))],TemplateBody([TemplateCallBody("par",TemplateBody([XMLElement("h2",[],[Text("About YellowGrass")],"h2")])),TemplateCallBody("par",TemplateBody([Text("YellowGrass is a light-weight and easy to use issue tracker. "),Text("It provides a complete issue tracking solution, geared towards software development. "),Text("Using YellowGrass is free. Registering your project is just a few clicks away... "),NavigateCall(PageCall("registerUser",[]),[],[Text("Register")])])),TemplateCallBody("par",TemplateBody([XMLElement("h2",[],[Text("New projects on YellowGrass")],"h2")])),TemplateCallBody("par",TemplateBody([VarDeclInit("recentProjects",GenericSort("List",SimpleSort("Project")),HqlQueryLimit(QueryRule(SelectFrom(None,FromClause([FromRangeJoin(FromClass(Path(["Project"]),Some(AsAlias(Alias("p"))),None),[])])),None,None,Some(OrderByClause([OrderElement(Path(["_created"]),Some(Descending))]))),Int("5"))),TemplateCallBody("table",TemplateBody([For("p",SimpleSort("Project"),Var("recentProjects"),None,[TemplateCallBody("row",TemplateBody([NavigateCall(PageCall("project",[Var("p")]),[],[TemplateCallNoBody("output",[FieldAccess(Var("p"),"name")])]),TemplateCallNoBody("output",[FieldAccess(Var("p"),"url")])]))],None)]))]))])),TemplateCallPropsNoArgs("block",[PropertyAssignment("class",String("column2"))],TemplateBody([TemplateCallBody("par",TemplateBody([XMLElement("h2",[],[Text("Recent Issues")],"h2")])),TemplateCallBody("par",TemplateBody([VarDeclInit("recentIssues",GenericSort("List",SimpleSort("Issue")),HqlQueryLimit(QueryRule(SelectFrom(None,FromClause([FromRangeJoin(FromClass(Path(["Issue"]),Some(AsAlias(Alias("i"))),None),[])])),None,None,Some(OrderByClause([OrderElement(Path(["_submitted"]),Some(Descending))]))),Int("16"))),TemplateCallNoBody("issues",[Call(Var("recentIssues"),"set",[]),True,False,False])]))]))])])],[]) and 0 messages 16:48:59.174 [main] FATAL org.spoofax.sunshine.CompilerCrashHandler - Thread main died with uncaught exception org.spoofax.sunshine.CompilerException: Could not read file org.spoofax.sunshine.CompilerException: Could not read file at org.spoofax.sunshine.services.parser.JSGLRI.parse(JSGLRI.java:104) at org.spoofax.sunshine.services.parser.JSGLRLink.sinkWork(JSGLRLink.java:41) at org.spoofax.sunshine.pipeline.connectors.ALinkOneToOne.sink(ALinkOneToOne.java:28) at org.spoofax.sunshine.pipeline.connectors.LinkMapperOneToOne.sink(LinkMapperOneToOne.java:49) at org.spoofax.sunshine.services.filesource.FileSource.poke(FileSource.java:52) at org.spoofax.sunshine.drivers.SunshineMainDriver.run(SunshineMainDriver.java:158) at org.spoofax.sunshine.gitdrive.SunshineGitDriver.run(SunshineGitDriver.java:136) at org.spoofax.sunshine.gitdrive.Main.main(Main.java:42) Caused by: java.io.FileNotFoundException: File '/Users/gohla/Spoofax/Repositories/github.com/yellowgrass/issolar.app' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711) at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748) at org.spoofax.sunshine.services.parser.JSGLRI.parse(JSGLRI.java:102) ... 7 more 16:48:59.175 [main] FATAL org.spoofax.sunshine.CompilerCrashHandler - Exiting because of previous error
Issue Log
On 10 June 2013 at 18:04 Vlad Vergu commented:
I think this is fixed now. Please reopen if issue reappears or still exists.
On 10 June 2013 at 18:04 Vlad Vergu closed this issue.
Log in to post comments