Skip to content
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

Error while building the application #1646

Closed
Sarthak9504 opened this issue Jun 2, 2024 · 7 comments · Fixed by #1647
Closed

Error while building the application #1646

Sarthak9504 opened this issue Jun 2, 2024 · 7 comments · Fixed by #1647

Comments

@Sarthak9504
Copy link
Contributor

Summary:

There is an error in the file EditPasswordScreen.kt inside the password package.
The issue is while calling the MifosScaffold Composable function where one of the parameters is the RowScope.() -> Unit. The error message is as follows:
Type mismatch: inferred type is RowScope.(Any?) -> Unit but RowScope.() -> Unit was expected
Cannot infer a type for this parameter. Please specify it explicitly.
Expected no parameters
there is one more error but it is not practical to put it here.

Steps to reproduce:

Try building the application.

Expected behavior:

The application should build smoothly without any error

Observed behavior:

What did you see instead? Describe your issue in detail here.

Please help me with this I wanted to contribute to the project. I am not able to figure out what's the error. Thank you.

@PratyushSingh07
Copy link
Collaborator

Unable to replicate this. Try cleaning and then rebuilding the project

@Sarthak9504
Copy link
Contributor Author

Unable to replicate this. Try cleaning and then rebuilding the project

Hello, honestly I have tried a bunch of things cleaning, Invalidating caches and rebuilding but thats not working the error is associated with the MifosScaffold Composable. Also, its not only causing problem in the files I mentioned but a bunch of other files too. Here is a ss of the IDE.
Screenshot 2024-06-03 005205

@PratyushSingh07
Copy link
Collaborator

Just running the application should have worked.
If not then I think that This can be fixed by explicitly encapsulating with scaffoldContent

@Sarthak9504
Copy link
Contributor Author

I have recently updated the project so might be there have been made changes to the MifosScaffold Composable which are not considered in the other files where the function is used. Because there is also an error related to this parameter :
actions: @composable RowScope.() -> Unit = {}. Please can you confirm that everything's fine from your side I am trying since yesterday

@Sarthak9504
Copy link
Contributor Author

@PratyushSingh07 Can you please check the files I have mentioned.

@PratyushSingh07
Copy link
Collaborator

I checked it yesterday, everything was fine from my end. Join the slack channel and maybe I'll get on a call with you tonight

@Sarthak9504
Copy link
Contributor Author

Ohh, okay. I'll join the channel. Thank you.

therajanmaurya pushed a commit that referenced this issue Jun 5, 2024
…osScaffold.kt Composable (#1647)

Issues Fix
 Fixes #1646

 Description
 The EditPasswordScreen.kt had some errors related to the composable MifosScaffold.k where the scaffold content was not being passed as one of the arguments required by the Composable. The error was fixed along with teh help of @PratyushSingh07.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants