Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Failed to generate IntelliSense configuration with STM8 Core #1489

Closed
0x0fe opened this issue Apr 9, 2022 · 18 comments
Closed

Failed to generate IntelliSense configuration with STM8 Core #1489

0x0fe opened this issue Apr 9, 2022 · 18 comments
Labels
needs-more-info More details about this issue are needed for it to be actionable. stale

Comments

@0x0fe
Copy link

0x0fe commented Apr 9, 2022

To reproduce the issue, install STM8 core https://github.com/stm32duino/Arduino_Core_STM8 from the board manager, select any example, one of the two boards as target, and hit "Verify".

Verification...
[Warning] Failed to generate IntelliSense configuration.

Is there a way to get some log? no long on console(s) no log in the build directory... We really shoudl get more meaningful debug on the verify and intellisense because it does fail and to fix it we have to know why.

I did my best to recreate a c_cpp_properties.json but it did not solve the problem.
N.B. the target here is a custom target, but the problem is exactly the same with the targets provided with the core.

{
    "configurations": [
        {
            "name": "Arduino",
            "compilerPath": "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\cxppstm8\\4.1.3\\cxppstm8",
            "compilerArgs": [
                "-gh",
                "-si",
                "-sd",
                "+proto",
                "+split"
            ],
            "intelliSenseMode": "gcc-x64",
            "includePath": [

                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\cxppstm8\\4.1.3\\\\hstm8++", 
                "C:\\XXXX\\XXXX\\XXXX\\FIRMWARE\\BS_NPD01_STM8_FW_V0_1", 
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\system\\Drivers\\STM8Lxx_StdPeriph_Driver", 
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\system\\Drivers\\STM8Lxx_StdPeriph_Driver\\inc", 
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\system\\Drivers\\STM8Lxx_StdPeriph_Driver\\src",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\cores\\arduino\\stm8",                
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\variants\\NPD01_8L052C6",

                
                "C:\\Users\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\cxppstm8/4.1.3\\Hstm8",
                "C:\\Program Files (x86)\\Arduino\\hardware",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages",
                "C:\\Users\\xxxx\\Documents\\Arduino\\hardware",
                "C:\\Users\\xxxx\\Documents\\Arduino\\libraries",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\cores\\arduino",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\libraries\\Wire\\src",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\cores\\arduino\\stm8",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\cxppstm8\\4.1.3\\Hstm8++",
                "C:\\Users\\xxxx\\Documents\\Arduino\\libraries\\AsyncDelay\\src",
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\system\\Drivers\\STM8Lxx_StdPeriph_Driver\\inc"
                 

            ],
            "forcedInclude": [
                "C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm8\\1.0.0\\cores\\arduino\\Arduino.h"
            ],
            "cStandard": "c11",
            "cppStandard": "c++11",
            "defines": [
                
                "__CSMC__",
                "STM8Lxx",
                "F_CPU=16000000",
                "ARDUINO=10819",
                "ARDUINO_NPD01_8L052C6",
                "ARDUINO_ARCH_STM8",
                "BOARD_NAME=\"NPD01_8L052C6\"",
                "__arm__",
                "STM8L05X_MD_VL"
            ]
        }
    ],
    "version": 4
}
@github-actions github-actions bot added the triage New issues that have not been reviewed. label Apr 9, 2022
@BelKed
Copy link
Contributor

BelKed commented Apr 10, 2022

You can get more verbose log by setting arduino.logLevel to verbose:

{
  "arduino.logLevel": "verbose"
}

@0x0fe
Copy link
Author

0x0fe commented Apr 10, 2022

well, except it doesnt work.

image

EDIT: i added it to settings.json and now it works, finally, however there is zero log on what causes the intellisense error, which is the concern here, the log for build is nice, but build was working anyway.

image

image

@bikekoala
Copy link

same +1

@0x0fe
Copy link
Author

0x0fe commented Apr 26, 2022

same +1

i guess we need to fix it ourselves, since neither microsoft nor ST seems interrested to help

