Can't select file TinyMCE (Cannot set property 'value' of null)

Hi, the filemanager works fine, but when I try to select a file with the default TinyMCE Insert image button, the following console error appears when selecting an image:

Good thing to notice: the error doesn't appear when clicking the first time, but the times after that is does.
Clicking on the link on the right it leads to this piece of code:

I have the latest version of Laravel Filemanager and I'm using Laravel 5.4.36. I've followed the official install instructions, along with this video:
https://www.youtube.com/watch?v=vBzg0Us5MDk
Using TinyMCE 4.6.7 with the config from here:
http://unisharp.github.io/laravel-filemanager/integration
Happens in Chrome, Firefox en Edge (latest versions).
I am sorry if the issue is on my end, but I can't figure out what I could have done wrong + the filemanager just works fine besides the issue. Do more people have this problem?
Hopefully this submit has some value to you.

Hi @jellevisser123. Can you post the markup and script you are using here so I can reproduce it?
Does this error break functionality or is the image still inserted into TinyMCE?

Hi @gwleuverink. I'm using the community version of TinyMCE 4.6.7:
https://www.tinymce.com/download/
The textarea HTML:

has('content') ? ' has-error' : '' }}">
            Inhoud

                <textarea id="content" class="form-control" name="content"></textarea>

                @if ($errors->has('content'))

                        {{ $errors->first('content') }}

                @endif

The TinyMCE config + init placed before the body ends:

The Filemanager config from lfm.php (kept everything how it came with the package):
<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Routing
    |--------------------------------------------------------------------------
    */

    // Include to pre-defined routes from package or not. Middlewares
    'use_package_routes' => true,

    // Middlewares which should be applied to all package routes.
    // For laravel 5.1 and before, remove 'web' from the array.
    'middlewares' => ['web', 'auth'],

    // The url to this package. Change it if necessary.
    'prefix' => 'laravel-filemanager',

    /*
    |--------------------------------------------------------------------------
    | Multi-User Mode
    |--------------------------------------------------------------------------
    */

    // If true, private folders will be created for each signed-in user.
    'allow_multi_user' => true,
    // If true, share folder will be created when allow_multi_user is true.
    'allow_share_folder' => true,

    // Flexibla way to customize client folders accessibility
    // If you want to customize client folders, publish tag="lfm_handler"
    // Then you can rewrite userField function in App\Handler\ConfigHander class
    // And set 'user_field' to App\Handler\ConfigHander::class
    // Ex: The private folder of user will be named as the user id.
    'user_field' => Unisharp\Laravelfilemanager\Handlers\ConfigHandler::class,

    /*
    |--------------------------------------------------------------------------
    | Working Directory
    |--------------------------------------------------------------------------
    */

    // Which folder to store files in project, fill in 'public', 'resources', 'storage' and so on.
    // You should create routes to serve images if it is not set to public.
    'base_directory' => 'public',

    'images_folder_name' => 'photos',
    'files_folder_name'  => 'files',

    'shared_folder_name' => 'shares',
    'thumb_folder_name'  => 'thumbs',

    /*
    |--------------------------------------------------------------------------
    | Startup Views
    |--------------------------------------------------------------------------
    */

    // The default display type for items.
    // Supported: "grid", "list"
    'images_startup_view' => 'grid',
    'files_startup_view' => 'list',

    /*
    |--------------------------------------------------------------------------
    | Upload / Validation
    |--------------------------------------------------------------------------
    */

    // If true, the uploaded file will be renamed to uniqid() + file extension.
    'rename_file' => false,

    // If rename_file set to false and this set to true, then non-alphanumeric characters in filename will be replaced.
    'alphanumeric_filename' => false,

    // If true, non-alphanumeric folder name will be rejected.
    'alphanumeric_directory' => false,

    // If true, the uploading file's size will be verified for over than max_image_size/max_file_size.
    'should_validate_size' => false,

    'max_image_size' => 50000,
    'max_file_size' => 50000,

    // If true, the uploading file's mime type will be valid in valid_image_mimetypes/valid_file_mimetypes.
    'should_validate_mime' => false,

    // available since v1.3.0
    'valid_image_mimetypes' => [
        'image/jpeg',
        'image/pjpeg',
        'image/png',
        'image/gif',
        'image/svg+xml',
    ],

    // available since v1.3.0
    // only when '/laravel-filemanager?type=Files'
    'valid_file_mimetypes' => [
        'image/jpeg',
        'image/pjpeg',
        'image/png',
        'image/gif',
        'image/svg+xml',
        'application/pdf',
        'text/plain',
    ],

    /*
    |--------------------------------------------------------------------------
    | Image / Folder Setting
    |--------------------------------------------------------------------------
    */

    'thumb_img_width' => 200,
    'thumb_img_height' => 200,

    /*
    |--------------------------------------------------------------------------
    | File Extension Information
    |--------------------------------------------------------------------------
    */

    'file_type_array' => [
        'pdf'  => 'Adobe Acrobat',
        'doc'  => 'Microsoft Word',
        'docx' => 'Microsoft Word',
        'xls'  => 'Microsoft Excel',
        'xlsx' => 'Microsoft Excel',
        'zip'  => 'Archive',
        'gif'  => 'GIF Image',
        'jpg'  => 'JPEG Image',
        'jpeg' => 'JPEG Image',
        'png'  => 'PNG Image',
        'ppt'  => 'Microsoft PowerPoint',
        'pptx' => 'Microsoft PowerPoint',
    ],

    'file_icon_array' => [
        'pdf'  => 'fa-file-pdf-o',
        'doc'  => 'fa-file-word-o',
        'docx' => 'fa-file-word-o',
        'xls'  => 'fa-file-excel-o',
        'xlsx' => 'fa-file-excel-o',
        'zip'  => 'fa-file-archive-o',
        'gif'  => 'fa-file-image-o',
        'jpg'  => 'fa-file-image-o',
        'jpeg' => 'fa-file-image-o',
        'png'  => 'fa-file-image-o',
        'ppt'  => 'fa-file-powerpoint-o',
        'pptx' => 'fa-file-powerpoint-o',
    ],

    /*
    |--------------------------------------------------------------------------
    | php.ini override
    |--------------------------------------------------------------------------
    |
    | These values override your php.ini settings before uploading files
    | Set these to false to ingnore and apply your php.ini settings
    |
    | Please note that the 'upload_max_filesize' & 'post_max_size'
    | directives are not supported.
    */
    'php_ini_overrides' => [
        'memory_limit'        => '256M',
    ],

];

Did I forget something?
The error does indeed prevent the image from inserting in the editor.

@jellevisser123 I found the issue. It is not your code. It seems that the TinyMCE popup can't be closed. It's probably a small change in the TinyMCE API.
You are using TinyMCE 4.6.7. This is te version that causes this issue. If you use version 4.6.6 everything will work fine.
I will look for a sustainable solution. Please use TinyMCE 4.6.6 in the mean time

Thanks a lot! Works fine indeed with 4.6.6.

I submitted the issue with TinyMCE. I will try to fix it on our end if this change was intentional.

It tuned out that this is in fact a bug with TinyMCE. It'll be fixed soon.

i just changed

to

it works fine.


Zephyr Native Posix Build Uses Linux Build Machine Headers out of Sandbox

I am creating a network enabled application, and my build targets are both native_posix_64 and qemu_riscv64.  I am able to compile for the QEMU board target.
However, for the native_posix_64 built, I get collisions with headers that are defined on my native Linux build machine rather than what I assumed was a cross compiled "sandbox", where for native POSIX, the cross compilation would not use anything native to my Linux distro, but entirely Zephyr alone.
As such, I am unable to compile properly as there is a mixture of Zephyr and native Linux.
To Reproduce
Steps to reproduce the behavior:

west build -p always -b native_posix_64 ./

