B4J Question [BANano v3 RC1] Problem Copying?

Discussion in 'B4J Questions' started by Mashiane, Jun 6, 2019.

Tags:
  1. Mashiane

    Mashiane Expert Licensed User

    Ola

    Just testing compilation using BuildAsB4XLib for a lib.

    Whilst it says the b4xlib is created, on the b4j log it shows an error "Problem copying"

    So i'm not really sure what.

    pc.png
     
    joulongleu likes this.
  2. Mashiane

    Mashiane Expert Licensed User

    The project with the warning above works well. ;)

    Now I was just testing a project with BANanoSQL. I deleted the publication folder currently c:\xampp\htdocs\uoemock and removed all css and js files in my Files folder for my project.

    alasql.png

    Reproduction

    I dim a variable as BANanoSQL in my project.

    1. I run the project for the first time, this error is reported.
    2. I press Sync in Files, the alasql.min.js file now appears
    3. I run the project again, error of missing alasql.min.js does not appear anymore.
     
    joulongleu likes this.
  3. Mashiane

    Mashiane Expert Licensed User

    Just noted that my TranspilerOptions for dead code seem to work whilst NOT turned on. Damn!!! This is one of the best options in the world!!! #Happy4Days

    TranspilerOptionsOn.png

    These are picked up whilst the options are OFF and are the only picks in my project so long, I like what I see when they are ON. Wow!

    On the issue of dead code, just for clarity

    Code:
    BANano.TranspilerOptions.ShowWarningDeadCode = True
        BANano.TranspilerOptions.RemoveDeadCode = 
    True
    These two statements work in conjuction?

    When both true, the OPTIMISATION "white" log text for "appears to be unused" does not show and you get a msg that the dead code will not be added.

    When .RemoveDeadCode = False, the OPTIMISATION "white" log text appears. Are they dependent on each other? CASE 2 below.

    Case 1:

    Code:
    [CODE]BANano.TranspilerOptions.ShowWarningDeadCode = True
        BANano.TranspilerOptions.RemoveDeadCode = 
    False
    [/CODE]
    optimisation.png

    Case 2: (Warning Dead Code No Show)

    Code:
    [CODE]BANano.TranspilerOptions.ShowWarningDeadCode = True
        BANano.TranspilerOptions.RemoveDeadCode = 
    True
    [/CODE]

    noptimisation.png
     
    Last edited: Jun 6, 2019
    joulongleu likes this.
  4. Mashiane

    Mashiane Expert Licensed User

    Just one final question about the post-processor.

    I've turned mergingcss and mergingjs ON, works perfectly. Left out the option to minify online as I want to use Kiffi's post processor. The merged css and merged js files are currently not-minified. I cant seem to find, BANano.STYLES_NAME or something to set/get the file name for the single styles name, can you add it please?

    Everything works as normal in my projects, Hoora!!! ;););) to BANano V3 RC1, thanks again.
     
    joulongleu likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice