Mon Oct 26, 2020 6:51 am
Login Register Lost Password? Contact Us


Syntax Check Failure

Topics around the use of the VS Code & Eclipse plugins

Wed Oct 15, 2014 5:53 pm Change Time Zone

Will this also fix the submit issue?
micevepay
 
Posts: 62
Joined: Wed Apr 02, 2014 7:30 pm

Thu Oct 16, 2014 12:15 pm Change Time Zone

...no... But the following (finally does): https://track.hpccsystems.com/browse/HPCC-12420

Essentially the stdout / stderr of eclcc are getting interrupted prematurely on OSX.
gsmith
 
Posts: 285
Joined: Thu May 12, 2011 9:40 am

Mon Mar 30, 2015 12:52 pm Change Time Zone

I Have the same issue about no syntax checking. It has worked in the past. I'm on 5.0.4 clienttools.
Ctrl-S after changes, File/Save, F7, and Edit/Syntax check does nothing.
Last edited by greg.whitaker on Mon Mar 30, 2015 1:15 pm, edited 1 time in total.
greg.whitaker
 
Posts: 18
Joined: Tue Oct 29, 2013 3:06 pm

Tue Mar 31, 2015 1:44 pm Change Time Zone

I still have the same issue as well. The proposed resolution never changed anything. Even with the latest updates since then.
micevepay
 
Posts: 62
Joined: Wed Apr 02, 2014 7:30 pm

Mon Apr 13, 2015 9:39 am Change Time Zone

(Back from vacation...)

I have just retested this (on a clean installation of the latest OSX and the 5.2.0 Client Tools) and it appears to be working fine.

Can those of you who are experiencing this issue, please try running the following command line in your terminal (adjust the names to match your files, FYI I copied this line from my Console Window):

Code: Select all
/opt/HPCCSystems/5.2.0/clienttools/bin/eclcc -fsyntaxcheck=1 -I/Users/gordon/Documents/runtime-EclipseApplication/TestPRJ /Users/gordon/Documents/runtime-EclipseApplication/TestPRJ/new_file.ecl


And report back (with the version of OSX your using) - thx.
gsmith
 
Posts: 285
Joined: Thu May 12, 2011 9:40 am

Mon Apr 13, 2015 9:44 am Change Time Zone

In my case:
Code: Select all
/opt/HPCCSystems/5.2.0/clienttools/bin/eclcc -fsyntaxcheck=1 -I/Users/gordon/Documents/workspace_ecl/TestPRJ /Users/gordon/Documents/workspace_ecl/TestPRJ/new_file.ecl


Produces:
Code: Select all
/Users/gordon/Documents/workspace_ecl/TestPRJ/new_file.ecl(6,10): error C3002: syntax error near ";" : expected :=
1 error, 0 warning
gsmith
 
Posts: 285
Joined: Thu May 12, 2011 9:40 am

Sun Apr 19, 2015 1:02 pm Change Time Zone

after typing "this" into one of my tester.ecl files the command line seemed to work fine. Then I removed "this" and reported no syntax errors so still worked fine.

tim:~ gregwhitaker$ /opt/HPCCSystems/5.2.0/clienttools/bin/eclcc -fsyntaxcheck=1 -I/Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc /Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc/tester.ecl
/Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc/tester.ecl(14,1): error C2324: Unknown type 'this'
1 error, 0 warning
tim:~ gregwhitaker$ /opt/HPCCSystems/5.2.0/clienttools/bin/eclcc -fsyntaxcheck=1 -I/Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc /Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc/tester.ecl
tim:~ gregwhitaker$
greg.whitaker
 
Posts: 18
Joined: Tue Oct 29, 2013 3:06 pm

Sun Apr 19, 2015 1:04 pm Change Time Zone

Oh and I'm on OS X version 10.9.5

Eclipse IDE for Java Developers
Version: Juno Service Release 2
Build id: 20130225-0426
Last edited by greg.whitaker on Sun Apr 19, 2015 2:51 pm, edited 1 time in total.
greg.whitaker
 
Posts: 18
Joined: Tue Oct 29, 2013 3:06 pm

Sun Apr 19, 2015 1:47 pm Change Time Zone

Additional info: This may be a separate issue...not sure.

If I select Project - Clean, it does compile/syntax all my *ecl files in my repository, I can see it in the console, but they are using the previous compiler I had been using 5.0.4. (I just upgraded to 5.2).

Example console window:
/opt/HPCCSystems/5.0.4/clienttools/bin/eclcc -M -I/Users/gregwhitaker/Documents/workspace/ecl_repository /Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc/tester.ecl
/opt/HPCCSystems/5.0.4/clienttools/bin/eclcc -fsyntaxcheck=1 -E -I/Users/gregwhitaker/Documents/workspace/ecl_repository /Users/gregwhitaker/Documents/workspace/ecl_repository/TIM/Misc/tester.ecl

I right-clicked on 1 attribute and selected Refresh and saw this in the console:
/opt/HPCCSystems/5.2.0/clienttools/bin/eclcc --version

So I right-clicked on the project folder and selected Refresh, then I selected Project - Clean.
The console was showing 5.2.0 for the compile for all my files.

I exited Eclipse and brought it back up and selected Project - Clean.
The console went back to using 5.0.4 for the compile for all my files.

PS, still isn't syntax checking in any other method: F7, Edit-Check Syntax, Ctrl-S.
greg.whitaker
 
Posts: 18
Joined: Tue Oct 29, 2013 3:06 pm

Sun Apr 19, 2015 2:13 pm Change Time Zone

Also, in my environment, Run - Run Configurations - Run does compile/syntax check correctly.
greg.whitaker
 
Posts: 18
Joined: Tue Oct 29, 2013 3:06 pm

PreviousNext

Return to VS Code and Eclipse IDE

Who is online

Users browsing this forum: No registered users and 1 guest