Expected behavior
A clean build within any errors and inclusion of native Linux build machine headers.
Impact
Showstopper
Logs and console output
home/robocom/zephyrproject/zephyr/include/net/socket_select.h:110: warning: "FD_SETSIZE" redefined
  110 | #define FD_SETSIZE ZSOCK_FD_SETSIZE
      |
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
                 from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:73: note: this is the location of the previous definition
   73 | #define FD_SETSIZE  __FD_SETSIZE
      |
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
                 from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:112:19: error: conflicting declaration of C function ‘int select(int, zsock_fd_set*, zsock_fd_set*, zsock_fd_set*, zsock_timeval*)’
  112 | static inline int select(int nfds, zsock_fd_set *readfds,

Environment (please complete the following information):

OS: Linux Ubuntu 20
Toolchain (e.g Zephyr 2.6.0 RC1)

Additional context
This is the inclusion of the native include header is troublesome:
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
Project Configuration is as follows:
# Optionally force the file system to be recreated
#CONFIG_APP_WIPE_STORAGE=y

# fs_dirent structures are big.
CONFIG_MAIN_STACK_SIZE=2048

#CONFIG_FLASH_HAS_PAGE_LAYOUT=y
CONFIG_LOG=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_FS_LOG_LEVEL_DBG=y

# CONFIG_SHELL=y
# CONFIG_SHELL_LOG_LEVEL_INF=y

# CONFIG_FILE_SYSTEM=y
# CONFIG_FILE_SYSTEM_SHELL=y

# Debug Options
CONFIG_DEBUG_OPTIMIZATIONS=y

# Disable logging using '%s' where strdup()s occur
CONFIG_LOG_DETECT_MISSED_STRDUP=n

# Log Buffer Size when not logging immediately
# CONFIG_LOG_BUFFER_SIZE=1024

CONFIG_POSIX_API=y

# Networking config
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
CONFIG_NET_TCP=n
CONFIG_NET_SOCKETS=y
# CONFIG_NET_SOCKETS_POSIX_NAMES=y
# Network debug config
CONFIG_NET_LOG=y

My default gcc include paths are as follows:
echo | gcc -E -Wp,-v -
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-linux-gnu/9/include
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"

Also have collision on Linux header for select.h.

In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)

I am not positive what the proper behavior is for NATIVE POSIX development.  I looks like gcc in the output logs matches the gcc version on my Linux machine. Perhaps with that, it is using the default include paths prior to the Zephyr ones.  By contrast, should one expect that an X86 cross compilation should occur?  Should I change my environment/system configuration to prevent these default include files from being part of the build process?  Is there any ordering of the project include files (including stdio, stdint) that could be tripping this up?
The full compile output is as follows:
west build: making build dir /home/robocom/RCSUS/ddltconfig/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/robocom/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/robocom/RCSUS/ddltconfig
-- Zephyr version: 2.6.0-rc1 (/home/robocom/zephyrproject/zephyr), build: v2.6.0-rc1-61-g8eea9ebc3a88
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter
-- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
-- Board: native_posix_64
-- Cache files will be written to: /home/robocom/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (gcc/ld)
-- Found BOARD.dts: /home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64.dts
-- Generated zephyr.dts: /home/robocom/RCSUS/ddltconfig/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/robocom/RCSUS/ddltconfig/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/robocom/RCSUS/ddltconfig/build/zephyr/include/generated/device_extern.h
Parsing /home/robocom/RCSUS/ddltconfig/Kconfig
Loaded configuration '/home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64_defconfig'
Merged configuration '/home/robocom/RCSUS/ddltconfig/prj.conf'
Configuration saved to '/home/robocom/RCSUS/ddltconfig/build/zephyr/.config'
Kconfig header saved to '/home/robocom/RCSUS/ddltconfig/build/zephyr/include/generated/autoconf.h'
warning: POSIX_API (defined at lib/posix/Kconfig:12) was assigned the value 'y' but got the value
'n'. Check these unsatisfied dependencies: (!ARCH_POSIX) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_POSIX_API.html and/or look up
POSIX_API in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.
warning: The choice symbol NEWLIB_LIBC (defined at lib/libc/Kconfig:27) was selected (set =y), but
EXTERNAL_LIBC (defined at lib/libc/Kconfig:34) ended up as the choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NEWLIB_LIBC.html and/or look up
NEWLIB_LIBC in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robocom/RCSUS/ddltconfig/build
-- west build: building application
[1/147] Preparing syscall dependency handling
[140/147] Building CXX object CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
FAILED: CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
ccache /usr/bin/g++  -DBUILD_VERSION=v2.6.0-rc1-61-g8eea9ebc3a88 -DKERNEL -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I/home/robocom/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/robocom/zephyrproject/zephyr/soc/posix/inf_clock -I/home/robocom/zephyrproject/zephyr/boards/posix/native_posix -I/home/robocom/zephyrproject/zephyr/subsys/net/lib/sockets/. -I/home/robocom/zephyrproject/zephyr/subsys/net/l2 -I/home/robocom/zephyrproject/modules/fs/littlefs -Og -fcheck-new -std=c++2a -Wno-register -Wno-volatile -fno-exceptions -fno-rtti -imacros /home/robocom/RCSUS/ddltconfig/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -fdiagnostics-color=always -imacros /home/robocom/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/robocom/RCSUS/ddltconfig=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/robocom/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/robocom/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -m64 -fPIC -include /home/robocom/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -fno-freestanding -MD -MT CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -MF CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj.d -o CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -c ../src/config/sessionConfig.cpp
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:110: warning: "FD_SETSIZE" redefined
110 | #define FD_SETSIZE ZSOCK_FD_SETSIZE
|
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:73: note: this is the location of the previous definition
73 | #define FD_SETSIZE  __FD_SETSIZE
|
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:112:19: error: conflicting declaration of C function ‘int select(int, zsock_fd_set*, zsock_fd_set*, zsock_fd_set*, zsock_timeval*)’
112 | static inline int select(int nfds, zsock_fd_set readfds,
|                   ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration ‘int select(int, fd_set, fd_set*, fd_set*, timeval*)’
101 | extern int select (int __nfds, fd_set *__restrict __readfds,
|            ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘do’
119 | static inline void FD_ZERO(zsock_fd_set *set)
|                    ^~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘while’
119 | static inline void FD_ZERO(zsock_fd_set set)
|                    ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: error: expected unqualified-id before ‘)’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘void’
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘)’ token
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘void’
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘)’ token
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-volatile’
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/robocom/RCSUS/ddltconfig/build

Here is the project kernel configuration as a ZIP compressed file.
prj.5.31.21.zip

