brackets-cuwire icon indicating copy to clipboard operation
brackets-cuwire copied to clipboard

List of boards is stuck on loading....

Open lorneb opened this issue 10 years ago • 15 comments

Using a Mac, Have Arduino IDE 1.0.6 which i believe is the last one, and Brackets says it's up to date. I Installed extension via extension manager option, the boards drop down just say loading... and thats it. Port drop down does show list of ports.

anything else I can try? Thanks

lorneb avatar Feb 07 '15 12:02 lorneb

This is a bug, list must be populated or dialog with runtime selection must pop up. Thank you!

But:

actually, brackets-cuwire supports only Arduino IDE 1.5.8+. This is due various reasons:

  1. Arduino 1.5 and later have support for various 3rd party hardware;
  2. Arduino team is not accepting patches for Arduino 1.0.x

To make brackets-cuwire work for you, you can download and install Arduino 1.5.8 and put it into separate location. Then, click on a gear icon and paste Arduino 1.5.8 folder location into appropriate input. Click OK.

apla avatar Feb 07 '15 15:02 apla

Hi,

I have the same problem, I can't populate the boards drop down and also can't compile the text. Running Windows 7 (64bit), installed Arduino 1.5.8 and add the the location into the cuwire setting. I tried to reinstall everything as well but no change.

thanks

matjes- avatar Feb 08 '15 20:02 matjes-

@matjes- , I've fixed obvious things and will release update in few days. can you copy yours console messages to me?

Those messages is available via Debug > Show Developer Tools menu, then Console tab. Thank you!

apla avatar Feb 08 '15 21:02 apla

Thanks, looking forward to it.

Here are the error messages in the console:

[NodeDomain] Error loading domain "clang": Unable to load one of the modules: C:/Users/matjes/AppData/Roaming/Brackets/extensions/user/brackets-cuwire/completion/../node/clang-domain.js, reason: Cannot find module 'libclang'/utils/NodeDomain.js:148 (anonymous function) main.js:556 Uncaught TypeError: Cannot read property '0' of undefined NodeDebugUtils.js:117 [node-log 10:01:36 PM] bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* NodeDebugUtils.js:117 [node-log 10:01:36 PM] bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).* main.js:104 [brackets-cuwire-node] Available ports: Array[0]

matjes- avatar Feb 08 '15 21:02 matjes-

I'm also getting the "clang" error message:

[NodeDomain] Error loading domain "clang": Unable to load one of the modules: C:/Users/JArnold/AppData/Roaming/Brackets/extensions/user/brackets-cuwire/completion/../node/clang-domain.js, reason: Cannot find module 'libclang'

mochachocha1981 avatar Feb 09 '15 15:02 mochachocha1981

@mochachocha1981 clang issue is different. I tried to publish brackets plugin as soon as possible and added clang loading by mistake. clang is planned for next big release

apla avatar Feb 09 '15 15:02 apla

@matjes- @lorneb just released update. please let me know if update fixed issue for you

apla avatar Feb 10 '15 14:02 apla

Hi, it still doesn't work:

NodeSocketTransport - start /C:/Users/matjes/AppData/Roaming/Brackets/extensions/user/brackets-cuwire/main.js:108 [brackets-cuwire-node] Available ports: Array[1] extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 6:29:26 PM] bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 6:29:26 PM] bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).* /C:/Users/matjes/AppData/Roaming/Brackets/extensions/user/brackets-cuwire/main.js:787 Object

matjes- avatar Feb 10 '15 17:02 matjes-

I just uploaded debug plugin version to check what's going on

Please uninstall old version, download test release, then install via Extension Manager, button "drag .zip here or install via url" at panel footer.

https://github.com/apla/brackets-cuwire/releases/tag/v%2F0.5.3-test1

Thank you!

apla avatar Feb 12 '15 09:02 apla

Here are the console messages:

debug ioWait++ 1 version C:\Program Files\Arduino
debug ioWait++ 1 hardware C:\Program Files\Arduino
debug ioWait++ 1 libraries C:\Program Files\Arduino
debug ioWait++ 2 version %HOME%\Documents\Arduino
debug ioWait++ 2 hardware %HOME%\Documents\Arduino
debug ioWait++ 2 libraries %HOME%\Documents\Arduino
debug ioWait-- 1 version %HOME%\Documents\Arduino
debug ioWait-- 1 libraries %HOME%\Documents\Arduino
debug C:\Program Files\Arduino version: 1.5.8 modern: true
debug ioWait-- 0 version C:\Program Files\Arduino
debug ioWait++ 2 libraries C:\Program Files\Arduino\hardware\arduino\sam\libraries
debug ioWait++ 3 libraries C:\Program Files\Arduino\hardware\arduino\avr\libraries
debug ioWait-- 2 libraries C:\Program Files\Arduino
debug ioWait-- 1 hardware C:\Program Files\Arduino
debug ioWait-- 1 libraries C:\Program Files\Arduino\hardware\arduino\sam\libraries
debug ioWait-- 0 libraries C:\Program Files\Arduino\hardware\arduino\avr\libraries