@nya3jp
Copy link
Contributor

nya3jp commented Apr 28, 2022

You may want to try #1494. It fixes the issue for m5stack for me.

@0x0fe
Copy link
Author

0x0fe commented Apr 28, 2022

yes, i did not think of it, but it is a common problem indeed, I'll give a try and not thank microsoft nor ST for the non existing support

@0x0fe
Copy link
Author

0x0fe commented Apr 28, 2022

ST, a company which probably lost a huge part of it market share with the disaster of last months (welcome 1000% increase on 10 year old MCU), but still hasn't understood the importance of support. i feel like it's going to be a (well desserved) "good riddance" soon

@benmcmorran
Copy link
Member

Hi @0x0fe. I'm uable to reproduce this issue because I don't have a license for the compiler used by the STM8 tools. However, based on the earlier discussion #1494 may fix your issue, which will be included in an upcoming release. You can try it now by installing the VSIX manually from this CI build. Does that fix your issue?

image

@benmcmorran benmcmorran added needs-more-info More details about this issue are needed for it to be actionable. and removed triage New issues that have not been reviewed. labels Apr 29, 2022
@0x0fe
Copy link
Author

0x0fe commented Apr 30, 2022

Hi @0x0fe. I'm uable to reproduce this issue because I don't have a license for the compiler used by the STM8 tools. However, based on the earlier discussion #1494 may fix your issue, which will be included in an upcoming release. You can try it now by installing the VSIX manually from this CI build. Does that fix your issue?

image

Thank you for checking on the issue. I am going to try it soon when i have a chance to get back at this design, regarding the STM8 compiler "license", I think you can request one anytime here (it is automated via email) :
C:\Users\user\AppData\Local\Arduino15\packages\STMicroelectronics\tools\cxppstm8\4.1.3\RegArdui.exe

@0x0fe
Copy link
Author

0x0fe commented Apr 30, 2022

image
Since there is a VSIX i gave a try, installed the VSIX from the contextual menu of extension pane on left side. Now the "inderterminate" progress bar is running since a good 10 minutes and going, nothing has been done, it probably failed at the beginning but since there is no progress report of any kind anywhere it is left to anyone's guess. VScode is just stuck doing nothing, in loop, forever. So i guess i will not be able to test wether the fix works.

As a side note, when the user initiates an action such as installing an extension he expects a feedback on what is going on, wether it failed or succeeded, and that a timeout will prevent the whole application be be stuck forever if the action did fail, pretty basic UI concept but not obvious for everyone apparently.

@0x0fe
Copy link
Author

0x0fe commented Apr 30, 2022

I had to quit completely VScode (force quit) then i restarted it, retried the VSIX installing, and it worked. This kind of buggy inconsistence is pretty consistent with microsoft style i would say.

@0x0fe
Copy link
Author

0x0fe commented Apr 30, 2022

well, sadly it not only did not solve the problem, it also completely broke the extension, the "verify" command does not exist anymore, cannot even build.

It is also burning a lot of CPU cycles when i open the directory, without any report in OUTPUT, it is quite not acceptable to have sudden huge CPU usage without any justification or report.

image

@0x0fe
Copy link
Author

0x0fe commented Apr 30, 2022

image

@benmcmorran
Copy link
Member

benmcmorran commented Apr 30, 2022 via email

@github-actions
Copy link

This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed.

@github-actions github-actions bot added the stale label May 31, 2022
@benmcmorran
Copy link
Member

Hi @0x0fe. v0.4.12 of the extension available on the VS Code marketplace, which fixes the activation issues described above. Let me know if you are still having issues with STM8 development. Otherwise, this issue will be automatically closed.

@github-actions github-actions bot removed the stale label Jun 6, 2022
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Jul 6, 2022
@github-actions
Copy link

This issue has been automatically closed due to inactivity. If you are still experiencing problems, please open a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-more-info More details about this issue are needed for it to be actionable. stale
Projects
None yet
Development

No branches or pull requests

5 participants