politoleo / iar

IAR Embedded Workbench Visual Studio Code Extension
22 stars 17 forks source link

settings.json problem #24

Closed gitmek closed 5 years ago

gitmek commented 5 years ago

I'm trying to get the plugin to work, but I am stuck at settings.json

image

It has been working before, but it did not update the paths in MS intellisense json file, so i decided to start over again. - Deleted all .vscode folders, opend my source folder, saved the workspace added iar.json and settings.json and now nothing works. :-( ... Compare with picture Any help appreciated. regards GM

politoleo commented 5 years ago

Hi, ”iar.enabled” : true should be in the user or workspace “settings.json”, could you try?

Da: gitmek notifications@github.com Inviato: mercoledì 22 maggio 2019 20:23 A: politoleo/iar iar@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Oggetto: [politoleo/iar] settings.json problem (#24)

I'm trying to get the plugin to work, but I am stuck at settings.json

[image]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F50925799%2F58198581-d038c780-7cce-11e9-8e30-142acd050697.png&data=02%7C01%7C%7Cc16d0f31a34245331b4b08d6dee290ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941461997909998&sdata=pt4NS1ct%2B7C4uWs2ioBEqn6TWXMVIc%2Bdmd%2BmyM4AMos%3D&reserved=0

It has been working before, but it did not update the paths in MS intellisense json file, so i decided to start over again. - Deleted all .vscode folders, opend my source folder, saved the workspace added iar.json and settings.json and now nothing works. :-( ... Compare with picture Any help appreciated. regards GM

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpolitoleo%2Fiar%2Fissues%2F24%3Femail_source%3Dnotifications%26email_token%3DABTTAN5KIGECF27P542FBSDPWWFRLA5CNFSM4HOW2WY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GVI6BRA&data=02%7C01%7C%7Cc16d0f31a34245331b4b08d6dee290ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941461997919998&sdata=RLXlceRWg%2FPTCVNAFf4aorGCXTLceHWHsfavkDFNC%2BE%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTTANZKZAVI3OB7TTAQARLPWWFRLANCNFSM4HOW2WYQ&data=02%7C01%7C%7Cc16d0f31a34245331b4b08d6dee290ce%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941461997940020&sdata=WE2w6HUkk0BVw2hkT6Bp3GTPnGolPtpbjMHEBJF2oeQ%3D&reserved=0.

gitmek commented 5 years ago

Hi, I did so still i got this problem... image

gitmek commented 5 years ago

I also tried this: image there are no errors in the workspace config file as you can see but c_cpp_properties.json do not get updated

{ "version": 4, "configurations": [ { "name": "IAR", "defines": [ "eeprom=", "flash=", "__no_init=", "__root=" ], "includePath": [], "forcedInclude": [], "cStandard": "${default}", "cppStandard": "${default}" } ] }

politoleo commented 5 years ago

Could you try the same but without using workspace?

Da: gitmek notifications@github.com Inviato: mercoledì 22 maggio 2019 20:59 A: politoleo/iar iar@noreply.github.com Cc: Leonardo politoleo@hotmail.it; Comment comment@noreply.github.com Oggetto: Re: [politoleo/iar] settings.json problem (#24)

Hi, I did so still i got this problem... [image]https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F50925799%2F58201008-5f94a980-7cd4-11e9-9850-3fa15d5f2992.png&data=02%7C01%7C%7C6b6d6248a34f4693d62608d6dee78894%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941483336043872&sdata=c0Dx9T1NeMKp3PZDqFR13xGHAjaMf6HHhrM8NYicMIY%3D&reserved=0

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpolitoleo%2Fiar%2Fissues%2F24%3Femail_source%3Dnotifications%26email_token%3DABTTAN5G5I7YX7XF7RGWII3PWWJWVA5CNFSM4HOW2WY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV77FGY%23issuecomment-494924443&data=02%7C01%7C%7C6b6d6248a34f4693d62608d6dee78894%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941483336053872&sdata=r0jz0S7WKisBJ0ULxdyQNEhehls2ee5Zw7l84J8GHQU%3D&reserved=0, or mute the threadhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTTAN3HRC7A4RXY4UEMCSLPWWJWVANCNFSM4HOW2WYQ&data=02%7C01%7C%7C6b6d6248a34f4693d62608d6dee78894%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941483336063889&sdata=QwXqzXRNGkSsMOynjB1I3D6dPa4wTt7cKALAd5yx%2B00%3D&reserved=0.

gitmek commented 5 years ago

Good Morning! :-) I made a complete new IAR project with all files in one hierarchic folder structure. I opened the top folder in VS Code without saving a workspace. Then edited settings.json and iar.json. - They seem to have no prob. Building with shift+ctrl+b works

But still no c_cpp_properties.json is generated. :'(

politoleo commented 5 years ago

Could you upload the whole folder somewhere so I could have a look? Thank you


From: gitmek notifications@github.com Sent: Thursday, May 23, 2019 11:07:25 AM To: politoleo/iar Cc: Leonardo; Comment Subject: Re: [politoleo/iar] settings.json problem (#24)

Good Morning! :-) I made a complete new IAR project with all files in one hierarchic folder structure. I opened the top folder in VS Code without saving a workspace. Then edited settings.json and iar.json. - They seem to have no prob. Building with shift+ctrl+b works

But still no c_cpp_properties.json is generated. :'(

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpolitoleo%2Fiar%2Fissues%2F24%3Femail_source%3Dnotifications%26email_token%3DABTTAN24G676BCMMYOF44MDPWZNE3A5CNFSM4HOW2WY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBSGUA%23issuecomment-495133520&data=02%7C01%7C%7C8e516513931c4b6b365e08d6df5e13ad%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941992474757823&sdata=Xkez5Vk%2BZ%2B0M6G03Znwf8nHdybHbXiDaC1SjAG65QfU%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTTANZGXFOCK7PHBR35MALPWZNE3ANCNFSM4HOW2WYQ&data=02%7C01%7C%7C8e516513931c4b6b365e08d6df5e13ad%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636941992474767840&sdata=u6yjB%2BNEDCFOF3r4T96LUbI8RqObBnr3gfqyzfTKL%2Bk%3D&reserved=0.

gitmek commented 5 years ago

... Thanks... Had to create an empty c_cpp_properties.json and rebuild the setting with shift ctrl b. voila c_cpp_properties.json got filled up...

next step will be: Testing it with workspace again... :-D

Thanks for your support 👍

gitmek commented 5 years ago

Hi again! I do not get it to run in a workspace... The settings files is buildt, but the c_cpp_properties.json will not get updated.

  1. I opened the root folder of my project
  2. Opend a source file, so that .vscode will be created
  3. Saved the Workspace into the root folder
  4. Added iar.json
  5. Enabeld in the Extension settings workspace: iar: Enabled
  6. Buildt the code-worspace file
  7. No c_cpp_properties.json got created
  8. Clicked on a lightbulb of a header file, so that c_cpp_properties.json is created
  9. re-build the code-workspace file
  10. c_cpp_properties.json is unaltered, nothing added.

I am out of ideas...

image

SecondProject.code-workspace:

{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {
        "iar.enabled": true
    }
}

iar.json:

{
    "version": 1,
    "path": "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 8.0\\",
    "project": "C:\\Data\\SecondProject\\EWARM\\SecondProject.ewp",
    "config": "SecondProject",
    "parallel" : true
}
gitmek commented 5 years ago

Update: The workaround of sbomber (https://github.com/politoleo/iar/issues/18), also applied for this problem. - c_cpp_properties.json will now get updated...

I tried a different method, which may help you when fixing this. I wanted to see if 'Close Workspace' and then reopen the workspace would cause the change to be seen. The answer is yes.

(but just closing and reopening VSCODE did not help for me)

politoleo commented 5 years ago

Good I really think it's an appropriate moment to fix this issue! Thank you


From: gitmek notifications@github.com Sent: Friday, May 24, 2019 9:54:45 AM To: politoleo/iar Cc: Leonardo; Comment Subject: Re: [politoleo/iar] settings.json problem (#24)

Update: The workaround of sbomber (https://github.com/politoleo/iar/issues/18)https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpolitoleo%2Fiar%2Fissues%2F18&data=02%7C01%7C%7Ca37fb18db16a4731344b08d6e01d1732%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636942812872019903&sdata=j5yUezPaGtvFz6auo7uBbUYNAHIoVGH6YvwlTWz7lNI%3D&reserved=0, also applied for this problem. - c_cpp_properties.json will now get updated...

I tried a different method, which may help you when fixing this. I wanted to see if 'Close Workspace' and then reopen the workspace would cause the change to be seen. The answer is yes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpolitoleo%2Fiar%2Fissues%2F24%3Femail_source%3Dnotifications%26email_token%3DABTTAN5FMJXHJ2NXXHYDV7DPW6NMLA5CNFSM4HOW2WY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWEOLCI%23issuecomment-495510921&data=02%7C01%7C%7Ca37fb18db16a4731344b08d6e01d1732%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636942812872029908&sdata=BvkcMxBaqZFGoYdJ5U%2BK7iHCP776SjzlZSoTGsPnQZk%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABTTAN6YOGDOLQTYH4WBUODPW6NMLANCNFSM4HOW2WYQ&data=02%7C01%7C%7Ca37fb18db16a4731344b08d6e01d1732%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636942812872039919&sdata=Feh7x7fWY8yVZA2iE6YO8fO%2B9CrcmJ3egSG8%2B%2BvuKws%3D&reserved=0.

politoleo commented 5 years ago

Fixed with 1.5