debug ioWait++ 1 version C:\Program Files\Arduino
debug ioWait++ 2 hardware C:\Program Files\Arduino
debug ioWait++ 1 libraries C:\Program Files\Arduino
debug ioWait++ 2 version %HOME%\Documents\Arduino
debug ioWait++ 3 hardware %HOME%\Documents\Arduino
debug ioWait++ 2 libraries %HOME%\Documents\Arduino
debug ioWait-- 1 version %HOME%\Documents\Arduino
debug C:\Program Files\Arduino version: 1.5.8 modern: true
debug ioWait-- 0 version C:\Program Files\Arduino
debug ioWait-- 1 libraries %HOME%\Documents\Arduino
debug ioWait++ 2 libraries C:\Program Files\Arduino\hardware\arduino\sam\libraries
debug ioWait++ 3 libraries C:\Program Files\Arduino\hardware\arduino\avr\libraries
debug ioWait-- 2 libraries C:\Program Files\Arduino
debug ioWait-- 2 hardware C:\Program Files\Arduino
debug ioWait-- 1 libraries C:\Program Files\Arduino\hardware\arduino\sam\libraries
debug ioWait-- 0 libraries C:\Program Files\Arduino\hardware\arduino\avr\libraries

matjes- avatar Feb 13 '15 17:02 matjes-

Sorry for the comment edit, now it contains only relevant info.

Seems cuwire chokes at %HOME%\Documents\Arduino\hardware folder. I'll try to repeat bug on my test machine.

apla avatar Feb 14 '15 07:02 apla

Hi, that makes sense. Under windows the hardware folder in your "home" directory is empty by default. You can add new hardware there like "Sparkfun" controller. I copied the content of the hardware folder from the main installation into the "home" location and it populates the dropdown. I tried to compile the "blink" example from Arduino but a "failed" pops up. Not sure what this is about. Btw. is the "Programmer" dropdown also supposed to be populated with something by default? There not even a "loading..." shows up.

[node-log 12:53:13 PM] bad config for: recipe.size.regex.data ^(?:.data|.bss|.noinit)\s+([0-9]+).* extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] bad config for: recipe.size.regex.eeprom ^(?:.eeprom)\s+([0-9]+).* extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug ioWait-- 0 hardware C:\Users\matjes\Documents\Arduino extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug ioWait-- 3 libraries C:\Program Files\Arduino\hardware\arduino\sam\libraries extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug ioWait-- 2 libraries C:\Users\matjes\Documents\Arduino\hardware\arduino\sam\libraries extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug ioWait-- 1 libraries C:\Program Files\Arduino\hardware\arduino\avr\libraries extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug ioWait-- 0 libraries C:\Users\matjes\Documents\Arduino\hardware\arduino\avr\libraries extensions/default/DebugCommands/NodeDebugUtils.js:117 [node-log 12:53:13 PM] debug folders information { 'C:\Program Files\Arduino': { platform: { 'arduino:sam': true, 'arduino:avr': true }, boards: { 'arduino:sam': true, 'arduino:avr': true }, programmers: { 'arduino:sam': true, 'arduino:avr': true }, runtime: '1.5.8', modern: true }, 'C:\Users\matjes\Documents\Arduino': { platform: { 'arduino:sam': true, 'arduino:avr': true }, boards: { 'arduino:sam': true, 'arduino:avr': true }, programmers: { 'arduino:sam': true, 'arduino:avr': true } } }

matjes- avatar Feb 14 '15 11:02 matjes-

Just released new version, 0.5.3. Please update plugin using Brackets Extension Dialog. CLI is also updated to version 0.5.9.

Please check if issue persists.

apla avatar Mar 08 '15 21:03 apla

I think I am having a similar problem. I am using cuwire 0.5.3 and Arduino 1.6.2. When I click the drop down for the board, I get a blank list as shown below. screen shot 2015-04-28 at 9 12 01 pm

Edit: So after having some problems with other plugins which use Arduino, it seems that the new board file storage has altered how these programs work. Hopefully an update will be pushed to address this.

JayPalm avatar Apr 29 '15 04:04 JayPalm

Using a mac running OS X 10.10.5, and bracket version is v1.4, still got stuck on loading boards. Looking forward to see your work with a fixed plugin.

LockonS avatar Sep 04 '15 04:09 LockonS