Hi @bob2oneil
Unfortunately CONFIG_POSIX_API=y is not supported in native_posix.
The conflicts you are seeing are the result of trying to use that.
This is not a bug, but a known limitation, that has been a long standing, lowish priority, feature request
( #24685 ).
As extra info naive_posix does use your host default gcc and libC. That is as intended by design.
If this answers your question, feel free to close the issue.

Thanks for the quick attention to this issue. I explicitly set the project configuration with CONFIG_POSIX_API=n, and the problem still remains.  I still see Linux header files included in the Native Posix build.
The following are some updates to both the kernel configuration and the output.
Any other ideas?
`#
Copyright (c) 2019 Peter Bigot Consulting, LLC

SPDX-License-Identifier: Apache-2.0

Project Configuration
CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_STD_CPP2A=y
CONFIG_CBPRINTF_FP_SUPPORT=y
Random number generation
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_HEAP_MEM_POOL_SIZE=32768
Optionally force the file system to be recreated
#CONFIG_APP_WIPE_STORAGE=y
fs_dirent structures are big.
CONFIG_MAIN_STACK_SIZE=2048
#CONFIG_FLASH_HAS_PAGE_LAYOUT=y
CONFIG_LOG=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_FS_LOG_LEVEL_DBG=y
CONFIG_SHELL=y
CONFIG_SHELL_LOG_LEVEL_INF=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_SHELL=y
Debug Options
CONFIG_DEBUG_OPTIMIZATIONS=y
Disable logging using '%s' where strdup()s occur
CONFIG_LOG_DETECT_MISSED_STRDUP=n
Log Buffer Size when not logging immediately
CONFIG_LOG_BUFFER_SIZE=1024
Not supported for Native Posix
CONFIG_POSIX_API=n
Networking config
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
CONFIG_NET_TCP=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
Network debug config
CONFIG_NET_LOG=y
`
`robocom@scnuc-1:~/SUS/ddltconfig$ west build -p always -b native_posix_64 ./
-- west build: making build dir /home/robocom/SUS/ddltconfig/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/robocom/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/robocom/SUS/ddltconfig
-- Zephyr version: 2.6.0-rc1 (/home/robocom/zephyrproject/zephyr), build: v2.6.0-rc1-61-g8eea9ebc3a88
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter
-- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
-- Board: native_posix_64
-- Cache files will be written to: /home/robocom/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (gcc/ld)
-- Found BOARD.dts: /home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64.dts
-- Generated zephyr.dts: /home/robocom/SUS/ddltconfig/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/device_extern.h
warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.
warning: The choice symbol NEWLIB_LIBC (defined at lib/libc/Kconfig:27) was selected (set =y), but
EXTERNAL_LIBC (defined at lib/libc/Kconfig:34) ended up as the choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NEWLIB_LIBC.html and/or look up
NEWLIB_LIBC in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
Parsing /home/robocom/SUS/ddltconfig/Kconfig
Loaded configuration '/home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64_defconfig'
Merged configuration '/home/robocom/SUS/ddltconfig/prj.conf'
Configuration saved to '/home/robocom/SUS/ddltconfig/build/zephyr/.config'
Kconfig header saved to '/home/robocom/SUS/ddltconfig/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robocom/SUS/ddltconfig/build
-- west build: building application
[1/166] Preparing syscall dependency handling
[96/166] Building CXX object CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
FAILED: CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
ccache /usr/bin/g++  -DBUILD_VERSION=v2.6.0-rc1-61-g8eea9ebc3a88 -DKERNEL -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I/home/robocom/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/robocom/zephyrproject/zephyr/soc/posix/inf_clock -I/home/robocom/zephyrproject/zephyr/boards/posix/native_posix -I/home/robocom/zephyrproject/zephyr/lib/util/fnmatch/. -I/home/robocom/zephyrproject/zephyr/subsys/net/lib/sockets/. -I/home/robocom/zephyrproject/zephyr/subsys/net/l2 -I/home/robocom/zephyrproject/modules/fs/littlefs -Og -fcheck-new -std=c++2a -Wno-register -Wno-volatile -fno-exceptions -fno-rtti -imacros /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -fdiagnostics-color=always -imacros /home/robocom/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/robocom/SUS/ddltconfig=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/robocom/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/robocom/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -m64 -fPIC -include /home/robocom/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -fno-freestanding -MD -MT CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -MF CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj.d -o CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -c ../src/config/sessionConfig.cpp
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:110: warning: "FD_SETSIZE" redefined
110 | #define FD_SETSIZE ZSOCK_FD_SETSIZE
|
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:73: note: this is the location of the previous definition
73 | #define FD_SETSIZE  __FD_SETSIZE
|
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:112:19: error: conflicting declaration of C function ‘int select(int, zsock_fd_set*, zsock_fd_set*, zsock_fd_set*, zsock_timeval*)’
112 | static inline int select(int nfds, zsock_fd_set readfds,
|                   ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration ‘int select(int, fd_set, fd_set*, fd_set*, timeval*)’
101 | extern int select (int __nfds, fd_set *__restrict __readfds,
|            ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘do’
119 | static inline void FD_ZERO(zsock_fd_set *set)
|                    ^~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘while’
119 | static inline void FD_ZERO(zsock_fd_set set)
|                    ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: error: expected unqualified-id before ‘)’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘void’
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘)’ token
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘void’
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘)’ token
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-volatile’
[105/166] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.
`

I still see Linux header files included in the Native Posix build.

That is meant to happen

No reason on NEWLIB other than to ensure that I can build for both QEMU and Native Posix, presumably using the same project files .. that in generally being new to Zephyr.
Thanks for the tips.
I have tried again with NEWLIB set to external, but have the same build issues.
I am to understand that perhaps different kernel configs are required for different board targets?
When targeting posix, should I not be including #include <net/socket.h>, and just use
literally the platform version of say sockets, select(), poll(), etc.
I was thinking that all of the native Linux platform stuff would be sandboxed, so only content
within Zephyr proper would be used.  That could be a misconception on my park.

"""
robocom@scnuc-1:~/SUS/ddltconfig$ west build -p always -b native_posix_64 ./
-- west build: making build dir /home/robocom/SUS/ddltconfig/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/robocom/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/robocom/SUS/ddltconfig
-- Zephyr version: 2.6.0-rc1 (/home/robocom/zephyrproject/zephyr), build: v2.6.0-rc1-61-g8eea9ebc3a88
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter
-- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
-- Board: native_posix_64
-- Cache files will be written to: /home/robocom/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (gcc/ld)
-- Found BOARD.dts: /home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64.dts
-- Generated zephyr.dts: /home/robocom/SUS/ddltconfig/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/device_extern.h
Parsing /home/robocom/SUS/ddltconfig/Kconfig
Loaded configuration '/home/robocom/zephyrproject/zephyr/boards/posix/native_posix/native_posix_64_defconfig'
Merged configuration '/home/robocom/SUS/ddltconfig/prj.conf'
Configuration saved to '/home/robocom/SUS/ddltconfig/build/zephyr/.config'
Kconfig header saved to '/home/robocom/SUS/ddltconfig/build/zephyr/include/generated/autoconf.h'
warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robocom/SUS/ddltconfig/build
-- west build: building application
[1/166] Preparing syscall dependency handling
[146/166] Building CXX object CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
FAILED: CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
ccache /usr/bin/g++  -DBUILD_VERSION=v2.6.0-rc1-61-g8eea9ebc3a88 -DKERNEL -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I/home/robocom/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/robocom/zephyrproject/zephyr/soc/posix/inf_clock -I/home/robocom/zephyrproject/zephyr/boards/posix/native_posix -I/home/robocom/zephyrproject/zephyr/lib/util/fnmatch/. -I/home/robocom/zephyrproject/zephyr/subsys/net/lib/sockets/. -I/home/robocom/zephyrproject/zephyr/subsys/net/l2 -I/home/robocom/zephyrproject/modules/fs/littlefs -Og -fcheck-new -std=c++2a -Wno-register -Wno-volatile -fno-exceptions -fno-rtti -imacros /home/robocom/SUS/ddltconfig/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -fdiagnostics-color=always -imacros /home/robocom/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/robocom/SUS/ddltconfig=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/robocom/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/robocom/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -m64 -fPIC -include /home/robocom/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -fno-freestanding -MD -MT CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -MF CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj.d -o CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -c ../src/config/sessionConfig.cpp
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:110: warning: "FD_SETSIZE" redefined
110 | #define FD_SETSIZE ZSOCK_FD_SETSIZE
|
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:73: note: this is the location of the previous definition
73 | #define FD_SETSIZE  __FD_SETSIZE
|
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:112:19: error: conflicting declaration of C function ‘int select(int, zsock_fd_set*, zsock_fd_set*, zsock_fd_set*, zsock_timeval*)’
112 | static inline int select(int nfds, zsock_fd_set readfds,
|                   ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration ‘int select(int, fd_set, fd_set*, fd_set*, timeval*)’
101 | extern int select (int __nfds, fd_set *__restrict __readfds,
|            ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘do’
119 | static inline void FD_ZERO(zsock_fd_set *set)
|                    ^~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:119:20: error: expected unqualified-id before ‘while’
119 | static inline void FD_ZERO(zsock_fd_set set)
|                    ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:49: error: expected ‘)’ before ‘’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                                                 ^
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: note: to match this ‘(’
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:124:19: error: expected unqualified-id before ‘)’ token
124 | static inline int FD_ISSET(int fd, zsock_fd_set *set)
|                   ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘void’
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:129:20: error: expected unqualified-id before ‘)’ token
129 | static inline void FD_CLR(int fd, zsock_fd_set *set)
|                    ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:30,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘void’
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected ‘)’ before ‘void’
In file included from /usr/include/x86_64-linux-gnu/sys/select.h:123,
from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:134:20: error: expected unqualified-id before ‘)’ token
134 | static inline void FD_SET(int fd, zsock_fd_set *set)
|                    ^~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-volatile’
[155/166] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
ninja: build stopped: subcommand failed.
""

I am to understand that perhaps different kernel configs are required for different board targets?

That is not uncommon. You can set kconfig overlays for each board you want to treat differently. (you can find some examples of that in the tree, just look for samples with a folder with a board name, with some kconfig and/or dts overlays in them)

When targeting posix, should I not be including #include <net/socket.h>

@jukkar are you able to help @bob2oneil ? Does he need to disable NET_SOCKETS_POSIX_NAMES in native_posix?

and just use literally the platform version of say sockets, select(), poll(), etc.

I doubt that would work..

I was thinking that all of the native Linux platform stuff would be sandboxed,

Not really. You are building with the host libC. So name clashes are unfortunately easy to encounter.

@bob2oneil like this: (tripple back ticks == the backwards accent character) ```  your text ```
your text
You can click on preview to see you how your text will render

Thanks, I will correct all future back ticks properly.
What do you recommend now for creating native POSIX socket applications running under Zephyr.
I am looking for BSD sockets, Linux poll() and select(), promiscuous sockets, runtime settable IP and MTUS, one real Ethernet interface (kernel configured) and one virtual Ethernet (9K MTU).
I want to build a bridge applications IPv4 between 2 interfaces.
I am ok with different kernel configurations for different board targets

@jukkar are you able to help @bob2oneil ? Does he need to disable NET_SOCKETS_POSIX_NAMES and probably more in native_posix?

The networking sample applications are compiled all the time with native_posix and there is no need to disable CONFIG_NET_SOCKETS_POSIX_NAMES. You can try to compile various network applications like samples/net/sockets/echo_server and it compiles just fine
west build -d build -b native_posix_64 samples/net/sockets/echo_server

I am able to build the sample application without any event.  However, my application has a bunch more C++ class, uses some standard C/C++ headers, and I wonder if somehow "types.h" gets included or other platform headers that is causing the havoc.  I will do a strip down to see if this improves anything.  Would one of you fine gentleman be willing to test out my project to see if at least we are experiencing the same build issues?  I could ZIP and send in a private email.  I will post anything I find from my strip of standard header operations. Hopefully this work will be of benefit to the broader Zephyr community.

Thanks for the quick responses.  Attached is the current build issues as I strip away as much of the standard headers as possible.  Is there any advanced west argument that would provide more information on the include search paths, and what caused a certain standard header to be included?   For example, the errors occur as a function of including standard header "types.h", which are not directly included in the source code.
/usr/include/x86_64-linux-gnu/sys/types.h:179

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/robocom/RCSUS/ddltconfig/build
-- west build: building application
[1/167] Preparing syscall dependency handling
[160/167] Building CXX object CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
FAILED: CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj
ccache /usr/bin/g++  -DBUILD_VERSION=v2.6.0-rc1-61-g8eea9ebc3a88 -DKERNEL -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I/home/robocom/zephyrproject/zephyr/include -Izephyr/include/generated -I/home/robocom/zephyrproject/zephyr/soc/posix/inf_clock -I/home/robocom/zephyrproject/zephyr/boards/posix/native_posix -I/home/robocom/zephyrproject/zephyr/lib/util/fnmatch/. -I/home/robocom/zephyrproject/zephyr/subsys/net/lib/sockets/. -I/home/robocom/zephyrproject/zephyr/subsys/net/l2 -I/home/robocom/zephyrproject/modules/fs/littlefs -Og -fcheck-new -std=c++2a -Wno-register -Wno-volatile -fno-exceptions -fno-rtti -imacros /home/robocom/RCSUS/ddltconfig/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -fdiagnostics-color=always -imacros /home/robocom/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wpointer-arith -Wexpansion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/robocom/RCSUS/ddltconfig=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/robocom/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/robocom/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -m64 -fPIC -include /home/robocom/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -fno-freestanding -MD -MT CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -MF CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj.d -o CMakeFiles/app.dir/src/config/sessionConfig.cpp.obj -c ../src/config/sessionConfig.cpp
In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:110: warning: "FD_SETSIZE" redefined
110 | #define FD_SETSIZE ZSOCK_FD_SETSIZE
|
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:73: note: this is the location of the previous definition
73 | #define FD_SETSIZE  __FD_SETSIZE

The referenced collision in types.h is the inclusion of sys/select with collides with the Zephyr implementation even with CONFIG_POSIX_API=n
/* It also defines `fd_set' and the FD_* macros for `select'.  */
# include <sys/select.h>
#endif /* Use misc.  */

In file included from /home/robocom/zephyrproject/zephyr/include/net/socket.h:29,
                 from ../src/config/sessionConfig.cpp:16:
/home/robocom/zephyrproject/zephyr/include/net/socket_select.h:112:19: error: conflicting declaration of C function ‘int select(int, zsock_fd_set*, zsock_fd_set*, zsock_fd_set*, zsock_timeval*)’
  112 | static inline int select(int nfds, zsock_fd_set *readfds,
      |                   ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from /home/robocom/zephyrproject/zephyr/include/net/socket.h:25,
                 from ../src/config/sessionConfig.cpp:16:
/usr/include/x86_64-linux-gnu/sys/select.h:101:12: note: previous declaration ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’
  101 | extern int select (int __nfds, fd_set *__restrict __readfds,

Additional testing needs to be performed, but I was finally able to get this sample project to build under Native Posix 64 by changing the order of the entries in the project kernel configuration.  This might make some sense, or perhaps this change was anecdotal, and simply caused some other unexplained benefit.  I was building within west using the "-p always" flag to presumably sweep away and previous build artifacts and I deleted the entire 'build' subfolder a few times.
My working prj.conf is as follows. Perhaps this explanation rings a bell for you Zephyr experts that have generously commented on my postings.
I hope this will be of some benefit to other users that may have experienced the same behaviors for Native POSIX builds with collisions with Linux file system headers.
#
# Copyright (c) 2019 Peter Bigot Consulting, LLC
#
# SPDX-License-Identifier: Apache-2.0
#
# Project Configuration
CONFIG_CPLUSPLUS=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_STD_CPP2A=y
CONFIG_CBPRINTF_FP_SUPPORT=y

# Random number generation
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y

CONFIG_HEAP_MEM_POOL_SIZE=32768

# Optionally force the file system to be recreated
#CONFIG_APP_WIPE_STORAGE=y

# fs_dirent structures are big.
CONFIG_MAIN_STACK_SIZE=2048

#CONFIG_FLASH_HAS_PAGE_LAYOUT=y
CONFIG_LOG=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_FS_LOG_LEVEL_DBG=y

CONFIG_SHELL=y
CONFIG_SHELL_LOG_LEVEL_INF=y

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_SHELL=y

# Debug Options
CONFIG_DEBUG_OPTIMIZATIONS=y

# Disable logging using '%s' where strdup()s occur
CONFIG_LOG_DETECT_MISSED_STRDUP=n

# Log Buffer Size when not logging immediately
# CONFIG_LOG_BUFFER_SIZE=1024

# Networking config
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
CONFIG_NET_TCP=n
CONFIG_NET_SOCKETS=y

# Not supported for Native Posix
CONFIG_POSIX_API=n
CONFIG_NET_SOCKETS_POSIX_NAMES=n

# Network debug config
CONFIG_NET_LOG=y

my application has a bunch more C++ class, uses some standard C/C++ headers

Unfortunately that is a bad use case for native_posix.

I was finally able to get this sample project to build under Native Posix

Nice to hear. I guess we can close this issue/question by now then(?) (it can be always reopened if needed)

My thanks to aescolar and jukkar for helping out on this topic in a quick manner.  You guys are a credit to the open source community.


[fix] Enqueue media script to be able to use media upload feature

Without this a settings page with only the media uploading feature does not work

@davegreenwp Can you take a look at my other pulls?


Get the unitary for an entire Circuit

Describe the feature you'd like
It would be great if a Circuit could return its 2^n by 2^n unitary (by multiplying across the moments)
(Please let me know if this feature already exists)
How would this feature be used? Please describe.
I'm looking to use this feature in unit tests for a function converting between different quantum circuit languages (qiskit, cirq, etc.)

Describe the feature you'd like
It would be great if a Circuit could return its 2^n by 2^n unitary (by multiplying across the moments)
(Please let me know if this feature already exists)
How would this feature be used? Please describe.
I'm looking to use this feature in unit tests for a function converting between different quantum circuit languages (qiskit, cirq, etc.)

@singular-value Thanks  for providing your input. This feature does not currently exists but I will add it to our queue for future consideration. You are also free to create a pull request that we will review and consider merging. We would likely make this a feature of the LocalSimulator rather than the circuit itself.

👍 right would make sense to include in LocalSimulator

Hi all,
I would like to give this feature a try. If I create the MR, will you consider to merge it? Maybe you already evaluated this feature and you are not interested on it ... for now :)
Regards.

Yes, we welcome community contributions and will consider your pull request. You might find the contribution guidelines helpful. Please let us know if you run into issues. Thanks!


SWARM-1868: Exclude BulkheadAsynchRetryTest.testBulkheadMethodAsynchronousRetry55Trip()

see also https://github.com/eclipse/microprofile-fault-tolerance/issues/232

Windows failure:

Failed pattern wfswarm\S+[0-9]{5,}.\S{5,} in directory C:\opt\jenkins\workspace\wildfly-swarm-pull-request-windows\arquillian\test\target.C:\opt\jenkins\workspace\wildfly-swarm-pull-request-windows\arquillian\test\target\wfswarmarquillian5794451653341088826-swarm.jar size(2420886) too large. Max. is 0

@kenfinnigan @heiko-braun I think this PR is ready to merge.


Landscape Android Examples

Any examples for Splashscreen in landscape mode for both Android and iOS platform.?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5823a3fa-87be-0b27-155b-b44130c67e84
Version Independent ID: c90633f5-22b9-f7dd-fd08-c9affc251dd4
Content: Splash Screen - Xamarin
Content Source: docs/android/user-interface/splash-screen.md
Service: xamarin
GitHub Login: @mgmclemore
Microsoft Alias: mamcle

Hi @sivaramganesan, thanks for your feedback!  Currently this topic does not show how to implement Splashscreen in landscape mode -- I've added a task to our backlog to update it accordingly.
Meanwhile, the following Xamarin forums discussions may be of some help:
https://forums.xamarin.com/discussion/74517/landscape-splash-screen-in-android
https://forums.xamarin.com/discussion/55849/launch-screen

Hi @sivaramganesan, for iOS launch screens, check out this document, which describes how to use storyboards to create launch screens that work for different devices / orientations.

HI @bradumbaugh,
Already i have implemented in iOS using dynamic launch screen storyboard. AW Thank you for the link.
@mgmclemore, Hope it will be added soon. As i can see a lot of discussion on the forum regarding this landscape splash screen most are not reliable or failing in some cases.


Custom plugins in REPL.

I was just thinking it'd be pretty cool to extend the preset options to have a text input where you could put in whatever plugin you want (e.g.: babel-plugin-closure-elimination) and it would then try to download it from unpkg and enable it. To keep it simple it could just be a comma separated list of custom plugins.
This would make quickly trying a plugin trivial on the website.

@DylanPiercey we agree! https://github.com/babel/babel.github.io/issues/858
Definitely something we'd love to do, but have been busy with other things. Would love help :P

Ah thanks for the link. I was looking through and I don't think it'd be to bad. Perhaps I'll give a shot if I get some free time next week.

Awesome, looking forward to it!

@DylanPiercey the issue I had with unpkg is that we would need to require plugins to do a umd build type thing unless we also run webpack on the fly

@hzoo what about switching to wzrd? You can easily bundle things as a standalone UMD module. Example.

Yeah we can do that, just can get kinda big, but if it works we can try!

I think it will make a lot more sense with babel 7 since we got rid of babel-runtime for deps, and we have the polyfill to the repl

@hzoo I think the user would more/less expect it to take some time to fetch third party modules so I don't think it'd be too much of an issue.
Also with wzrd they have a '/multi' api which we could use in this case to bundle all of the presets together.

Oh ok cool! I'm not that knowledge about wzrd but that sounds great - I really want this feature!

@hzoo could you point me to the place where the current presets are loaded?

Messaged on slack, but https://github.com/babel/babel.github.io/blob/master/scripts/repl.js#L32, via babel-standalone


No message passing through the agent with ROS2 Rolling

Good morning! We are currently trying to migrate our project to ROS2 Rolling, but I have some trouble making messages pass through the agent.
Setup

Ubuntu 20.04
ROS2 Rolling
Teensy 3.2

Steps to reproduce
As we are using a Teensy board, I previously installed the micro-ros-arduino lib for Rolling.
First, I tried to use the agent installed from snap. On Foxy, before migrating to Rolling, the agent was installed from snap release, and everything used to work nicely. I re-install it from snap, having sourced Rolling as ROS_DISTRO. Then I run the agent (micro-ros-agent serial --dev /dev/teensy_elodie -v6 ) and upload on a Teensy board the publisher example. Here's the output of the agent:
[1613119649.240504] info     | TermiosAgentLinux.cpp | init                     | running...             | fd: 3
[1613119649.740824] info     | TermiosAgentLinux.cpp | fini                     | server stopped         | fd: 3
[1613119649.741063] info     | TermiosAgentLinux.cpp | init                     | running...             | fd: 3
[1613119650.320015] info     | Root.cpp           | create_client            | create                 | client_key: 0x5083E048, session_id: 0x81
[1613119650.320126] info     | SessionManager.hpp | establish_session        | session established    | client_key: 0x1350819912, address: 0
[1613119650.320291] debug    | SerialAgentLinux.cpp | send_message             | [** <<SER>> **]        | client_key: 0x5083E048, len: 19, data:
0000: 81 00 00 00 04 01 0B 00 00 00 58 52 43 45 01 00 01 0F 00

And then it stops.
I run ros2 topic list and ros2 node list in another shell, but nothing is returned.
As a second attempt, I tried to install the agent from source main branch, following these steps:
mkdir uros_ws && cd uros_ws
git clone -b main https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup
rosdep update && rosdep install --from-path src --ignore-src -y
colcon build
source install/local_setup.bash
ros2 run micro_ros_setup create_firmware_ws.sh host
ros2 run micro_ros_setup build_firmware.sh
source install/local_setup.bash
ros2 run micro_ros_setup create_agent_ws.sh
ros2 run micro_ros_setup build_agent.sh
source install/local_setup.bash

 Note: When running ros2 run micro_ros_setup create_agent_ws.sh, an output surprised me:
=== ./eProsima/Micro-CDR (git) ===

Already on 'foxy'
Your branch is up to date with 'origin/foxy'.

Not sure if this is normal, as I tried to build the agent for Rolling
Then I run the agent (ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/teensy_elodie -v6), and upload the same publisher example as before. The output is the same.
Issue description
The agent returns that the session with the board is established, which is great. But only one message seems to be sent. Plus, ROS doesn't not find the topic nor the micro-ROS node.
No error seems to happen on the board side, as the board's LED is not blinking.
Questions

Is the micro-ros-agent snap release adapted for being used with ROS2 Rolling? If not, is a Rolling snap release planned? (we would be very interested in this)
Is the main branch corresponding to Rolling version? Can you help me fix the communication between the board, the agent, and ROS?

Thank you very much for your help!

I did a mess with the new external transport API, these are the fixes:

https://github.com/micro-ROS/micro_ros_arduino/pull/122
https://github.com/micro-ROS/micro_ros_arduino/pull/121

I'm merging as soon as CI pass.
Please checkout this new branch and test it... This is not related to the library but with the Arduino code, so I guess that maybe you can apply the changes and use the same library that you have precompiled.
Please close if this solves the issue.

Thank you very much for the quick fix! It works really great, with the agent installed from snap as well as installed from sources!

Cool! You are using Rolling with the default middleware?

Yes for now we are using CycloneDDS implementation. We didn't yet really discuss this, so I have no idea whether it will be definitive.

I was just drafting an issue when I saw this, thanks for the quick fix!


[build] remove Xamarin.Android.CSharp.targets

Remove Xamarin.Android.CSharp.targets as this file is only used in Xamarin.Android projects! SDK-style projects rely on "magical" imports when you have $(TargetPlatformIdentifier)=android, and so projects do not ever import this file directly.
Removing this file led me to find other files we can delete:

build-tools\scripts\MonoAndroidFramework.props imported by some Xamarin.Android projects in the repo.

samples\VSAndroidApp unused Xamarin.Android sample

tests\Mono.Android-Tests\Runtime-AppBundle unused Xamarin.Android test project

tests\Mono.Android-Tests\Runtime-MultiDex unused Xamarin.Android test project

I also removed any Xamarin.Android .csproj file, where I found a ".NET" equivalent. We could likely remove even more in the future, but we'd want to check if the code or tests could be useful.

We can ignore the one APK test failure:
Mono.Android.NET_Tests, Xamarin.Android.NetTests.AndroidClientHandlerTests.AndroidHandlerTestBase.Redirect_POST_With_Content_Works / Debug
System.Net.Http.HttpRequestException : Response status code does not indicate success: 502 (Bad Gateway).


PiVPN installed however can not connect from outside

OS USED: Ubuntu 14.04 LTS and 16.04  (i386 and amd64 both tried).
PiVPN does not connect at all, all appropriate ports have been opened. To double check port forwarding is good, I ran a different device on port 1194 as an apache2 server and I could access files no problem, and ran openvpn access server to test. Works no problem.
After setting pivpn back to 1194 for UDP default, I asked my client to conenct to it using the OVPN file. I enter my password (entering wrong password shows wrong password so that's good) and it is stuck.
It just waits and waits. EVENT WAIT
Have you searched for similar issues and solutions?

Console output of curl install.pivpn.io | bash
The install went fine, I did not want to install again as it is my ~21st time installing tonight

Console output of pivpn add or pivpn add nopass
 Enter a Name for the Client:  testuser
Enter the password for the client:
Enter the password again to verify:
Passwords do not match! Please try again.
Enter the password for the client:
Enter the password again to verify:
spawn ./easyrsa build-client-full testuser

Note: using Easy-RSA configuration from: ./vars
Generating a 2048 bit RSA private key
.....................................................+++
.....................................................................+++
writing new private key to '/etc/openvpn/easy-rsa/pki/private/testuser.key.bNNnmnfv2G'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName            :PRINTABLE:'testuser'
Certificate is to be certified until Mar 25 04:18:35 2028 GMT (3650 days)

Write out database with 1 new entries
Data Base Updated
spawn openssl rsa -in pki/private/testuser.key -des3 -out pki/private/testuser.key
Enter pass phrase for pki/private/testuser.key:
writing RSA key
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
Client's cert found: testuser.crt
Client's Private Key found: testuser.key
CA public Key found: ca.crt
tls-auth Private Key found: ta.key

========================================================
Done! testuser.ovpn successfully created!
testuser.ovpn was copied to:
  /home/pvpn/ovpns
for easy transfer. Please use this profile only on one
device and create additional profiles for other devices.
========================================================

Console output of pivpn debug
  :::					:::
::		PiVPN Debug		 ::
:::					:::
::	Latest Commit			 ::
:::					:::
commit 33ed7e7012d5278162d72c3477a0d9b4345520ab
Merge: 1375fa1 30397f2
Author: redfast00<EMAIL_ADDRESS>Date:   Sat Mar 24 13:39:55 2018 +0100

    Merge pull request #502 from stan3/nonexecutable

    Changed permission bits on text files.

I tried starting from fresh, changing the port, changing to TCP, tried ports 443, 1194, 9999, 8888, 3333 and many more yet nothing helps. It's almost like the server does not exist or anything. after I shutdown pivpn then fire up my old openvpn access server and reassign the port forward to openvpn access server, it works no problem.

Commands:
pvpn@pvpn47:~$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 pvpn47:domain           :                     LISTEN
tcp        0      0 :ssh                   :                     LISTEN
tcp        0      0 localhost:ipp           :                     LISTEN
tcp6       0      0 [::]:ssh                [::]:                  LISTEN
tcp6       0      0 ip6-localhost:ipp       [::]:*                  LISTEN
udp        0      0 *:ipp                   :
udp        0      0 :65509                 :
udp        0      0 pvpn47:domain           :
udp        0      0 :bootpc                :
udp        0      0 :mdns                  :
udp        0      0 :53721                 :
udp6       0      0 [::]:mdns               [::]:
udp6       0      0 [::]:37212              [::]:
udp6       0      0 [::]:26178              [::]:
raw6       0      0 [::]:ipv6-icmp          [::]:                  7
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     12989    /run/user/1000/keyring-GOIcEj/control
unix  2      [ ACC ]     STREAM     LISTENING     11689    @/tmp/dbus-aCGKupfQwZ
unix  2      [ ACC ]     STREAM     LISTENING     11747    @/tmp/dbus-o4ZE8eo5GH
unix  2      [ ACC ]     STREAM     LISTENING     11787    @/tmp/.ICE-unix/1818
unix  2      [ ACC ]     STREAM     LISTENING     13030    /run/user/1000/keyring-GOIcEj/ssh
unix  2      [ ACC ]     STREAM     LISTENING     11224    /run/user/1000/keyring-GOIcEj/gpg
unix  2      [ ACC ]     STREAM     LISTENING     11225    /run/user/1000/keyring-GOIcEj/pkcs11
unix  2      [ ACC ]     STREAM     LISTENING     13285    /run/user/1000/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     9141     @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     13008    @/tmp/dbus-0p90CxZvJJ
unix  2      [ ACC ]     STREAM     LISTENING     9755     /var/run/sdp
unix  2      [ ACC ]     STREAM     LISTENING     9782     /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     9831     /var/run/cups/cups.sock
unix  2      [ ACC ]     STREAM     LISTENING     10818    /var/run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     7922     @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     9984     /var/run/dhcpcd.sock
unix  2      [ ACC ]     STREAM     LISTENING     13676    @/tmp/dbus-RwNCcD7p
unix  2      [ ACC ]     STREAM     LISTENING     9687     /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     11659    @/com/ubuntu/upstart-session/1000/1636
unix  2      [ ACC ]     STREAM     LISTENING     9142     /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     11788    /tmp/.ICE-unix/1818
unix  2      [ ACC ]     SEQPACKET  LISTENING     8807     /run/udev/control
What shows on clients when I try to connect with the OVPN file:
Tue Mar 27 21:31:14 2018 UDP link remote: [AF_INET]MYIP:1194
Tue Mar 27 21:31:14 2018 MANAGEMENT: >STATE:1522211474,WAIT,,,,,,

pvpn@pvpn47:~$ sudo netstat -uanp | grep openvpn
pvpn@pvpn47:~$ <Yes, this shows nothing>

Looks like openvpn does not bind to the port. Dumb question: did you reboot after installing? Can you post the log file /var/log/openvpn.log

I am having the exact same problem as @UNlDAN is having also on ubuntu 16.04, so if i need to test something just tell me!

Get root: sudo -i
Add the key: wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add -
Add the repo: echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
Update the package cache: apt update
Reinstall OpenVPN: apt install --reinstall openvpn
Reboot and try again: reboot

@orazioedoardo That worked! Thankyou!

@orazioedoardo Thank you so so much for this. I've spent so many hours searching for a solution with this simple installation. This worked for me! I'd hug you if I could.


down to three names in final_final_final_final

we first ran grep "CLUE" crimescene to get the out put of the clues
CLUE: Footage from an ATM security camera is blurry but shows that the perpetrator is a tall male, at least 6'. CLUE: Found a wallet believed to belong to the killer: no ID, just loose change, and membership cards for AAA, Delta SkyMiles, the local library, and the Museum of Bash History. The cards are totally untraceable and have no name, for some reason. CLUE: Questioned the barista at the local coffee shop. He said a woman left right before they heard the shots. The name on her latte was Annabel, she had blond spiky hair and a New Zealand accent.
we figured from here that the suspect is a male, at least 6', had memberships in AAA, Delta SkyMiles, the local library, and the Museum of Bash History
Here are the steps we took to get to our current list of names:

sort each of the membership list into alphabetical order without case sensitivity

sort <file1.txt> -o <output.txt>

compare each of the files to find common string matches of names

comm -12 <file1.txt> <file2.txt> > <output.txt>

filter the list of people by male and reduce to a list of only names

cat male_sort.txt | cut -f 1 > male_sort_cut.txt

filter vehicles list by groups that match `Height: 6:

grep -B 1 -A 3 "Height: 6" vehicles > vehicles_height.txt

filter height list by Owners name and sort it

grep -E "Owner:" vehicles_height.txt | sed 's/Owner: //' > vehicles_height_owner.txt
comm -12 final_final_final.txt vehicles_height_owner_sort.txt > final_final_final_final.txt
We are down to the following names, but need to narrow it down to one!
➜ cat final_final_final_final.txt  Augustin Lozano Brian Boyer Jeremy Bowers

Are you looking for help?
I played it today and found the solution quite simple.
Your approach with sorting and comparing is not the way to do it. I initially thought that too, but it is a murder mystery and not a learn-how-to-bash.
You can actually question people with the interviews.
I was able to find the murderer even without the clue about the memberships.

@veltman I think this PR was mistakenly opened against your repo and can be closed.


Move ndarray conversion to a Converter

This PR moves ndarray handling to a converter.
This required extensive changes to the internal block API which had several knock-on effects.
Public changes
AsdfConfig.convert_unknown_ndarray_subclasses
Moving ndarray to a converter means that subclasses are no longer automatically converted.
This change would break stdatamodels (where FITS_rec is automatically converted to ndarray) and breaks one test in asdf-astropy (because of NDArrayMixIn).
It seems likely there are other instances 'in the wild' so an AsdfConfig option, convert_uknown_ndarray_subclasses was added and some internal changes were added to allow the new ndarray converter to continue handling subclasses. If an instance of a subclass of ndarray is encountered during serialization which is not explicitly handled by a converter and the convert_unknown_ndarray_subclasses option is enabled (as is by default), this instance will be coerced into an ndarray and a warning will be issued (this warning means that the test in asdf-astropy will continue to fail as warnings are converted to errors).
A note was added to the docs describing that the default setting for this will be converted to False and the option (and special handling) removed in a future version of asdf.
asdf.Stream moved to asdf.tags.core.Stream and asdf.stream deprecated
This is more consistent with other special tag related objects (asdf.tags.core.NDArrayType, asdf.tags.core.IntegerType etc). As an added benefit, the eventual removal of asdf.stream should allow the docs to build for development installs on systems that are case-insensitive (by removing the ambiguous asdf.Stream and asdf.stream).
Changes to Converter and SerializationContext methods for block access
This changes some of the unreleased public API added in #1508
The updates to the block management to allow moving ndarray to a converter meant that some of the complexity added in #1508 could be removed. With the changes in this PR, the SerializationContext is now aware if a serialization or deserialization is being performed and what object is being handled (and can automatically generate and assign keys for most use cases). This means that asdf.util.BlockKey is no longer needed (extension code still needs to generate keys if an object reads from multiple blocks, by generating keys with SerializationContext.generate_block_key asdf can automatically associate these with the correct object). Key-related changes to SerializationContext are:

update find_block_index(key, data_callback=None) to find_available_block_index(data_callback, key=None)
update get_block_data_callback(index) to get_block_data_callback(index, key=None)
removed assign_block_key (all assignment is now automatic)

These changes also mean that Converter.reserve_blocks is no longer needed and was removed.
array settings copied between AsdfFile instances
To fix #1524 and remove an undocumented behavior, creating an AsdfFile with an existing AsdfFile (AsdfFile(af)) no longer attempts to copy block options from the original AsdfFile. This was previously done inconsistently and could result in files that could not be opened (see #1524).
external blocks are no longer memmapped
In working towards a fix for #1525 memmapping for external blocks was disabled. With this PR external blocks are always lazy loaded and never memmapped. If these are sensible settings I propose we document the behavior and close the issue. If instead further changes are needed to allow control over lazy loading, memmapping or read/write mode than a separate PR will be needed.
AsdfFile.update block organization change
Instead of attempting to limit the number of blocks moved/rewritten (which added significant complexity), AsdfFile.update now writes all new blocks to the end of the file then moves the blocks to the end of the new tree and updates associations between data callbacks and blocks to allow objects that lazy load blocks to read the correct block. This new strategy allows for updating with compressed blocks (where the size is unknown until the data is written) and allows for any change in tree size (even if it completely overwrites all previous blocks). This has one major downside where for a very large file it can temporarily almost double in size. However, the final file size after an update with this PR should be equivalent or even smaller (windows support for truncating was added in this PR to allow the final file to be a sensible size without excessive padding). This seems like a reasonable trade-off (exchanging some storage inefficiency for simplicity in code) to fix the numerous errors related to update found during work on this PR.
Private API changes
Removal of block.py and replacement with _block submodules
The Block and BlockManger classes were removed and replaced with a number of new classes and functions. Documentation was added to the new _block submodules and should serve as the primary description of this new code (and should be updated based on questions and comments to the PR).
The changes to the internal block API do mean that sphinx-asdf is no longer compatible with this PR. A PR was opened for sphinx-asdf to make it compatible with the changes in this PR and previous versions of ASDF: https://github.com/asdf-format/sphinx-asdf/pull/64
To allow docs to build for this PR the requirements were temporarily changed to install sphinx-asdf from the source branch for the sphinx-asdf PR linked above. Once the private block API changes in this PR are decided the sphinx-asdf PR can be finalized, merged, released and the requirements updated here (either prior to or after merging but prior to release of asdf 3.0).
Test strucuture
Numerous issues were discovered during this rewrite:

#1520
#1522
#1523
#1524
#1525
#1526
#1530
#1534
#1538
#1539
#1540
#1541
#1542
#1545
#1546
#1547
#1548
#1549

Fixes or work towards fixes for many issues are included in this PR

#1013 a test was added for a possible fix for this, if we decide that SerializationContext should have the same public set_array_storage methods as AsdfFile than this issue could be solved
fixes #1520
fixes #1523
fixes #1524 by not copying block options between AsdfFiles
fixes #1526
#1530 a test was added and xfailed as this may require subclassing ndarray
fixes #1534
fixes #1538
#1539 a test was added and xfailed, this will require possibly major changes to generic_io
fixes #1540
fixes #1541
fixes #1542

To make it more obvious which tests correspond to issues, which are unit tests and which are now 'legacy' tests a new test organization was started in this PR.
'legacy' tests were mostly untouched (left in the same location and only updated to reflect changes to any internal API used and changed in this PR).
Tests that correspond to a specific issue are organized in _tests/_issues. Each issue gets it's own file test_1520.py with a function test_1520 with a docstring linking to the github issue and code that closely reflects any minimal test case in the issue.
New unit tests (like those added for _block) are organized in a directory structure that matches the code layout (asdf._block.key tests exists in asdf._tests._block.key). The goal is to have 100% test coverage for a submodule using only the tests for that module. Measurement of this goal is not currently done in the CI (and has to be checked manually) and this PR does not achieve that goal for all changes (especially asdf._block.manager which attempts to mimic the old BlockManager).

Roman regression tests showing no new errors (19 are failing due to unrelated roman issues)
https://plwishmaster.stsci.edu:8081/blue/organizations/jenkins/RT%2FRoman-devdeps/detail/Roman-devdeps/286/pipeline/185

Running the benchmarks on this PR vs main I see only one major difference. For 'large' files (these have 26 x 26 = 676 tree nodes) both custom_tree_to_tagged_tree and tagged_tree_to_custom_tree are roughly 2x slower with this PR. My initial suspicion is that this has to do with the addition of the Serialization and Deserialization operations that get created, used and discarded for each object. It probably makes more sense to have these created once for each tree operation and re-used/reset for each object.

Running the benchmarks on this PR vs main I see only one major difference. For 'large' files (these have 26 x 26 = 676 tree nodes) both custom_tree_to_tagged_tree and tagged_tree_to_custom_tree are roughly 2x slower with this PR. My initial suspicion is that this has to do with the addition of the Serialization and Deserialization operations that get created, used and discarded for each object. It probably makes more sense to have these created once for each tree operation and re-used/reset for each object.

The changes in 52f7bf8 and 77fb0e6 improve the performance of these operations by:

indexing blocks to be written by their data for fast finding of shared blocks (40% improvement)
create one Serialization/Deserialization per call to custom_tree_to_tagged_tree/tagged_tree_to_custom_tree and do not use it as a context manager (14% improvement)
pre-calculate the context version string (to avoid a call to the ctx.version_string property for every node) (4% improvement)
cache converter and AsdfType lookups (3% improvement)
In total this makes custom_tree_to_tagged_tree about 20% faster compared to main and tagged_tree_to_custom_tree is a few percent faster.

The JWST regression tests finished with 74 fewer errors than the previous run which suggests other changes are confounding the result:
https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-devdeps/662/
I ran a follow up using asdf main:
https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-devdeps/663/
that had 2 fewer errors:

test_nirspec_missing_msa_nofail
test_nirspec_missing_msa_fail
These will require some investigation. It appears the jwst downstream tests are also now failing although I don't immediately see how the failures are related to the recent changes.

Comparing the jwst CI tests to a run on a PR that includes only documentation changes shows the same failures as the run here:
https://github.com/spacetelescope/jwst/actions/runs/4996866055?pr=7589
I think it's safe to say the 8 failing tests in jwst are not related to the changes in this asdf PR.

I've been so far unable to replicate the 2 failed jwst regression tests.
I am rerunning the regression tests to see if they repeat. They only occurred in the mac-os run which appears stuck for the rerun I started earlier today:
https://plwishmaster.stsci.edu:8081/blue/organizations/jenkins/RT%2FJWST-devdeps/detail/JWST-devdeps/664/pipeline/192

@eslavich while doing some testing with reading and writing to (a fake) s3. I encountered 2 new issues that are related to this PR.
All of the tests so far have been with a fake s3 so I need to verify that this is the same for real s3.
The first issue is that reading from s3 (using s3fs) produces a file-like object that has no valid fileno. This means that np.fromfile used in GenericFile.read_into_array will fail. This issue also impacts the code in main so I opened a separate issue: https://github.com/asdf-format/asdf/issues/1552
The second issue is that writing to s3 (using s3fs) produces a file-like object that is not seekable but in this case returns valid results for 'tell'. This differs from https://github.com/asdf-format/asdf/issues/1542 as it appears that os.pipe produces a file that is not seekable and calling tell raises an exception. The changes in this PR skipped attempting to write a block index to a non-seekable file but with this new case (for the file-like object produced by s3fs) we can and likely should write a block index. I'm inclined to fix this issue in this PR since it does not impact main. However I don't want this change to negatively impact any in-progress review of this PR.
Would you like me to open a separate issue (and follow-up PR) for the second issue above or update this PR to fix the issue?

WelDX errors are due to a new version of pint (0.22). In brief, pint.Quantity now appears as pint.registry.Quantity when the class name is inspected. This, combined with asdf matching by string when a converter type is provided as a string resulted in the failures. See this PR for a fix:
https://github.com/BAMWelDX/weldx/pull/880

dkist failures look unrelated to this PR and instead likely due to the more recent runs testing with 'globus==3.20.x' instead of '3.19.x' and this draft dkist PR:
https://github.com/DKISTDC/dkist/pull/198

Tests that correspond to a specific issue are organized in _tests/_issues. Each issue gets it's own file test_1520.py with a function test_1520 with a docstring linking to the github issue and code that closely reflects any minimal test case in the issue.

I vehemently disagree with this approach. Test names should be descriptive of what they are testing for. There is no way for anyone to have a clue what a test is about from the failure report from pytest as an issue number is basically arbitrary.
Yes the docstring for the test should link back to the issue on GitHub, and sure the docstring should contain some sort of description of what is failing. However, I should not have to actually look at the source code to have any idea of what could be breaking. This will make contributing to the source code more and more hostile to new contributors as the number of issue related tests rises.

Fixes or work towards fixes for many issues are included in this PR

controlling array storage in to_yaml_tree methods #1013 a test was added for a possible fix for this, if we decide that SerializationContext should have the same public set_array_storage methods as AsdfFile than this issue could be solved
fixes A failed update can corrupt the file #1520
fixes update corrupts stream data #1523
fixes array storage settings are inconsistently propagated to new AsdfFile and can produce a file that cannot be opened #1524 by not copying block options between AsdfFiles
fixes Rewriting a file with external blocks fails if arrays are not first accessed #1526
Calling update with memmapped data can create invalid data in memmap views #1530 a test was added and xfailed as this may require subclassing ndarray
fixes Support file truncating on windows #1534
fixes ASDF unable to read empty inline array. #1538
Seek and read from closed MemoryIO #1539 a test was added and xfailed, this will require possibly major changes to generic_io
fixes ASDF writes but fails to read inline structured array #1540
fixes Block checksums are only checked for first block if a block index is present #1541
fixes ASDF fails to write blocks to non-seekable file  #1542
'

If any of these fixes is largely independent of the moving of ndarray conversion to a converter, then they should each be in their own distinct PR.

Here is an example from the past: https://github.com/spacetelescope/pysynphot/blob/387eb5a4f90a031b28400f27ac34469606d50e5b/pysynphot/test/test_box.py#L15
def test_ticket114():
    bp = Box(500, 10, waveunits='nm')
    assert str(bp.waveunits) == 'nm'  # test units
    assert bp.sample(500) == 1  # test inside

I have no idea what Ticket 114 is. If I ever have to update this test, I can never be sure if I have changed its original intention or not. It is definitely not the 114 on GitHub:

https://github.com/spacetelescope/pysynphot/pull/114

A final smattering of not-very-consequential comments. Thanks for bearing with me!

"final" :-O :)
Thanks for the suggestions and questions! They improved the code.
I do see a few new errors in sunpy and dkist because of the warnings from invalid block indicies that will need some investigation.

I updated and release sphinx-asdf and updated pyproject.toml (setting a lower pin and removing the dev requirement) so now the docs build with the pypi version of sphinx asdf.
I've opened PR for:

stdatamodels to convert all fitsrec to arrays prior to passing them to asdf for validation or serialization: https://github.com/spacetelescope/stdatamodels/pull/205 (I took a brief stab at completely removing fitsrec but there is at least one use of it for storing units and numerous uses of things like fields and the case insensitivity of names which will need to be sorted): https://github.com/spacetelescope/stdatamodels/pull/205
asdf-astropy to add a converter/tag/schema for NdarrayMixin: https://github.com/astropy/asdf-astropy/pull/200
dkist to update files with incorrect block indexes: https://github.com/DKISTDC/dkist/pull/296


Add no-dollar-variables rule

Closes #243

Coverage decreased (-0.009%) to 92.109% when pulling efa3f51baddf5145366320b747d673c7bc2cc217 on rule/no-dollar-variables into 69a4c625009fde200c54556d11a3f18fa34cf29c on master.


Remove Bootstrap

Is your feature request related to a problem? Please describe
The site at the moment only uses Bootstrap's _reboot.scss and in the future the package will not be required. Removing should reduce setup and build time with reduced files sent to the user.
Describe the solution you'd like

Remove Bootstrap from the project
Create a _reset.scss by combining normalize.scss and _reboot.scss
Test on various browsers like Chrome and Mozilla FireFox

Additional context

Reboot, Resets, and Reasoning

It makes more sense to remove Bootstrap when the site will be getting a makeover, so will linking it to issue #26 since should happen at a same time


Remove dependency to rxjs-compat

It seems the project depends on rxjs-compat. It would be nice to get rid of this dependency and change the implementation such that the new rxjs API is used.

+1