-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse file #24
Comments
thanks will try to look into it |
We have the same problem while try to check an erlang 20 project.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was triying to test an Erlang analysis with our project, Erlang plugin is 1.2.
4 erlang files met parsing errors:
_ERROR: Unable to parse file: /repo/ebscchudso/jenkins-stable/workspace/shy-test-erlang/src/fm/fm_alarm_server.erl
ERROR: Parse error at line 182 column 41:
172: {ok, true};
173: _ ->
174: {ok, false}
175: end,
176: {reply,Reply,State};
177:
178: handle_call({check_pending_alarm, Id}, _From, State) ->
179: Reply =
180: case db_entry:read(?FM_ALARM_LIST, Id) of
181: [Alarm = #?FM_ALARM_LIST{action = pend}] ->
182: {ok,{Alarm#?FM_ALARM_LIST.info, Alarm#?FM_ALARM_LIST.timeout}};
^
183: _ ->
184: {error, not_pending}
185: end,
186: {reply,Reply,State};
187:
188: handle_call(Msg, _From, State) ->
189: ?LOG_MINOR(?DOMAIN, "Unhandled message",[{msg,Msg}]),
190: {reply, nok, State}.
191:
192: %%--------------------------------------------------------------------
ERROR: Unable to parse file: /repo/ebscchudso/jenkins-stable/workspace/shy-test-erlang/src/log/log_lib.erl
ERROR: Parse error at line 57 column 49:
47: -export([get_asi_audittrail_filename/0]).
48: -export([get_asi_security_filename/0]).
49:
50:
51: %% INCLUDE
52: -include_lib("kernel/include/file.hrl").
53: -include("main.hrl").
54: -include("logging.hrl").
55:
56: %% DEFINE
57: -define(CONT_WILD, "^(?!information_container_).*.tar.gz").
^
58:
59: %%===================================================================
60: %% EXPORTED - LIB FUNCTIONS
61: %%===================================================================
62:
63: %%------------------------------------------------------------------
64: try_lock() ->
65: TryLock =
66: fun() ->
67: case object_entry:get_parameters({{dmxcFunction,1},{logging,1}}, transferLogStatus) of
ERROR: Unable to parse file: /repo/ebscchudso/jenkins-stable/workspace/shy-test-erlang/src/oam/bgci_agent.erl
ERROR: Parse error at line 62 column 84:
52: -define(USER_TAG,"USER_NAME").
53: -define(NC_MODE_TAG,"NETCONF_MODE").
54: -define(MODE_COMMIT_AT_CLOSE_SESSION,"COMMIT_AT_CLOSE_SESSION").
55: -define(MODE_COMMIT_AT_EDIT_CONFIG,"COMMIT_AT_EDIT_CONFIG").
56: -define(AUTHEN_ERR,"AuthenticationFailed").
57: -define(AUTHEN_MSG,"System reject it due to it is unauthenticated request.").
58: -define(SYSTEM_ERR,"SystemFailed").
59: -define(SYSTEM_MSG,"System failed to allocate related resource.").
60: -define(MAXUSER_ERR,"Congestion").
61: -define(MAXUSER_MSG,"The connection for this client is excced the maximum.").
62: -define(PENDING_TIMEOUT_MSG,"The connection waiting time is excced the maximum(5s).").
^
63:
64: -define(ERRORMSG1," \n"
65: "<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:urn="urn:com:ericsson:ecim:ComTop" xmlns:urn1="urn:com:ericsson:ecim:Dmxc_Function" xmlns:urn2="urn:com:ericsson:ecim:DmxcEqm" message-id="311">\n"
66: "\n"
67: "application\n"
68: "").
69:
70: -define(ERRORMSG2,"\nerror\n"
71: "<error-message xml:lang="en>").
72:
ERROR: Unable to parse file: /repo/ebscchudso/jenkins-stable/workspace/shy-test-erlang/src/transport/pbf_lib.erl
ERROR: Parse error at line 51 column 55:
41: -define( ERS_HWPROFILE, {{ers,1}, {hwProfile,1}}).
42: -define( ERS_GROUP( GN), {{ers,1}, {hwProfile,1}, {policyGroup, GN}}).
43: -define( ERS_POLICIES, {{ers,1}, {policies,1}}).
44: -define( ERS_COUNTER( CN), {{ers,1}, {policies,1}, {counter, CN}}).
45: -define( ERS_POLICY( PN), {{ers,1}, {policies,1}, {policy, PN}}).
46: -define( ERS_INTERFACE( VR, IF), {{ers,1}, {ersTransport,1}, {ip,1}, {virtualRouter, VR}, {ipInterface, IF}}).
47: -define( ERS_ETHERNETPORT( EP), {{ers,1}, {ersTransport,1}, {ethernet,1}, {bridge, 1}, {ethernetPort, EP}}).
48: -define( ERS_CLASS(CLASS), {{ers,1},{policies,1},{policy,CLASS}}).
49:
50: -define( ERS_ATTRS, ['ethernet-port-ingress','ethernet-port-egress','ip-interface-ingress']).
51: -define( NO_INSTANCE, "is not available (no instance).").
^
52: -define( HWPROFILE_ATTRS, [
53: {maxClassIdVfp, 'max-class-id-vfp'}
54: ]).
55: -define( GROUP_ATTRS, [
56: {action, action},
57: {condition, condition},
58: {filterStage, 'filter-stage'},
59: {priority, priority},
60: {softMaxEntries, 'soft-max-entries'}
61: ])._
Can you please help to fix it?
The text was updated successfully, but these errors were encountered: