[HI_ENABLE_CUSTOM_NODE_LOCATION] includes.cpp path issue



  • @Christoph-Hart I am currently facing an issue when building Hise for exporting custom meta-nodes

    includeFilePathIssue.jpeg

    I tried to force the path with the same I put in Hise/preference/Custom node path but it still doesn't compile.

    includeFilePathIssue2.jpeg

    Also in the doc, it is written Export graph as Cpp module, but there is no such thing in scriptnode. So I am using either Export as custom Cpp class or Export as project Cpp class (I don't know the difference). The Cpp is exported in my custom location and the includes.cpp is updated. So I think there's only the path issue that prevents me from using my custom meta-nodes, unless I don't understand, which is more likely to happen 🙂



  • I also get errors trying to compile HISE with hardcoded nodes. I think it's not because of a path issue but the HI_ENABLE_CUSTOM_NODE_LOCATION activation in general.

    I followed the documentation, but had no success.

    Screenshot 2019-09-22 at 00.26.03.png



  • @ustk: You don't need to paste in the path in this file manually, if you apply the settings in HISE with the path, it writes it into this file (if you've setup the repository folder obviously). However I had this file under version control, so when you pulled the latest state, it might have been overriden by my folder. This is sorted now, the file is being ignored. I'd suggest you pull again, then reset the folder and try again (it "worked" for clumsybear which I assume hasn't set this up before pulling)

    @clumsybear: Yeah, that was actually a limitation of the code generator, who only allowed nesting of nodes up to level 7 and the lines that don't compile are nested in 9 levels.

    I've changed this now to a completely dynamic code-generation using the latest hacks in variadic template programming :), however it breaks the code that was previously generated.

    So either you discard every code being generated by scriptnode and repeat the export process (the exporter will now use the correct new syntax), or you can RegEx your way out of this mess (like i just did) by applying this RegEx search and replace operation on every generated CPP file:

    //Search: 
    "get<(.*)>\(obj\)"
    
    // Replace: 
    "FIND_NODE(obj, $1)"
    


  • @Christoph-Hart

    Ok, I pulled the latest scriptnode version and redid the same process.

    now I'm getting this build error:
    Screenshot 2019-09-22 at 00.27.16.png



  • @Christoph-Hart said in [HI_ENABLE_CUSTOM_NODE_LOCATION] includes.cpp path issue:

    I've changed this now to a completely dynamic code-generation using the latest hacks in variadic template programming :), however it breaks the code that was previously generated.

    Is my error a result of the issue you mentioned?



  • Is my error a result of the issue you mentioned?

    Yes, but the other one 🙂

    Try setting a new folder in for the custom node path (or delete the current one, apply the settings and set it back) and try again. The last commit wiped this file (but from now on it will be ignored by any git action).



  • ok, it looks like StaticNodeWrappers.h has problems compiling now after assigning a new Global Node Path with the latest scriptnode build

    Screenshot 2019-09-22 at 13.38.13.png



  • @clumsybear @Christoph-Hart Same here, was working then I got this error too...



  • Hmm, can you send me an example scriptnode patch that shows this behaviour? The one's I have so far worked fine, but maybe there's a construct that I am not using that fails to generate valid code.



  • @Christoph-Hart

    HiseSnippet 3107.3oc6b07bajTEejkG+gxlkjMAHG3vrlTENEItjjc1PQHX4OypZiiEVNIqOkp8nVRS44K5YFaqMjSvANPUbgKPQAbjSTbDNPE8G.opsp7OvRwIt48BG3xxq6dFM8LZj7XEaGYuVI1VS28a5e86q98Zo2TgXohcbrHRYlbyV1XoLumb0VltMWpIRyTp7xzFdFZWrSSjMlHsXKajiCtlTlLYeHcDYlbTI1qCleQjNxTEG1jjzSszTwORyPyMr0Jk9DMc8UQ0vapYHL54JUV0xbIKcKO.MYkyKYiT2A0.+XDcXiHKkYrUpo4ZQp5hbwNRYFcQqZsp1zZOS93epli115X5EEjpB2HdyqZoWihX56kVpoldsJAqZGIoLxUB4AY47fqKulVMsNsGxKtBqCkPJD4GYFoevqfH7xmH7JjD7xH.uQ4v6pxUUIZ1tg8Pw1kjKa5hI0QfHPDV7wJMxqFWdIKXDltyXf1AuJAtnCESWLe9aqTHe9ac+Km6x4.AgiqxtHhxxK9PkGn3R7vrND6Z8Z0VYWrIzMSiYlFX2UpWGq5N8T74TY0OsvTwugTpLQ.e.nK.O.kKYYXaYBWL8TK545ZYBTJRFclREcEiR2mXZscgdRBqWJA7+0Aay3PGloKwReIjt91fh3zPmqadq6GLVMScMSrRcOSUWMKSEV2SqFbuuML65d3ak6E4TfWZ0Ull0fxCdP9aovaj9BlEGKXBsIZT.A2EkOFQLrL0Tc9gJSo788uOr4MfHeNOEkK35Rz11yEOcPiqos+sUtiunLfBNefRvSo2to6pe+2R+C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D47yjWBhPT64ppT18c.9SxzTb.nY1Afl4F.Zt6.PyGM.zbuAflePeogtYDMFKCtoHzPkUXogkIC+4dDSqW5
    


  • @Christoph-Hart It happens when rebuilding Hise after creating a custom node 🤔



  • Yes, just like I thought: there are two things which cause problems:

    • remove the fft module at the end (you won't need it anyway)
    • bypassing a container with a parameter currently breaks compilation, so until I fix that, remove the connection that bypasses the distortion chain.

    But these are good examples to make the code generator more stable, so if you hit more issues, keep 'em coming 🙂



  • @Christoph-Hart Ok cool... No worries, we'll dig 🙂



  • @Christoph-Hart Perfect! 😄

    Thanks, it works now!


Log in to reply
 

8
Online

517
Users

1.9k
Topics

14.6k
Posts