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

changes for Linux #59

Merged
merged 13 commits into from
Jun 27, 2024
Merged

changes for Linux #59

merged 13 commits into from
Jun 27, 2024

Conversation

bgn42
Copy link
Collaborator

@bgn42 bgn42 commented Jun 20, 2024

No description provided.

Copy link

github-actions bot commented Jun 20, 2024

Test Results

  6 files  ±0   54 suites  ±0   4s ⏱️ ±0s
160 tests ±0  160 ✅ ±0  0 💤 ±0  0 ❌ ±0 
960 runs  ±0  960 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 7a5341a. ± Comparison against base commit ab16c09.

♻️ This comment has been updated with latest results.

@jkrech
Copy link
Member

jkrech commented Jun 20, 2024

On macOS something goes wrong:

csolution run -g CubeMX CubeMX.csolution.yml
csolution-examples/CubeMX/tmp/CubeMX/MyBoard/Debug/CubeMX.cbuild-gen-idx.yml - info csolution: file is already up-to-date
csolution-examples/CubeMX/tmp/CubeMX/MyBoard/Debug/CubeMX.Debug+MyBoard.cbuild-gen.yml - info csolution: file is already up-to-date
info csolution: generator 'CubeMX' for context 'CubeMX.Debug+MyBoard' reported:
Launching STM32CubeMX with  csolution-examples/CubeMX/STM32CubeMX/MyBoard/STM32CubeMX/STM32CubeMX.ioc
fork/exec csolution-examples/CubeMX/STM32CubeMX/MyBoard/cbridge: no such file or directory
error csolution: executing generator 'CubeMX' for context 'CubeMX.Debug+MyBoard' failed

I think the file to look for is not cbridge butcbridge.cgen.yml

@bgn42
Copy link
Collaborator Author

bgn42 commented Jun 21, 2024 via email

@jkrech jkrech removed the request for review from DavidLesnjak June 21, 2024 11:57
@jkrech
Copy link
Member

jkrech commented Jun 21, 2024

a) MacOS launching with ioc file present, launches STM32CubeMX and cbridge daemon
b) cbridge daemon does not recognise change on .mxproject and no cgen.yml gets generated
c) If no ioc file is present no STM32CubeMX gets launched, there must be something wrong with the invocation. Please add log output.

cbridge tmp/CubeMX/MyBoard/Debug/CubeMX.cbuild-gen-idx.yml  --verbose
Command line: [tmp/CubeMX/MyBoard/Debug/CubeMX.cbuild-gen-idx.yml]
Reading generator.yml file: '/Users/jkrech/cmsis-toolbox/etc/global.generator.yml'
Reading cbuild.yml file: 'tmp/CubeMX/MyBoard/Debug/CubeMX.cbuild-gen-idx.yml'
Writing CubeMX project file /Users/jkrech/project/CubeMX/csolution-examples/CubeMX/STM32CubeMX/MyBoard/project.script
Took 2.402458ms

@bgn42
Copy link
Collaborator Author

bgn42 commented Jun 21, 2024

a) finally 👍
b) a change on .mxproject cannot be detected because it is deleted an created new. A change will be detected on the .ioc file and, after 4 changes the presence of a new .mxproject will be detected. This somehow works different with CubeMX on macOS. I'll add more debug output to find the difference
c) I'll also add debug output

reduced ioc change count to at least 2
cmd/main.go Fixed Show fixed Hide fixed
@jkrech jkrech self-requested a review June 27, 2024 12:15
Copy link

codeclimate bot commented Jun 27, 2024

Code Climate has analyzed commit 7a5341a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 1.4% (35% is the threshold).

This pull request will bring the total coverage in the repository to 37.3% (-0.9% change).

View more on Code Climate.

Copy link
Member

@jkrech jkrech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkrech jkrech merged commit 362be2c into main Jun 27, 2024
20 checks passed
@jkrech jkrech deleted the LinuxRun branch June 27, 2024 12:26
jkrech added a commit that referenced this pull request Jun 28, 2024
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 this pull request may close these issues.

[cbridge] Launch, daemon and cgen.yml file update do not work on Linux and macOS
2 participants