Error 'Function "compiledC" not found!' in deployed module using tutorial #1193
Replies: 12 comments
-
Posted at 2018-09-22 by @allObjects Short answer: works as designed. Long answer will explain why module code cannot include C source. Will provide link to long answer in a future post. Edit: there is some misunderstandings going on... I interpreted the line
as being executed in the console, because it has the leading |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-22 by Robin Sat 2018.09.22
Under the same heading from documentation link in #1 above:
My belief is that the time taken to document the process wouldn't have been done, if it wasn't in fact possible. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-23 by @allObjects From where is the Another question I have is: I've seen this expression
What is the second part of 'between'? Could you give me a screenshot of (or complete copy from) Espruino Web IDE editor pane? I have the feeling not all details are shown in the post to assess the situation, because it does not matter from where IDE uploader (not the console or Espruino interpreter on the board) gets the module to send it to the C compiler service, get the compile code back, and upload it (with a JS wrapper) to the board. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-23 by Robin Sun 2018.09.23
See #1 fix under EDIT
See: http://www.espruino.com/Writing+Modules comment, just below first blue code block.
> re: 'I have the feeling not all details are shown' Two lines of code to access the module (#1) and one could also load/view the deployed module into a browser by using the URL within the require() declaration. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by @allObjects @robin, now I understand why it goes side-ways for you: On Writing and Submitting Modules (or changes), it says:
which means something else in regard to the To test out your module, we'd suggest that you copy it verbatim into the right-hand side of the Web IDE, with the line This reading (interpretation) is corroborated by the code example just above this text. For your example, the working code reads:
Take a shot at it (...cannot guarantee for the C part... ;) ) Now we have the between out of the way, let's look what it actually did: The 2nd It is not about insisting on being as complete and detailed as possible in the forum. It is for everyone on the forum who wants to help, understand the issue and how come the issue in order to find a solution to overcome what ever road blocks. Everyone works out of their context and sometimes this context is more fare from than close to common, especially when coming from all walks of IT.. So please accept your questioning as the expression of being helpless to provide help... ;-) Every issue is an opportunity... and in this case better phrasing and may be providing the example literally would prevented the rabbit trail with hole as trap at end. Looking forward to more conversations from you. - aO |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by @gfwilliams Has something changed? I just ran the code you're using:
and it works perfectly for me. What IDE version are you using? If you've installed an older IDE on Windows and not updated it in a while then modules won't get parsed for compiled code. However if your IDE is up to date then they will be. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by Robin Mon 2018.09.24 @allObjects, not having any issue with the development of a module running in the IDE. It's the deployment part. Gordon understood what the issue is. Thought the title 'in deployed module' was explicit enough. Thanks for the clarification however. Incidentally, works either with or without the second occurrence. and, . . . who would have guessed we would have had so much fun over a comma!!? ROTFLOL |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-24 by Robin Mon 2018.09.24
No. I just ran it again, and get the same error.
What is "in a while" mean to you? A 'while' to me is a year or more. But, as I started up this new phase of development, I installed the latest version 68.6 around five to eight weeks ago, right off the link on the Espruino site. Haven't seen any pressing announcements to upgrade since then, so had no need to do another install. Where is the version change log for the native IDE? https://github.com/espruino/EspruinoWebIDE/blob/gh-pages/README.md did find the one for Espruino, but not the IDE If this is part of the issue, I'd like to see if there were other changes that are affecting my progress here. Such as folder mapping or module retrieval, for instance. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-25 by @allObjects having this code - from post #5 -
in local on level 0 and working - like with
as next piece of code as uploaded (or issued in console after uploading), defies gravity... and leaves me speechless... and so does '...running in the IDE' and '...Incidentally, works either with or without the second occurrence'. ...obviously writing I still can and therefore this post ;-) ... just not talking... talking would be useless anyway since it is not an audio forum ;-) --- Again: '... w/ or w/o second occurrence...' says that there is a first occurrence... and I can tell you that putting the first occurrence w/ or w/o second in module code and pull the module in with May be we should take a break from this thread and resume at a later time. PS: Writing about how modules work is back on the plate... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-25 by @gfwilliams
Then yes, it's time to upgrade :) The 'native' version is the only one without an update system - the other IDEs (Chrome app, or online) would have auto-updated themselves. It's definitely worth updating your Pico firmware to a cutting edge build if you haven't already as well as I made some changes to the firmware to make USB uploads more stable after you had those issues. There is no ChangeLog on the IDE I'm afraid - you'll just have to look at the Git logs for: https://github.com/espruino/EspruinoWebIDE/commits/gh-pages Just to add that as @allObjects says, you need to be careful with repeated |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-26 by Robin Tue 2018.09.25 For the record: There have never been any references on my part to placing One could re-read #1 and load the deployed module in a browser to verify.
There was no need for me to even post that. The tutorial is fine and explains the necessary testing process. Did that for your benefit from your insistence #4 that I post code to review the testing of a pre-deployed module as explained in the tutorial.
It is being misunderstood which code snippet goes with which situation. The pre-deployed test file or the two lines of code calling the deployed module. The discussion started on the deployed code issue, for which there is the link to actually see what code lines are there. The tutorial for this part was fine and I had the working editor side pre-deployed 'wrapped' module working as indicated in #1. The responses that I see, should be about solving the deployed situation, not the testing of the pre-deployed 'wrapped' module in the editor window for which I thought you cleared up the comma-'and' reference. and to add, this has always worked as I pointed out in #1. In any event, Gordon validated and presumes a solution in #7 above. Hint: It's not the code.
I was holding off performing either upgrade, until I am convinced that the situations I'm seeing are other than logic issues. Once upgraded, it will be next to impossible to rule out what is causing these headaches. Didn't want to throw in more levels of combinations and permutations in the mix to muddy the waters. I'm still seeing IDE hangs regularly, which can only be fixed by powering down and closing the IDE and the ongoing issue where uploading and syntax checking gets slower and sllooowwwwer on large files edited in the right-hand pane. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-26 by @gfwilliams
With the old IDE? That makes sense, because I fixed something a month or so ago that could cause hanging. IMO you're better off starting from scratch - update the IDE, update your Pico's firmware to cutting edge - and see what happens then. It'll make your life way easier. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-09-22 by Robin
Fri 2018.09.21
Using code snippet under heading 'Adding code to a module'
Snippet works when using in a monolithic file between
var exports={};
output is
as expected
Verifying
But, when deployed to GitHub
Code file
Deployed module
EDIT Sun 2018.09.23 From #4 below > 'From where is the > sign come in'
Forum post edit error - quote button slip instead of code button - the fix - for right editor pane
Beta Was this translation helpful? Give feedback.
All reactions