This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Fixing of issue 280 #300
Open
jthoene
wants to merge
74
commits into
master
Choose a base branch
from
issues_279_280
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fixing of issue 280 #300
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit fixes #284
but the function for checking doesnt work yet(getLengthOfAssemblyExpression), maybe use IHiddenRegionFormatter.setOnAutowrap
Also extended some quickfixes.
The test coverage for compiler errors, warnings and it's quickfixes, now looks like the following: // Compiler ERRORS String ERROR_CONSTANT_MODIFIER_WAS_REMOVED = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_CALLDATA_FOR_EXTERNAL_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_OR_STORAGE_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATALOCATION_MUST_BE_STORAGE = Not reproducable String ERROR_DATA_LOCATION_MUST_BE_SPECIFIED_FOR_VARIABLE = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_STORAGE_OR_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_FUNCTION_DECLARED_AS_PURE_BUT_MUST_BE_VIEW = Not reproducable String ERROR_FUNCTION_DECLARED_AS_VIEW_BUT_MUST_BE_PAYABLE_OR_NON_PAYABLE = Quickfix tested String ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED = Quickfix tested String ERROR_INVALID_IMPLICID_CONVERSION_TO_ADDRESS_PAYABLE = Quickfix tested String ERROR_MEMBER_TRANSFER_NOT_FOUND_OR_VISIBLE = No Quickfix available String ERROR_NO_VISIBILITY_SPECIFIED = Quickfix tested String ERROR_STATE_MUTABILITY_ONLY_ALLOWED_FOR_ADDRESS = Quickfix tested String ERROR_THROW_KEYWORD_DISALLOWED = Quickfix tested String ERROR_VAR_KEYWORD_DISALLOWED = Quickfix doesn't work because of bug String ERROR_YEARS_IS_DISALLOWED = Quickfix tested String ERROR_DEPRECATED_SUICIDE = Quickfix tested String ERROR_DEPRECATED_SHA3 = Quickfix tested String ERROR_INTERFACE_FUNCTIONS_CAN_NOT_HAVE_MODIFIERS = Quickfix tested String ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE = No Quickfix available // Compiler WARNINGS String WARNING_DEPRECATED_CALLCODE = Overshadowed by an error String WARNING_DEPRECATED_FUNCTION_CONSTRUCTOR = Overshadowed by ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED String WARNING_DEPRECATED_NAMED_FUNCTION_PARAMETERS = Not producable by the compiler String WARNING_DEPRECATED_NAMED_FUNCTION_RETURN_VALUES = Not producable by the compiler String WARNING_DEPRECATED_SHA3 = Overshadowed by ERROR_DEPRECATED_SHA3 String WARNING_DEPRECATED_SUICIDE = Overshadowed by ERROR_DEPRECATED_SUICIDE String WARNING_DEPRECATED_THROW = Overshadowed by ERROR_THROW_KEYWORD_DISALLOWED String WARNING_FILE_NO_PRAGMA_SOLIDITY = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_PURE = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_VIEW = Quickfix tested String WARNING_FUNCTION_UNUSED_PARAMETER = Quickfix tested String WARNING_FUNCTION_VISIBILITY = Overshadowed by ERROR_NO_VISIBILITY_SPECIFIED String WARNING_LOCAL_VARIABLE_UNUSED = Quickfix tested String WARNING_MSG_VALUE_IN_NON_PAYABLE = Overshadowed by ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE String WARNING_SHADOWED_DECLARATION = No Quickfix available String WARNING_SOLIDITY_VERSION_NOT_THE_DEFAULT = Warning seems to be removed by the newer compiler version String WARNING_USSAGE_OF_SEND = Quickfix tested String WARNING_VARIABLE_STORAGE_POINTER = Overshadowed by an equivalent error, which is not documented by us at the moment
This commit fixes #284
Also extended some quickfixes.
The test coverage for compiler errors, warnings and it's quickfixes, now looks like the following: // Compiler ERRORS String ERROR_CONSTANT_MODIFIER_WAS_REMOVED = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_CALLDATA_FOR_EXTERNAL_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_OR_STORAGE_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATALOCATION_MUST_BE_STORAGE = Not reproducable String ERROR_DATA_LOCATION_MUST_BE_SPECIFIED_FOR_VARIABLE = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_STORAGE_OR_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_FUNCTION_DECLARED_AS_PURE_BUT_MUST_BE_VIEW = Not reproducable String ERROR_FUNCTION_DECLARED_AS_VIEW_BUT_MUST_BE_PAYABLE_OR_NON_PAYABLE = Quickfix tested String ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED = Quickfix tested String ERROR_INVALID_IMPLICID_CONVERSION_TO_ADDRESS_PAYABLE = Quickfix tested String ERROR_MEMBER_TRANSFER_NOT_FOUND_OR_VISIBLE = No Quickfix available String ERROR_NO_VISIBILITY_SPECIFIED = Quickfix tested String ERROR_STATE_MUTABILITY_ONLY_ALLOWED_FOR_ADDRESS = Quickfix tested String ERROR_THROW_KEYWORD_DISALLOWED = Quickfix tested String ERROR_VAR_KEYWORD_DISALLOWED = Quickfix doesn't work because of bug String ERROR_YEARS_IS_DISALLOWED = Quickfix tested String ERROR_DEPRECATED_SUICIDE = Quickfix tested String ERROR_DEPRECATED_SHA3 = Quickfix tested String ERROR_INTERFACE_FUNCTIONS_CAN_NOT_HAVE_MODIFIERS = Quickfix tested String ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE = No Quickfix available // Compiler WARNINGS String WARNING_DEPRECATED_CALLCODE = Overshadowed by an error String WARNING_DEPRECATED_FUNCTION_CONSTRUCTOR = Overshadowed by ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED String WARNING_DEPRECATED_NAMED_FUNCTION_PARAMETERS = Not producable by the compiler String WARNING_DEPRECATED_NAMED_FUNCTION_RETURN_VALUES = Not producable by the compiler String WARNING_DEPRECATED_SHA3 = Overshadowed by ERROR_DEPRECATED_SHA3 String WARNING_DEPRECATED_SUICIDE = Overshadowed by ERROR_DEPRECATED_SUICIDE String WARNING_DEPRECATED_THROW = Overshadowed by ERROR_THROW_KEYWORD_DISALLOWED String WARNING_FILE_NO_PRAGMA_SOLIDITY = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_PURE = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_VIEW = Quickfix tested String WARNING_FUNCTION_UNUSED_PARAMETER = Quickfix tested String WARNING_FUNCTION_VISIBILITY = Overshadowed by ERROR_NO_VISIBILITY_SPECIFIED String WARNING_LOCAL_VARIABLE_UNUSED = Quickfix tested String WARNING_MSG_VALUE_IN_NON_PAYABLE = Overshadowed by ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE String WARNING_SHADOWED_DECLARATION = No Quickfix available String WARNING_SOLIDITY_VERSION_NOT_THE_DEFAULT = Warning seems to be removed by the newer compiler version String WARNING_USSAGE_OF_SEND = Quickfix tested String WARNING_VARIABLE_STORAGE_POINTER = Overshadowed by an equivalent error, which is not documented by us at the moment
https://github.com/Yakindu/solidity-ide.git into issues_279_280 Conflicts: plugins/com.yakindu.solidity.ui/src/com/yakindu/solidity/ui/quickfix/SolidityQuickfixProvider.xtend
flantony
reviewed
Aug 13, 2019
plugins/com.yakindu.solidity.ide/src/com/yakindu/solidity/ide/internal/CodeActionProvider.xtend
Outdated
Show resolved
Hide resolved
...akindu.solidity.ide/src/com/yakindu/solidity/ide/internal/SolidityIdeCodeActionService.xtend
Show resolved
Hide resolved
Fix platform test for MacOSX.
and fixed a small indentation error for, where FunctionalAssemblyExpressions had their name be followed by a space and not the opening bracket.
Issue 303
Maven Build finally runs (at least locally)
This commit fixes #284
Also extended some quickfixes.
The test coverage for compiler errors, warnings and it's quickfixes, now looks like the following: // Compiler ERRORS String ERROR_CONSTANT_MODIFIER_WAS_REMOVED = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_CALLDATA_FOR_EXTERNAL_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_OR_STORAGE_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATALOCATION_MUST_BE_STORAGE = Not reproducable String ERROR_DATA_LOCATION_MUST_BE_SPECIFIED_FOR_VARIABLE = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_STORAGE_OR_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_FUNCTION_DECLARED_AS_PURE_BUT_MUST_BE_VIEW = Not reproducable String ERROR_FUNCTION_DECLARED_AS_VIEW_BUT_MUST_BE_PAYABLE_OR_NON_PAYABLE = Quickfix tested String ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED = Quickfix tested String ERROR_INVALID_IMPLICID_CONVERSION_TO_ADDRESS_PAYABLE = Quickfix tested String ERROR_MEMBER_TRANSFER_NOT_FOUND_OR_VISIBLE = No Quickfix available String ERROR_NO_VISIBILITY_SPECIFIED = Quickfix tested String ERROR_STATE_MUTABILITY_ONLY_ALLOWED_FOR_ADDRESS = Quickfix tested String ERROR_THROW_KEYWORD_DISALLOWED = Quickfix tested String ERROR_VAR_KEYWORD_DISALLOWED = Quickfix doesn't work because of bug String ERROR_YEARS_IS_DISALLOWED = Quickfix tested String ERROR_DEPRECATED_SUICIDE = Quickfix tested String ERROR_DEPRECATED_SHA3 = Quickfix tested String ERROR_INTERFACE_FUNCTIONS_CAN_NOT_HAVE_MODIFIERS = Quickfix tested String ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE = No Quickfix available // Compiler WARNINGS String WARNING_DEPRECATED_CALLCODE = Overshadowed by an error String WARNING_DEPRECATED_FUNCTION_CONSTRUCTOR = Overshadowed by ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED String WARNING_DEPRECATED_NAMED_FUNCTION_PARAMETERS = Not producable by the compiler String WARNING_DEPRECATED_NAMED_FUNCTION_RETURN_VALUES = Not producable by the compiler String WARNING_DEPRECATED_SHA3 = Overshadowed by ERROR_DEPRECATED_SHA3 String WARNING_DEPRECATED_SUICIDE = Overshadowed by ERROR_DEPRECATED_SUICIDE String WARNING_DEPRECATED_THROW = Overshadowed by ERROR_THROW_KEYWORD_DISALLOWED String WARNING_FILE_NO_PRAGMA_SOLIDITY = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_PURE = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_VIEW = Quickfix tested String WARNING_FUNCTION_UNUSED_PARAMETER = Quickfix tested String WARNING_FUNCTION_VISIBILITY = Overshadowed by ERROR_NO_VISIBILITY_SPECIFIED String WARNING_LOCAL_VARIABLE_UNUSED = Quickfix tested String WARNING_MSG_VALUE_IN_NON_PAYABLE = Overshadowed by ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE String WARNING_SHADOWED_DECLARATION = No Quickfix available String WARNING_SOLIDITY_VERSION_NOT_THE_DEFAULT = Warning seems to be removed by the newer compiler version String WARNING_USSAGE_OF_SEND = Quickfix tested String WARNING_VARIABLE_STORAGE_POINTER = Overshadowed by an equivalent error, which is not documented by us at the moment
This commit fixes #284
Also extended some quickfixes.
The test coverage for compiler errors, warnings and it's quickfixes, now looks like the following: // Compiler ERRORS String ERROR_CONSTANT_MODIFIER_WAS_REMOVED = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_CALLDATA_FOR_EXTERNAL_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_MEMORY_OR_STORAGE_FOR_RETURN_PARAMETER = Quickfix tested String ERROR_DATALOCATION_MUST_BE_STORAGE = Not reproducable String ERROR_DATA_LOCATION_MUST_BE_SPECIFIED_FOR_VARIABLE = Quickfix tested String ERROR_DATA_LOCATION_MUST_BE_STORAGE_OR_MEMORY_FOR_PARAMETER = Quickfix tested String ERROR_FUNCTION_DECLARED_AS_PURE_BUT_MUST_BE_VIEW = Not reproducable String ERROR_FUNCTION_DECLARED_AS_VIEW_BUT_MUST_BE_PAYABLE_OR_NON_PAYABLE = Quickfix tested String ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED = Quickfix tested String ERROR_INVALID_IMPLICID_CONVERSION_TO_ADDRESS_PAYABLE = Quickfix tested String ERROR_MEMBER_TRANSFER_NOT_FOUND_OR_VISIBLE = No Quickfix available String ERROR_NO_VISIBILITY_SPECIFIED = Quickfix tested String ERROR_STATE_MUTABILITY_ONLY_ALLOWED_FOR_ADDRESS = Quickfix tested String ERROR_THROW_KEYWORD_DISALLOWED = Quickfix tested String ERROR_VAR_KEYWORD_DISALLOWED = Quickfix doesn't work because of bug String ERROR_YEARS_IS_DISALLOWED = Quickfix tested String ERROR_DEPRECATED_SUICIDE = Quickfix tested String ERROR_DEPRECATED_SHA3 = Quickfix tested String ERROR_INTERFACE_FUNCTIONS_CAN_NOT_HAVE_MODIFIERS = Quickfix tested String ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE = No Quickfix available // Compiler WARNINGS String WARNING_DEPRECATED_CALLCODE = Overshadowed by an error String WARNING_DEPRECATED_FUNCTION_CONSTRUCTOR = Overshadowed by ERROR_FUNCTION_NAME_EQUALS_CONTRACT_NAME_DISALLOWED String WARNING_DEPRECATED_NAMED_FUNCTION_PARAMETERS = Not producable by the compiler String WARNING_DEPRECATED_NAMED_FUNCTION_RETURN_VALUES = Not producable by the compiler String WARNING_DEPRECATED_SHA3 = Overshadowed by ERROR_DEPRECATED_SHA3 String WARNING_DEPRECATED_SUICIDE = Overshadowed by ERROR_DEPRECATED_SUICIDE String WARNING_DEPRECATED_THROW = Overshadowed by ERROR_THROW_KEYWORD_DISALLOWED String WARNING_FILE_NO_PRAGMA_SOLIDITY = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_PURE = Quickfix tested String WARNING_FUNCTION_STATE_MUTABILITY_VIEW = Quickfix tested String WARNING_FUNCTION_UNUSED_PARAMETER = Quickfix tested String WARNING_FUNCTION_VISIBILITY = Overshadowed by ERROR_NO_VISIBILITY_SPECIFIED String WARNING_LOCAL_VARIABLE_UNUSED = Quickfix tested String WARNING_MSG_VALUE_IN_NON_PAYABLE = Overshadowed by ERROR_MSG_VALUE_ONLY_ALLOWED_IN_PAYABLE String WARNING_SHADOWED_DECLARATION = No Quickfix available String WARNING_SOLIDITY_VERSION_NOT_THE_DEFAULT = Warning seems to be removed by the newer compiler version String WARNING_USSAGE_OF_SEND = Quickfix tested String WARNING_VARIABLE_STORAGE_POINTER = Overshadowed by an equivalent error, which is not documented by us at the moment
Maven Build finally runs (at least locally)
https://github.com/Yakindu/solidity-ide.git into issues_279_280 Conflicts: extensions/theia/.gitignore plugins/com.yakindu.solidity.ide/src/com/yakindu/solidity/ide/internal/SolidityIdeCodeActionService.xtend plugins/com.yakindu.solidity.solc.mac.fragment/META-INF/MANIFEST.MF plugins/com.yakindu.solidity.solc.win.fragment/META-INF/MANIFEST.MF plugins/com.yakindu.solidity.tests/META-INF/MANIFEST.MF
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #280
The test coverage for compiler errors, warnings and it's quickfixes, now
looks like the following: