Skip to content

Commit

Permalink
avoid new lines in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
JPMoresmau committed Jan 28, 2014
1 parent 2657fc2 commit b9f79b5
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -348,7 +348,6 @@ public Collection<NameDef> build1(IFile file,IDocument d){
public Collection<NameDef> 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);
Expand Down Expand Up @@ -858,7 +857,6 @@ public void registerOutline(IFile file,OutlineResult or){

public List<TokenDef> tokenTypes(IFile file){
//long t0=System.currentTimeMillis();

JSONArray arr=null;
if (runningFiles.add(file)){
Process p=buildProcesses.get(file);
Expand All @@ -871,7 +869,7 @@ public List<TokenDef> 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);
Expand Down Expand Up @@ -1948,7 +1946,9 @@ public File getSandboxPath(){
* @return a (possibly multiple) list of results
*/
public List<EvalResult> eval(IFile file,String expression){

long t0=System.currentTimeMillis();
expression=expression.replace('\n', ' ').replace('\r',' ');
JSONArray arr=null;
if (runningFiles.add(file)){
try {
Expand Down

0 comments on commit b9f79b5

Please sign in to comment.