From b9f79b5b5e60a2ce58ab523b359fec63d7e73b3e Mon Sep 17 00:00:00 2001 From: jpmoresmau Date: Tue, 28 Jan 2014 21:31:48 +0100 Subject: [PATCH] avoid new lines in expressions --- .../src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net.sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java b/net.sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java index d4b317c6b..242900ebb 100644 --- a/net.sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java +++ b/net.sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java @@ -348,7 +348,6 @@ public Collection build1(IFile file,IDocument d){ public Collection build1LongRunning(IFile file,IDocument d,boolean end){ //BuildFlagInfo i=getBuildFlags(file); //BuildWrapperPlugin.logInfo("build1LongRunning"); - if (bwPath==null){ if (!showedNoExeError){ BuildWrapperPlugin.logError(BWText.error_noexe, null); @@ -858,7 +857,6 @@ public void registerOutline(IFile file,OutlineResult or){ public List tokenTypes(IFile file){ //long t0=System.currentTimeMillis(); - JSONArray arr=null; if (runningFiles.add(file)){ Process p=buildProcesses.get(file); @@ -871,7 +869,7 @@ public List tokenTypes(IFile file){ } //BuildWrapperPlugin.logInfo("tokenTypes longrunning"); } catch (IOException ioe){ - BuildWrapperPlugin.logError(BWText.process_launch_error, ioe); + //BuildWrapperPlugin.logError(BWText.process_launch_error, ioe); } finally { //BuildWrapperPlugin.logInfo("tokenTypes longrunning end"); runningFiles.remove(file); @@ -1948,7 +1946,9 @@ public File getSandboxPath(){ * @return a (possibly multiple) list of results */ public List eval(IFile file,String expression){ + long t0=System.currentTimeMillis(); + expression=expression.replace('\n', ' ').replace('\r',' '); JSONArray arr=null; if (runningFiles.add(file)){ try {