Krzmbrzl / SQDev

The eclipse plugin for easy Arma development (SQF + more)
http://krzmbrzl.github.io/SQDev/
Other
10 stars 1 forks source link

Wrong problem detection #144

Closed quequiere closed 7 years ago

quequiere commented 7 years ago

Hello, An error is detected on a clean code. Code is [tempPhone] remoteExec ["qqphone_networking_fnc_refreshPhoneNumberClient", _senderId];

And the error is detected on ["qqphone_networking_fnc_refreshPhoneNumberClient", _senderId];

Saying that "Expected but got "Array"!

The code work perfectly.

Screenshot include sans titre

Krzmbrzl commented 7 years ago

Thanks for reporting! On the first glaube it appears to me that there is a problem during the determination of the return value of the argument of remoteExec.

I'll have a look at this...

Krzmbrzl commented 7 years ago

No actually when thinking about it the return value is detected just fine... It's the stored data type for remoteExec that seems to have some problems.

Could you create and attach a plugin-info (via the button in the toolbar with the exclamationmark on the green background)?

quequiere commented 7 years ago

Ok :) SQDevPluginInfo.zip

One more question, how can i format my code (auto indent) with your plugin ? Or a way to use tm4_indenter

Krzmbrzl commented 7 years ago

Formatting is not yet implemented. Currently everything has to be formatted by hand.

And the thing you mentioned I don't know it so I'm afraid I can't help you with that one :/

quequiere commented 7 years ago

It's a tool with posseidon that formating directly files (with a command line), i'll try to find a way to launch the formating from the eclipse executor. I did it for auto compile source to pbo from eclipse and export them the server folders

But thx :)

Krzmbrzl commented 7 years ago

Alright I tracked the bug down to it's source and it will be removed in the next version.

However if it bugs you, you can fix the smyptoms of that particular side of the bug you discoverd by hand:

  1. Go to your eclipse workspace-folder and make sure your explorer shows hidden files to you

  2. Go to .metadata -> .plugins -> raven.sqdev.util -> resources

  3. Open the SQFKeywords.txt

  4. Find the part that says

    <Keyword>
    remoteExec
    </Keyword>
  5. Somwhere under that point there should be a part that looks like this:

    <Syntax>
    Anything remoteExec Array;
    </Syntax>

    Remove the trailing semiclon after Array, save the file and restart eclipse

  6. Be happy as the error marker should be gone