[Bug]: Fabric server crashes while starting

What happened?
It's a weird crash that happens sometimes in some situations, I've tried everything to try to find a pattern for how this crash occurs but I couldn't.
Sometimes when I start the server for the first time (with the config file configured) the crash occurs and the only way to fix it is deleting the entire config folder, and putting only the botToken and botChannel. When I change any other settings the crash happens again.
Sometimes after trying several times the crash magically doesn't happen anymore, but then it comes back
According to the crash report, the problem is that the bot can't find the discord channel, but I've already changed and tried with several different channels and the crash keeps happening.
Game Version
Other
What platform are you using?
Fabric
Platform version
Minecraft 1.18.1 - Fabric 0.12.12
Config File
# General options for the bot
[general]
  # Insert your Bot Token here!
  # DO NOT SHARE IT WITH ANYONE!
  botToken = "censored"
  # The channel ID where the bot will be working in
  botChannel = "887435656312283166"
  # The bot's status message
  #
  # PLACEHOLDERS:
  # %online% - Online Players
  # %max% - Maximum Player Amount
  botStatusName = "%online% jogadores Online"
  # Type of the bot's status
  # Allowed Values: DISABLED,PLAYING,WATCHING,LISTENING,STREAMING,COMPETING
  botStatusType = "PLAYING"
  # URL of the bot's stream when using the status type 'STREAMING'
  # Has to start with https://twitch.tv/ or https://www.youtube.com/watch?v=
  streamingURL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  # Enable checking for updates?
  # Notification will be shown after every server start in log when update is available
  enableUpdateChecker = true
  # The minimum release type for the update checker to notify
  # Allowed values: release, beta, alpha
  updateCheckerMinimumReleaseType = "beta"
  # Set to false to disable config migration from other mods/plugins to this one
  # This does not prevent updating of this config after mod updates
  allowConfigMigration = true
  # Attempt to parse id-based mentions to names in in-game chat
  parseMentionsIngame = true
# Configuration options for commands
[commands]
  # The Role IDs of your Admin Roles
  # Now supports multiple roles which can access admin commands
adminRoleIDs = [  "896226566118457344"  ]
  # Add your custom commands here
  # You can also generate some on https://erdbeerbaerlp.de/dcintegration-commands/
  # You must op this UUID in the ops.txt or some custom commands won't work!
  senderUUID = "8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3"
  # Enable help command?
  # Disabling also removes response when you entered an invalid command
  # Requires server restart
  helpCmdEnabled = true
  # Enable the list command in discord
  # Requires server restart
  listCmdEnabled = true
  # Enable the uptime command in discord
  # Requires server restart
  uptimeCmdEnabled = true
  # Set to false to completely disable the "Unknown Command" message
  showUnknownCommandMessage = true
  # Set to true to enable the "Unknown Command" message in all channels
  showUnknownCommandEverywhere = false

    [[commands.customCommands]]
      name = "kick"
      description = "Kicks an player from the Server"
      mcCommand = "kick %player% %reason%"
      adminOnly = true
      hidden = false

        [[commands.customCommands.args]]
          name = "player"
          description = "The player to be kicked"
          optional = false

        [[commands.customCommands.args]]
          name = "reason"
          description = "Reason for the kick"
          optional = true

    [[commands.customCommands]]
      name = "stop"
      description = "Stops the server"
      mcCommand = "stop"
      adminOnly = true
      hidden = false
args = [    ]

    [[commands.customCommands]]
      name = "kill"
      description = "Kills an Player or Entity"
      mcCommand = "kill %target%"
      adminOnly = true
      hidden = false

        [[commands.customCommands.args]]
          name = "target"
          description = "The target(s) for the kill command."
          optional = false
# Toggle some message related features
[messages]
  # Enable formatting conversion (Markdown <==> Minecraft)
  convertCodes = true
  # Send formatting codes from mc chat to discord
  # Has no effect when markdown <==> Minecraft is enabled
  formattingCodesToDiscord = false
  # Should /say output be sent to discord?
  sendOnSayCommand = true
  # Should /me output be sent to discord?
  sendOnMeCommand = true
  # When an /say command's message starts with this prefix, it will not be sent to discord
  sayCommandIgnoredPrefix = "§4§6§k§rwasdwasdwasd"
  # Should tamed entity death be visible in discord?
  sendDeathMessagesForTamedAnimals = true
# Advanced options
[advanced]
  # Custom channel ID for server specific messages (like Join/leave)
  # Leave 'default' to use default channel
  serverChannelID = "default"
  # Custom channel ID for death messages
  # Leave 'default' to use default channel
  deathsChannelID = "default"
  # Custom channel for for ingame messages
  # Leave 'default' to use default channel
  chatOutputChannelID = "default"
  # Custom channel where messages get sent to minecraft
  # Leave 'default' to use default channel
  chatInputChannelID = "default"
# Config options which only have an effect when using forge
[forgeSpecific]
  # A list of blacklisted modids
  # Adding one will prevent the mod to send messages to discord using forges IMC system
IMC_modIdBlacklist = [  "examplemod"  ]
  # Show item information, which is visible on hover ingame, as embed in discord?
  sendItemInfo = true
# Configuration for linking
[linking]
  # Unlink players when they leave the discord server for whatever reason (ex. leave,kick,ban)?
  unlinkOnLeave = true
  # Should discord linking be enabled?
  # If whitelist is on, this can NOT be disabled
  # DOES NOT WORK IN OFFLINE MODE!
  enableLinking = true
  # Role ID of an role an player should get when he links his discord account
  # Leave as 0 to disable
  linkedRoleID = "0"
  # Enable discord based whitelist?
  # This will override the link config!
  # To whitelist use the whitelist command in the bot DMs
  whitelistMode = false
  # Adding Role IDs here will require the players to have at least ONE of these roles to link account
requiredRoles = [    ]
settingsBlacklist = [    ]

    # Allows you to configure the default values of some personal settings
    [linking.personalSettingsDefaults]
      default_useDiscordNameInChannel = true
      default_ignoreReactions = false
      default_pingSound = true
# Webhook configuration
[webhook]
  # Whether or not the bot should use a webhook (it will create one)
  enable = true
  # The avatar to be used for server messages
  serverAvatarURL = "censored"
  # The name to be used for server messages
  serverName = "test"
  # The URL where the player avatar gets fetched from
  #
  # PLACEHOLDERS:
  # %uuid% - Returns the player's UUID with dashes
  # %uuid_dashless% - Returns the player's UUID without dashes
  # %name% - Returns the player's name
  # %randomUUID% - Returns an random UUID which can be used to prevent discord cache
  playerAvatarURL = "https://minotar.net/avatar/%name%"
# Allows you to modify and translate most of the messages this bot will send
[localization]
  # This is what will be displayed ingame when someone types into the bot's channel
  # PLACEHOLDERS:
  # %user% - The username
  # %id% - The user ID
  # %msg% - The message
  ingame_discordMessage = "§6[§5DISCORD§6]§r <%user%> %msg%"
  # This is what will be displayed ingame when someone sends an reply into the bot's channel
  # PLACEHOLDERS:
  # %user% - The username
  # %id% - The user ID
  # %msg% - The reply message
  # %ruser% - The username of the message that got the reply
  # %rmsg% - The replied message
  ingame_discordReplyMessage = "§6[§5DISCORD§6]§r §a%user%§r em resposta para §3%ruser%§r: %msg%"
  # Message shown when hovering over the username of an discord message
  # PLACEHOLDERS:
  # %user% - The username/nickname (Someone123)
  # %user#tag% - The username with tag (someone#0001)
  # %id% - The user ID
  #
  # NOTE: using an @ here can cause ping sounds ingame
  discordUserHover = "§3Discord User %user#tag%\n§aClique para mencionar"
  # This message will edited in / sent when the server finished starting
  serverStarted = "***Server Iniciado!***"
  # Message to show while the server is starting
  # This will be edited to SERVER_STARTED_MSG when webhook is false
  serverStarting = "***Server Iniciando...***"
  # This message will be sent when the server was stopped
  serverStopped = "***Server Parou!***"
  # The message to print to discord when it was possible to detect a server crash
  serverCrash = "***Server Crash detectado!*** :thinking:"
  # Gets sent when an player joins
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  playerJoin = "`%player%` entrou"
  # Gets sent when an player leaves
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  playerLeave = "`%player%` saiu"
  # Gets sent when an player dies
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  # %msg% - The death message
  playerDeath = "`%player%` %msg%"
  # Message sent instead of playerLeave, when the player times out
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  playerTimeout = "`%player%` timed out!"
  # Gets sent when an player finishes an advancement
  # Supports MulitLined messages using \n
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  # %name% - The advancement name
  # %desc% - The advancement description
  advancementMessage = "`%player%` conseguiu a conquista **%name%**\n_%desc%_"
  # The chat message in discord, sent from an player in-game
  #
  # PLACEHOLDERS:
  # %player% - The player's name
  # %msg% - The chat message
  discordChatMessage = "`%player%`: %msg%"
  # Sent to a player when someone reacts to his messages
  # PLACEHOLDERS:
  # %name% - (Nick-)Name of the user who reacted (format: 'SomeNickName')
  # %name2% - Name of the user who reacted with discord discriminator (format: 'SomeName#0123')
  # %msg% - Content of the message which got the reaction
  # %emote% - The reacted emote
  reactionMessage = "§6[§5DISCORD§6]§r§7 %name% reagiu a sua mensagem \"§9%msg%§7\" com '%emote%'"
  # Message shown for attachments
  attachment = "Attachment"
  # Message shown for stickers
  sticker = "Sticker"
  # Header for Embeds
  embed = "Embed"
  # Message shown for embed images
  embedImage = "Image"
  # Message shown for embed messages
  embedMessage = "Message"
  # Hover message for the bot tag ingame
  bot = "Esse usuário é um bot"

    # Strings about the discord commands
    [localization.commands]
      # Shown in console when trying to use the discord command
      ingameOnly = "This command can only be executed ingame"
      # Shown when successfully reloading the config file
      configReloaded = "Config reloaded!"
      # Shown when an subcommand is disabled
      subcommandDisabled = "This subcommand is disabled!"
      # Message sent when user does not have permission to run a command
      noPermission = "You don't have permission to execute this command!"
      # Message sent when an invalid command was typed
      #
      # PLACEHOLDERS:
      unknownCommand = "Unknown command, try `/help` for a list of commands"
      # Message if a player provides less arguments than required
      notEnoughArguments = "Not enough arguments"
      # Message if a player provides too many arguments
      tooManyArguments = "Too many arguments"
      # Message if a player can not be found
      #
      # PLACEHOLDERS:
      # %player% - The player's name
      playerNotFound = "Can not find player \"%player%\""
      # The message for 'list' when no player is online
      cmdList_empty = "There is no player online..."
      # The header for 'list' when one player is online
      cmdList_one = "There is 1 player online:"
      # The header for 'list'
      # PLACEHOLDERS:
      # %amount% - The amount of players online
      cmdList_header = "There are %amount% players online:"
      # Header of the help command
      cmdHelp_header = "Your available commands in this channel:"
      # Message sent when ignoring Discord messages
      commandIgnore_ignore = "You are now ignoring Discord messages!"
      # Message sent when unignoring Discord messages
      commandIgnore_unignore = "You are no longer ignoring Discord messages!"
      # Message sent when using the uptime command
      #
      # PLACEHOLDERS:
      # %uptime% - Uptime in uptime format, see uptimeFormat
      cmdUptime_message = "The server is running for %uptime%"
      # The format of the uptime command
      # For more help with the formatting visit https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/time/DurationFormatUtils.html
      uptimeFormat = "dd 'days' HH 'hours' mm 'minutes'"
      # Shows when running slash commands as command response
      executing = "Executing..."
      # Command argument description for the linkcheck command's Discord user parameter
      cmdLinkcheck_userargDesc = "The discord user to check"
      # Command argument description for the linkcheck command's minecraft player parameter
      cmdLinkcheck_mcargDesc = "The minecraft player's UUID or Name to check"
      # Sent when checked user is not linked
      cmdLinkcheck_notlinked = "This account is not linked!"
      #
      cmdLinkcheck_discordAcc = "Discord-Account: "
      cmdLinkcheck_minecraftAcc = "Minecraft Account: "
      cmdLinkcheck_cannotGetPlayer = "Error getting player information! Maybe you used an invalid name / UUID"
      cmdSett_key = "Destination settings key"
      cmdSett_val = "Settings value"
      cmdSett_set = "Change an setting"
      cmdSett_get = "Retrieve an setting value"

        # Command descriptions
        [localization.commands.descriptions]
          settings = "Allows you to edit your personal settings"
          uptime = "Displays the server uptime"
          help = "Displays a list of all commands"
          list = "Lists all players currently online"
          link = "Links your Discord account with your Minecraft account"
          whitelist = "Whitelists you on the server by linking with Discord"
          linkcheck = "Shows info about an linked discord user or an ingame player"

    # Strings about the account linking feature
    [localization.linking]
      # Sent to the user when he linked his discord successfully
      # PLACEHOLDERS:
      # %player% - The in-game player name
      linkSuccessful = "Your account is now linked with %player%.\nUse /settings to view and set some user-specific settings"
      # Sent to the user when linking fails
      linkFailed = "Account link failed"
      # Sent when an already linked user attempts to link an account
      # PLACEHOLDERS:
      # %player% - The in-game player name
      alreadyLinked = "Your account is already linked with %player%"
      # Sent when attempting to use personal commands while not linked
      # PLACEHOLDERS:
      # %method% - The currently enabled method for linking
      notLinked = "Your account is not linked! Link it first using %method%"
      # Message of the link method in whitelist mode
      # Used by %method% placeholder
      linkMethodWhitelistCode = "joining the server and then using `/link <whitelist-code>` here"
      # Message of the link method in normal mode
      # Used by %method% placeholder
      linkMethodIngame = "`/discord link` ingame"
      # Sent when attempting to whitelist-link with an non uuid string
      # PLACEHOLDERS:
      # %arg% - The provided argument
      link_argumentNotUUID = "Argument \"%arg%\" is not an valid UUID or Name. Use `/whitelist <Name-or-UUID>`"
      # Sent when attempting to link with an unknown number
      invalidLinkNumber = "Invalid link number! Use `/discord link` ingame to get your link number"
      # Sent when attempting to link with an invalid number
      linkNumberNAN = "This is not a number!"
      # Message shown to players who are not whitelisted using discord
      # No effect if discord whitelist is off
      notWhitelistedCode = "§cYou are not whitelisted.\nJoin the discord server for more information\nhttps://discord.gg/someserver\nYour Whitelist-Code is: §6%code%"
      # Sent when trying to link without an required role
      link_requiredRole = "You need to have an role to use this"
      # Sent when trying to link as an non-member
      link_notMember = "You are not member of the Discord-Server this bot is operating in!"
      # Sent to the user when he linked his discord successfully
      # PLACEHOLDERS:
      # %name% - The linked discord name
      # %name#tag% - The linked discord name with tag
      linkSuccessfulIngame = "Your account is now linked with discord-user %name#tag%"
      # Message shown to players who want to link their discord account ingame
      #
      # PLACEHOLDERS:
      # %num% - The link number
      linkMsgIngame = "Send this command as a direct message to the bot to link your account: /link %num%\nThis number will expire after 10 minutes"
      # Shown when hovering over the link message
      hoverMsg_copyClipboard = "Click to copy command to clipboard"

    # Strings about the personal settings feature
    [localization.personalSettings]
      # Message for getting an setting's value
      personalSettingGet = "This settings value is `%bool%`"
      # Sent when user sucessfully updates an prersonal setting
      settingUpdateSuccessful = "Successfully updated setting!"
      # Header of the personal settings list
      personalSettingsHeader = "Personal Settings list:"
      # Error message when providing an invalid personal setting name
      invalidPersonalSettingKey = "`%key%` is not an valid setting!"
      settingsCommandUsage = "Usages:\n\n/settings - lists all available keys\n/settings get <key> - Gets the current settings value\n/settings set <key> <value> - Sets an Settings value"
      # Sent when setting an personal setting fails
      settingUpdateFailed = "Failed to set value :/"
      # Sent when attempting to change an blacklisted setting
      settingUpdateBlocked = "The server owner disabled changing of this setting"

        # Descriptions of the settings
        [localization.personalSettings.descriptons]
          ignoreDiscordChatIngame = "Configure if you want to ignore discord chat ingame"
          useDiscordNameInChannel = "Should the bot send messages using your discord name and avatar instead of your in-game name and skin?"
          ignoreReactions = "Configure if you want to ignore discord reactions ingame"
          pingSound = "Toggle the ingame ping sound"
          hideFromDiscord = "Setting this to true will hide all of your minecraft messages from discord"
# Configuration for the in-game command '/discord'
[ingameCommand]
  # Enable the /discord command to show an custom message with invite URL?
  enabled = false
  # The message displayed when typing /discord in the server chat
  message = "Join our discord! http://discord.gg/myserver"
  # The message shown when hovering the /discord command message
  hoverMessage = "Click to open the invite url"
  # The url to open when clicking the /discord command text
  inviteURL = "http://discord.gg/myserver"
# The command log channel is an channel where every command execution gets logged
[commandLog]
  # Channel ID for the command log channel
  # Leave 0 to disable
  channelID = "0"
  # The format of the log messages
  #
  # PLACEHOLDERS:
  # %sender% - The name of the Command Source
  # %cmd% - executed command (e.g. "say Hello World"
  # %cmd-no-args% - Command without arguments (e.g. "say"
  message = "%sender% executed command `%cmd%`"
  # A list of commands that should NOT be logged
ignoredCommands = [  "list", "help", "?"  ]
# Configure votifier integration here
# (Spigot only)
[votifier]
  # Should votifier messages be sent to discord?
  enabled = true
  # Custom channel ID for Votifier messages
  # Leave 'default' to use default channel
  votifierChannelID = "default"
  # The message format of the votifier message
  #
  # PLACEHOLDERS:
  # %player% - The player´s name
  # %site% - The name of the vote site
  # %addr% - (IP) Address of the site
  message = ":ballot_box: %player% just voted on %site%"
  # Name of the webhook title
  name = "Votifier"
  # URL of the webhook avatar image
  avatarURL = "https://www.cubecraft.net/attachments/bkjvmqn-png.126824/"
# Configure Dynmap integration here
[dynmap]
  # The message format of the message forwarded to discord
  #
  # PLACEHOLDERS:
  # %sender% - The sender´s name
  # %msg% - The Message
  dcMessage = "<%sender%> %msg%"
  # Custom channel ID for dynmap chat
  # Leave 'default' to use default channel
  dynmapChannelID = "default"
  # Name of the webhook title
  name = "Dynmap Web-Chat"
  # URL of the webhook avatar image
  avatarURL = "https://styles.redditmedia.com/t5_2kl3ct/styles/communityIcon_am5zopqnjhs41.png"
  # The name format of the message forwarded to the dynmap webchat
  #
  # PLACEHOLDERS:
  # %name% - The discord name of the sender (including nickname)
  # %name#tag% - The discord name with tag of the sender (without nickname)
  webName = "%name% (discord)"
  # Name shown in discord when no name was specified on the website
  unnamed = "Unnamed"
# Configure some plugin-specific BStats settings here
# Everything can be seen here: https://bstats.org/plugin/bukkit/DiscordIntegration/9765
#
# Does not apply to fabric yet, as there is no bstats for it
[bstats]
  # Allow sending of installed addon stats (Name and version of installed addons)
  sendAddonStats = true
# Settings for servers running as Bungeecord-suberver
[bungee]
  # Set this to true if the server is running as an subserver of an bungeecord network and therefore needs to be in offline mode
  # Setting this will force account linking in offline mode
  # Do NOT use for actual offline mode servers, as this will break the linking feature because of the UUIDs!
  #
  # Currently no support for floodgate running on bungee
  isBehindBungee = false

Crash report / Error log (if applicable)
https://pastebin.com/SUXyRUs1

Additional Information
No response

i have the same issue


[PE-D][Tester B] Wrong example given in UG for findw command

It seems like it should be "findw w/Intern,Google,2024" instead.

Labels: type.DocumentationBug severity.VeryLow
original: hyxnnii/ped#12

same as in tester A


Not working properly when using ternary operator

Describe the bug
Not working properly when using ternary operator
Reproduction
Not working properly when using ternary operator
{
    vueTemplate: true,
    imports: [
      'vue',
      'vue-router',
      {
        '@sxf/util/uuid': ['uuid'],
      },
    ],
    eslintrc: {
      enabled: true,
      filepath: './.eslintrc-auto-import.json',
      globalsPropValue: true,
    },
    dirs: [
      './util/**',
    ],
    dts: '../../types/auto-imports.d.ts',
  }

// util/config.ts
export const data = 1

// main.ts
const a = Math.random() > 0.5 ? data : 2

System Info
"unplugin-auto-import": "^0.11.2",

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

It works fine.
Does you config.ts is in src/util?
 dirs: [
   './src/composables',
   './src/util',
 ],

It works fine. Does you config.ts is in src/util? Pls check your auto-imports.d.ts if the data has been check->imported
 dirs: [
   './src/composables',
   './src/util',
 ],

You can check the reproduction link
https://codesandbox.io/s/elastic-bose-ok23h3?file=/src/main.ts

Please add auto-imports.d.ts to your tsconfig

Please add auto-imports.d.ts to your tsconfig

Seems like I'm providing a wrong use case. An error is reported when the ternary operator gets the value of auto-import. For example the picture below


Outlier report fixes 1

typing of integer args
various date wrangling
handle extra default args gracefully
correct template dir setting

Traceback (most recent call last):
  File "./manage.py", line 26, in <module>
    execute_from_command_line(sys.argv)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/webapps/openprescribing/openprescribing/pipeline/management/commands/outlier_reports.py", line 54, in handle
    runner.run()
  File "/webapps/openprescribing/openprescribing/pipeline/management/commands/outlier_reports.py", line 1177, in run
    self.build.fetch_results()
  File "/webapps/openprescribing/openprescribing/pipeline/management/commands/outlier_reports.py", line 548, in fetch_results
    self._get_hierarchy()
  File "/webapps/openprescribing/openprescribing/pipeline/management/commands/outlier_reports.py", line 585, in _get_hierarchy
    res.loc[stp_code, slice(None), slice(None)]
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/pandas/core/indexing.py", line 961, in __getitem__
    return self._getitem_tuple(key)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/pandas/core/indexing.py", line 1143, in _getitem_tuple
    tup = self._validate_tuple_indexer(tup)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/pandas/core/indexing.py", line 765, in _validate_tuple_indexer
    key = self._validate_key_length(key)
  File "/webapps/openprescribing/.venv38/lib/python3.8/site-packages/pandas/core/indexing.py", line 812, in _validate_key_length
    raise IndexingError("Too many indexers")
pandas.core.indexing.IndexingError: Too many indexers
Sentry is attempting to send 1 pending error messages```

From what I can tell, the structure of the `res` result dataframe is not the same as the code assumes, which leads to the indexing error. This function that reformats the entity hierarchy is a direct copy from [the existing outliers project[(https://github.com/ebmdatalab/outliers/blob/user-selectable-filtering/lib/outliers.py#L121) where it has run successfully as recently as yesterday.

What's the best way of debugging this to find out what the structure of `res` is at runtime and why the indexing is failing?

small-scale test run on largeweb2 2022-03-18 10:30 successfully produced report output


Haskell Syntax Highlighting is missing from the code-server marketplace

[ ] Extension name: Haskell Syntax Highlighting
[ ] Extension GitHub or homepage: https://github.com/JustusAdam/language-haskell/

The extension in question is a dependency of other Haskell-related extensions, such as Haskelly, meaning they're unusable right now. I suspect there might be other missing dependencies, so it's worth taking a look ^

yes, can confirm, that official Haskell extension not appear too:
https://marketplace.visualstudio.com/items?itemName=haskell.haskell
because it depends this:
https://marketplace.visualstudio.com/items?itemName=justusadam.language-haskell


How to rename continuous view name

Hi,
If I want to change the name of continuous view, how to do it？
Thanks！

Hi @qcli,
Currently there isn't a great way to rename a continuous view. Here's how you could do it though:

CREATE the new CV (identically to the existing one, of course)
Copy all data from the old CV's materialization table (<cv name>_mrel) into the new one:

-- Enable user-level writes on materialization tables for this transaction
SET continuous_query_materialization_table_updatable TO on;

-- Now just copy the old materialization table's rows into the new one
INSERT INTO <new cv name>_mrel SELECT * FROM <old cv name>_mrel;

Once you've verified that the new CV looks good, DROP the old CV

--
I realize this isn't ideal but I just wanted to offer a workaround approach until we support renaming, which we eventually will.

Hi @derekjn ,
Thank your reply. Looking forward to the day you support this feature.


Incompat with Frostiful / Thermoo

Minecraft Version
1.20.1
Fabric Version
0.15.1
Fabric API Version
0.91.0
Hephaestus Version
<IP_ADDRESS>
Describe your issue
A null pointer issue for getTouchingFluid(). Only happens with Hephaestus + Frostiful installed and only after loading a world and exploring for a bit.
You can reproduce the error by visiting a Frostiful Ice Castle structure using /locate structure
Crash Report
https://gist.github.com/sleepy-evelyn/2a83f6e7a35243033cea84d1f44cb6c5
Other mods
No other mods installed. Tested with just the 2 mods together.
Frostiful includes a few dependencies:

Cloth Config
Thermoo

Tried reproducing with just Tinkers?
Yes
Performance Enchancers
None of the above
Searched for known issues?
Searched open issues

Duplicate of #89

Just to note this is a similar issue but it's not an issue with Puzzles Lib.

How so? You the issue is the same

How so? You the issue is the same

It's not. Puzzles Lib isn't included in the modpack or as a dependency. There is no mention of Puzzles Lib in the crash report at all.

Yes but the underline issue is the same. I should probably rename the issue to make that more clear

Yes but the underline issue is the same. I should probably rename the issue to make that more clear

Yes true. Hence the Just to note this is a similar issue. I just wanted to make sure yah knew it wasn't Puzzle Lib specifically causing the issue :P

Fair enough

I've run into this exact issue, the getTouchingFluid() null pointer problem with Frostiful and was wondering if the issue was marked closed because there's an inherent incompatibility or if there is a fix for a future release? I've been digging through the code trying to figure out exactly what the issue might be in both Thermoo and Hephaestus and the most obvious cause is that it's possible to have null touchingFluid though the weird part is that some people on the server never get the error and some of us keep getting it and I'm just curious what the underlying cause is.
Thanks

It's closed because its a duplicate. The issue is with Star a library that I depend on

is it adding in a null check on the checkIfCustomFluidIsBreathable method or is there a bigger issue that making that check would just cover up?
And if I should move this over to the Star issue I can, mostly just trying to see if I might be able to fix it before recommending my sever just rollback the Hephaestus install.

Star is just needs a null check that's pretty much it. The only reason it hasn't been fixed was because I was working on a refactor for how star handled fluid physics

So, in theory assuming I can get Gradle to work, I would drop that check in and get it compiled then drop the jar into the Hephaestus...uh....lib folder in there? Sorry about this, I was just asked to look into this for my wife and her friends on their server as they really want to run tinkers but they love Frostiful as well. I mostly do enterpise servlets and applications and haven't done mod work before so I didn't want to promise them anything if the build process was a lot more complicated that I hoped.

Something like that, I'll see if I can push a quick fix to star. After that you'll just have to build the jar

That would be much appreciated. If Gradle works like Ant and I get the jar made would I also need to rebuild the whole Hephaestus mod as well? Not sure if you just unjar the Star library when packaging up Hephaestus or if there is a libs directory in the existing mod somewhere to drop it into. But if you could get a chance to make that fix on an expermental branch if you don't want it in main yet and give me a little bit of direction in deploying it, I'd greatly appreciate it.

You likely shouldn't need to modify the hephaestus. All you would need to do is put the new star jar in your mods folder and floader should load it instead of the one hephaestus bundles.

Here's a pre built jar, if it saves you the trouble https://drive.google.com/file/d/1NpHpdjlFVj7S_gDyTGtta3UkxOhut1j6/view?usp=sharing

Oh, wow, does that have the null check in it?

Yes I added it in this commit, https://github.com/AlphaMode/Star/commit/267014085b982c51a70467d612a5567f06e2b1f1 Let me know if the issue still happens

Do I need to add this to the existing Hephaestus-1.20.1-<IP_ADDRESS>.jar/META-INF/libs directory or will just putting into the servers mod directory load the classes from the Star.x.jar first (as I didn't see a separate Star.x.jar in the server mod directory)

You should only need to put it in your mods folder, you shouldn't need to edit the meta inf jars

Thank you very much, there will be some happy people over here tonight and if you have like a ko-fi or donation place let me know and we'll have a thank you :D


Powershell hangs or dies silently when running Read-Host -AsSecureString when invoked via Python subprocess

Steps to reproduce
import json, uuid, subprocess, base64

PSCODE = '''
[CmdletBinding()]
param
(
    $payload = (Read-Host -AsSecureString)
)
Get-Host
'''

def base64_encode_powershell(input_string):
    """
        Encodes input value in UTF-16 Little Endian, making it suitable for use with powershell's encoded command argument.
    """
    byte_string = input_string.encode('utf-16-le')
    encoded_data = base64.b64encode(byte_string)
    return encoded_data

def create_ps_file(ps_name, ps_content):
        ps_path = ps_name
        with open(ps_path, 'w+') as file:
            file.write(ps_content)
        return ps_path

ps_args = {}
ps_args['URL'] = "https://google.com"
payload = base64_encode_powershell(json.dumps(ps_args))
ps_path = create_ps_file('ps_' + str(uuid.uuid4()).replace('-','') + '.ps1', PSCODE)
output = subprocess.Popen(["pwsh", ps_path], stdin = subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = output.communicate(payload)
print stdout

Expected behavior
stdout in the Python code should contain the output of Get-Host
Name             : ConsoleHost
Version          : 6.2.1
InstanceId       : 5168dee8-2e5c-4967-9d78-b53372cf351d
UI               : System.Management.Automation.Internal.Host.InternalHostUserI
                   nterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Actual behavior
stdout in the Python code is empty, as is stderr

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Linux 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Note
The expected behavior is observed when using PowerShell 5 on a Windows system, using the exact same Python code (except for changing pwsh to powershell.exe and adding a -f to the args in the subprocess call.

Suggest to simplify python code and give os, python version

Close as stale issue. Feel free to continue discussion.

Close as stale issue. Feel free to continue discussion.


Testing Todo-list app part2

We ran a test for the clearAllCompleted,update and editing functions in the "to-do-list app" and we used the jest library.

Thank you


feat: omitempty Swarm.EnableRelayHop for circuit v1 migration

Needed for https://github.com/ipfs/go-ipfs/pull/8559

Unfortunately, semver will probably force us to release this as v0.18.0.

@aschmahmann fysa since we will be doing  v0.18.0 I'd like to include #135  in it as well.


lean: scalars form a preorder

Via the canonical injection, we can easily define an induced preorder on scalars and inherit all nice properties.
It's useful to reason on specific scalar preorders w.r.t. Ordering, see the binary search tree verification example.

Looks good, thanks for this!


feat(storage): change docs to use deis-object-storage-secret for configuring database

fixes #99

@kmala these docs LGTM. Don't they depend on a deis/postgres and/or deis/wal-e pull request?

yes...requires https://github.com/deis/postgres/pull/79


avoid creating resources if they exists in the DB, when terraform is created

Hello,
Thanks for adapting this module. At Wetransfer, we are thinking of using your module to terraform all our Redshift infrastructure objects( users, groups, schemas).
We have found one problem most of the redshift groups, and redshift schemas are already created on our database. So when we try to first create these objects, from Terraform we got an error, as the resource already exists in the database.
This PR adds a flag in some terraform objects, like groups and schemas to allow resource creation if already exists in the database the first time.
Please let me know if something is not clear.

@Javier162380 - were you able to give these steps a try?

Seems like that might have solved it. Feel free to reopen if needbe!


Anyone knows CN 6.20 OPCode?

{
"C2S_ActionRequest": "0x363",
"C2S_ActionRequestGroundTargeted": "0x3E1",
"S2C_ActionEffect01": "0x2AD",
"S2C_ActionEffect08": "0x199",
"S2C_ActionEffect16": "0x1E2",
"S2C_ActionEffect24": "0x3B6",
"S2C_ActionEffect32": "0x37E",
"S2C_ActorCast": "0x186",
"S2C_ActorControl": "0x365",
"S2C_ActorControlSelf": "0x245",
"Server_IpRange": "<IP_ADDRESS>/0",
"Server_PortRange": "1-65535"
}


Storage: Save Person List

Add interface to save a person list in a separate file specified by user.

Add XmlSerializablePersonList for fxml marshall
Add interface PersonListStorage and manager class XmlPersonStorage for save and load
Add abstract class XmlSerializableData for general data save
Change XmlSerializableAddressBook to extend XmlSerializableData
XmlFileStorage: Change saveDataToFile to accept general XmlSerializableData

Coverage decreased (-1.3%) to 90.823% when pulling e72f391d4f743b7361424292d42b5d5fe873166c on HanYaodong:feature-save-person-list into 20dc7c3bcbdb36a47a059a776766fc2432bd5a51 on CS2103-F11-B4:master.

Coverage decreased (-1.3%) to 90.823% when pulling e72f391d4f743b7361424292d42b5d5fe873166c on HanYaodong:feature-save-person-list into 20dc7c3bcbdb36a47a059a776766fc2432bd5a51 on CS2103-F11-B4:master.

Coverage decreased (-1.3%) to 90.823% when pulling 9bc001ca26f66f576d1be596a89184e653ceddd9 on HanYaodong:feature-save-person-list into 20dc7c3bcbdb36a47a059a776766fc2432bd5a51 on CS2103-F11-B4:master.

Changes Unknown when pulling b81f8d46ebf6b48882bf61e5841c61af580fb858 on HanYaodong:feature-save-person-list into ** on CS2103AUG2017-F11-B4:master**.

Changes Unknown when pulling b81f8d46ebf6b48882bf61e5841c61af580fb858 on HanYaodong:feature-save-person-list into ** on CS2103AUG2017-F11-B4:master**.

merge this PR. If not, this will not appear in my review on your team's PR on ABL4 repo

@cmkumar87 I have merged this PR


BREAKING CHANGE: remove kubo deps

This is independent of the "libp2p upgrade" process. It is still desired to try to remove kubo dependency.


Simple sum function in Javascript

Description
I have created a simple sum function in Javascript.
Additional Context

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


Fix part of errors in building demos.

Fix the error in building the mqttv5 demo.
Fix the error in building the mqtt demo.
Add a new interface to get reason codes from unsuback.

Codecov Report
Patch coverage has no change and project coverage change: -0.22 :warning:

Comparison is base (1f74bff) 61.57% compared to head (c32bd66) 61.35%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
- Coverage   61.57%   61.35%   -0.22%
==========================================
  Files          99       99
  Lines       26439    26453      +14
==========================================
- Hits        16279    16231      -48
- Misses      10160    10222      +62

Impacted Files
Coverage Δ

src/supplemental/mqtt/mqtt_msg.c
27.52% <0.00%> (-0.60%)
:arrow_down:

src/supplemental/mqtt/mqtt_public.c
16.40% <0.00%> (-0.21%)
:arrow_down:

... and 17 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Please add a license!

It means it's totally unambiguous for how we can share / re-use your code.
May I be so bold as to suggest the MIT license (https://opensource.org/licenses/MIT - it's what MicroPython is licensed under). You just need to stick the content of the license into a file called LICENSE and ensure you put your name with the copyright header.
Thank you in advance.

Duly added - thank you!


Create a Destination in the SAP BTP Cockpit

Tutorials: https://developers.sap.com/tutorials/cp-cf-create-destination.html
Hi Nico,
a full exmaple how to call ODATA on a Cloud for Customer system from BTP would be great.
I am missing the link, after creating the destination how to call the backend oData from  e.g. my UI5 client

Hi @jensniemeyer,
Sorry for the late reply - somehow I didn't get this issue assigned and only stumbled across it accidentally.
Sounds like what you are looking for is a tutorial on the cloud connector - this one one will do?
There is no direct URL to call a destination. What you would do to call a destination from a (UI5) client is set up an approuter and bind that to the destination service. See my blog post here: https://blogs.sap.com/2022/08/03/sap-tech-bytes-consume-data-using-destinations-with-an-approuter-cloud-foundry-basics-3/
Best, Nico


Fix spiders not conforming to events schema

Since we've been figuring out the events schema while spiders are being made, some of the earlier spiders don't conform to the events schema. At the hackathon, I plan to go through a bunch of my old spiders and bring them up to date to the events schema.

Sounds good, I was thinking about this too.

validation pipeline is done / a first version of the validation pipeline has been merged in


How do I download latest snapshot from master branch

How do I download the latest snapshot of master branch directly from github? I'm trying to get changes for https://github.com/algolia/algoliasearch-client-android/issues/20 and try to avoid checking out and compile the library manually.
I saw the dist directory and the latest build is not there and I tried to download using Jitpack.io but it keep giving me
Received status code 401 from server: Repo not found or no access token provided

Let's just ask @redox to release a new minor version :)

Released as 2.6.1 :)


Introduction paragraphs

Premise
In some chapters of the PHB and other source books, there's a head paragraph that is set up differently:

small caps on the first line
bigger line spacing
italics
ends with a quote attribution

E.g., each chapter introducing a race in the PHB, a character race in VGtM, or a class in XGtE.
Hacky solution
To obtain a similar effect, I'm using the following code.
\begin{onehalfspace}
\textsc{Some sentence which you happen to} \textit{have to break.
Some more sentences which are all jolly and well. Really, it's fine.}
\begin{flushright}--- Some Famous Wizard, \textit{Whatever book title}\end{flushright}
\end{onehalfspace}
\vspace{1.5\baselineskip}

However, it's not great.

There is too much vertical spacing between the quote and the quote attribution.
The whole code is a bit of a mess which I think can be simplified.

Questions
Can the code be made better?
Why is there such a big space between the quote and the quote attribution?
Is this of sufficient interest that I should make a \DndWizardQuote command?

The magaz package provides the \FirstLine{<text>} command which will set the first line in whatever font you like (It defaults to \scshape) and seems to work with your example:
\section{A New Section}
\begin{onehalfspace}\it\FirstLine{%
\noindent Some sentence which you happen to have to break.
Some more sentences which are all jolly and well. Really, it's fine.}
\begin{flushright}--- {\rm Some Famous Wizard}, Whatever book title
\end{flushright}
\end{onehalfspace}
%\vspace{1.5\baselineskip} % This doesn't seem necessary
\noindent \lipsum[2]

depends on
\usepackage{magaz}
\usepackage{setspace}
Typographically, it does seem the books use this for intro to sections, and does not indent the line (or the next paragraph).

Oh, this FirstLine thing might be useful for the Drop Caps work of #200
Thanks for the help. I'll adopt this method and possibly iterate over it a bit if I feel typesetty.

@raphael-proust, it looks like this is what you are running into:
https://tex.stackexchange.com/questions/27696/extra-intervals-before-and-after-flushright-environment
Your simplest option is to probably use \raggedleft within a group instead of the flushright environment.


Merge Uat ke PRD 28 April 2017

Coverage decreased (-0.1%) to 64.422% when pulling 5b86a15ad84bee4a658b58b80f9139e5d89be101 on uat into 9fa8740c92e1c2a98bfa6f69146defe743831092 on master.


Append arguments automatically on re-fired events, more robust arguments spread in method calls

Fixes #2253. Component event directives now append existing arguments by default:
<widget on-foo='bar' on-qux:'bizz:{{buzz}}'/>
will now fire bar and bizz with original arguments from foo and qux appended to any supplied arguments (added to value of {{buzz}} in on-qux firing of bizz).
Also makes ...argument in method calls more robust by allowing inclusion of spread at end of method allowing other arguments to be included:
<widget on-foo='bar( "foo", ...arguments )'/>

:+1: I wasn't even close


Connect local assistant to a static url

!WARNING: THIS IS A TECHNICAL PROTOTYPE; even if implemented you shouldn't rely on this current implementation nor any generated URLs, they will be removed!
Proposed changes:

extends #8897 (rasa chat command) and adds --share which will create a public URL that can be used for others to chat with your local assistant (e.g. https://bridge.rasa.com/chat/59f40eb98c8e48a1a9)
the website uses our new webchat to talk to the assistant
shared URL is stable across restarts - this is the difference to rasa chat which uses localhost

Example workflow:
https://user-images.githubusercontent.com/1098412/122189868-962c5680-ce91-11eb-8dc7-58de7d924527.mov
I am not sure how useful the sharable webchat is: I think the lacking piece is the ability to view conversations others have with your assistant. I think the static URL functionality is a lot more useful to connect your local assistant to e.g. slack / messenger / ... any external connector requiring a secured (https) and public URL (non localhost).

@TyDunn any plans to include an ngrok replacement? I think it enables us to connect channels a lot easier (as we could potentially do that in a UI at rasa.com). but given that the team has a lot on its plate happy to close this one.

@tmbo Not at this point. I really want to get to this, but it's too far from priorities atm


Updated alcor repo

This PR updates the alcor repo, which includes the updated neighbor.proto.

Can't see the change if clicking the "Files changed" button. Anything I miss? @zzxgzgz

Can't see the change if clicking the "Files changed" button. Anything I miss? @zzxgzgz
@xieus
This is what I see:

Alcor changed. Can you pls refresh and check again?

Can't see the change if clicking the "Files changed" button. Anything I miss? @zzxgzgz

This PR upgraded the sub-module (imports) of Alcor for instance Neighbor.proto members. We verified the version of Alcor:Master is the correct one, and the members of Neighbor.proto that ACA needs are expected and up-to-date.
Since Dahai checked in the changes to Alcor master branch, so I asked Zhaoxi updated ACA master branch also.

Sounds good to me.

@lfu-ps Don't worry about the request for review. Wrong button :-)


fix: escape raw identifier

fix a unexpected behavior when we use r#x
Example:
#[derive(Serialize, Deserialize, Component)]
struct Test {
  r#type: String
}

The result without this PR:
{"type":"object","properties":{"type":{"r#type":"string"}}}

On the second thought this could be addressed in utoipa-gen crate as it is the derive crate that holds the business logic for the types. the utoipa crate from src folder contains only types and should not contain business logic for type that alter the types. Users should have the ability and be in full control how the they form the types and what names they use as keywords.


beta - set the font family of an element - passed without semicolon in CSS rule

Challenge Name

https://beta.freecodecamp.org/en/challenges/basic-css/set-the-font-family-of-an-element
Issue Description

The challenge allows the code to pass when the semicolon is omitted from the CSS rule
Browser Information

Browser Name, Version: Chrome 64.0.3282.186 64-bit
Operating System: Windows 10 Pro 64-bit
Mobile, Desktop, or Tablet: Laptop
Your Code

  p {
    font-size: 16px;
    font-family: monospace
  }

Screenshot

CODE:

CHALLENGE PASSED MODAL:

Hi @mstellaluna,
while it may not a best practice to omit the last semi-colon, it's valid.
https://www.w3.org/TR/CSS2/syndata.html#declaration
https://www.w3.org/TR/CSS22/syndata.html#declaration

@mstellaluna People should definitely use a semicolon, but we should probably have a greater discussion around whether we want tests to enforce this. For now I'm going to label this as a wontfix.


CircleCI / Docker - Running ChromeDriver WASM unit tests in docker fails

This only fails when running inside Docker in CI. The tests pass locally
driver status: signal: 9
driver stdout:
    Starting ChromeDriver 2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926) on port 39291
    Only local connections are allowed.
    Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

driver stderr:
    [1583857375.960][SEVERE]: bind() failed: Cannot assign requested address (99)

Running test in CI with the Firefox driver at the moment.


Add workshop support

Support for setting workshop maps in docker-compose.yml

Thanks for the contribution! Do you have any suggested updates to README.md to document these options?

Thanks for the contribution! Do you have any suggested updates to README.md to document these options?

Sure, may add workshop guide like this.
Workshop options
Modify docker-compose.yml
Place the map id or collection id like this.
- CS2_HOST_WORKSHOP_MAP=xxxxxx
- CS2_HOST_WORKSHOP_COLLECTION=xxxxxx

Note: the map and collection are two different option.
You could find the id at the workshop item's web url.
For example:
https://steamcommunity.com/sharedfiles/filedetails/?id=xxxxxx


FileSystem view improvements

We are basically suggesting to make it possible to see files directly in the Tree view.
List of improvements for the FileSystem view in Godot 3

A toggle button in the editor settings to turn the FileSystem split view on and off.
When Filesystem is not in split view it should show files directly in the tree view (see image 1).
Favorites should both be able to contain files and folders.
Textures should show a small thumbnail of the image. All other file types should show the small icon currently shown in the left corner of a file (See image 2).

Image 1 This is a Mockup of Unitys file system view. It shows what we are aiming for.

Image 2 These icons should be used in the Tree view.

I uploaded a 100 mb test project with a huge amount of files and many different file types included.
https://github.com/jesperkondrup/GodotFileSystemTest

Fixed by #21426.


Stay Informed Section Accessability

Contrast on the email sign up form field is too low. Also “placeholder” text is not accessible and cannot replace the label.
Remove the placeholder text and add “Email address” in the .
Also, Stay Informed is correctly Heading level 2 but “Email Signup” skips to Heading level 4. This needs to be Heading level 3.

Unfortunately, the way that Hubspot implements its form builder doesn't render accessible forms.
https://community.hubspot.com/t5/CRM/Accessibility-concerns-with-HubSpot-Forms-iframe-embed/m-p/573882


Combine signatures

In the "Signature" panel, we should be able to insert the signature of a different workspace to our current signature. This is different from the import functionality which replaces the current project so it doesn't let you combine signatures.
This way, we could easily add structures such as monoids to the signature.

Maybe place the inserted signature in a folder.

Do we have some UI in mind for how to do this without creating a "checkbox hell"?
I really like the idea of "import workspace inside a new folder", but I still can't picture a non-clunky UI.

Drag the .hom file onto the directory icon?
On Mon, 5 Sept 2022, 09:17 Chiara Sarti, @.***> wrote:

Do we have some UI in mind for how to do this without creating a "checkbox
hell"?
I really like the idea of "import workspace inside a new folder", but I
still can't picture a non-clunky UI.
—
Reply to this email directly, view it on GitHub
https://github.com/homotopy-io/homotopy-rs/issues/523#issuecomment-1236681982,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACQ4OHS2IYTN2S3ODRXXY4DV4WUC3ANCNFSM5ZIEOVWQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I like this idea. Though if we do it for folders we should also support it for old-school "replace workspace" imports.

It would be nice if you could also choose how to attach the new cells. For example, you might want to add a monoid structure to an already existing cell (or even to a diagram).

The way to do this would be by first importing the external signature by disjoint union, then identifying generators with the same boundary.

This is a restricted push-out of computads right?

Hi Nathan yes definitely that would be the expectation.

What do you mean by "restricted"?

Restricted in the sense that extending a signature like this will only provide you with a subclass of all push-outs of computads (my hunch is that not all of them will be constructible without assuming the existence of inverses and postulating coherence data — something we can only do on the labelled branch).

This is something we do not yet give a full mathematical treatment of, however it is clear that identifying two variables with identical boundaries is a very simple sort of pushout, which can be computed more straightforwardly than other richer sorts of pushouts one might consider.


default response doesn't accept a valid SchemaObject in 5.2.0

So for some reason in 5.x.x version of the lib, the default response doesn't accept the valid zod type which is ErrorDto.
Type 'ZodObject<{ code: ...>' is not assignable to type 'SchemaObject | ReferenceObject | undefined'.ts(2322)
openapi31.d.ts(130, 5): The expected type comes from property 'schema' which is declared here on type 'MediaTypeObject'

Now that I notice some details I am using v3 openAPIRegistry and OpenApiGeneratorV3 -> not sure why its using openapid31.d.ts above
Repro below 👇
export const registry = new OpenAPIRegistry();

export const GetUserDto = registry.register(
	'GetUserDto',
	z
		.object({
			username: z.string().nullable(),
		})
		.strict(),
);

const ErrorDto = registry.register('ErrorDto', z
		.object({
			code: z.string().nullable(),
		})
		.strict());

export const GetUser: RouteConfig = {
	method: 'get',
	path: '/user',
	summary: 'Returns general information about the currently signed-in user.',
	responses: {
		200: {
			description: 'Object with user data.',
			content: {
				'application/json': {
					schema: GetUserDto,
				},
			},
		},
		default: {
			description: 'Default error responses',
			content: {
				'application/json': {
					schema: ErrorDto,
				},
			},
		},
	},
};

This is a TS error only, I can verify that the generateComponents call works and it is producing a valid open api yml 💯

@callmeberzerker  thank you for reporting that. And yes as you've noticed this is only a TS error and it is an easy one to fix.  I've just opened up a PR


Side effect model for EF Core operations

Similar to what Wolverine has for Marten. Watch the application of auto-transactions. And it might have to be smart enough to pick the right DbContext

Kicking this for a later release.

Dropping this out of 3.0 because of time

I'm dropping this in favor of https://github.com/JasperFx/wolverine/issues/1073


Usage with webpack

How to use it correctly with webpack?
Since the *.proto files seems not to be bundled with webpack I struggle a bit here.
The error I get is always:
{ Error: ENOENT: no such file or directory, open 'google/cloud/kms/v1/service.proto'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at fetch (PATHTOPROJECT/node_modules/protobufjs/src/root.js:160:34)
    at Root.load (PATHTOPROJECT/node_modules/protobufjs/src/root.js:194:13)
    at Root.loadSync (PATHTOPROJECT/node_modules/protobufjs/src/root.js:235:17)
    at Object.loadSync (PATHTOPROJECT/node_modules/@grpc/proto-loader/build/src/index.js:230:27)
    at GrpcClient.loadFromProto (PATHTOPROJECT/node_modules/google-gax/build/src/grpc.js:118:44)
    at GrpcClient.loadProto (PATHTOPROJECT/node_modules/google-gax/build/src/grpc.js:145:21)
    ....
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'google/cloud/kms/v1/service.proto' }

I found a solution which copies the files to the build directory. Mind that __dirname option needs to be set to false.
webpack options:
 node: {
        __dirname: false
    },
    plugins: [
        new CopyPlugin([
            {
                from: './node_modules/@google-cloud/kms/protos',
                to: '../../protos/',
                context: __dirname
            },
        ]),
    ],

tested with webpack 3.6


mistake in "parseFloat" result?

Hi @MacWyznawca, we got a problem with this plugin and with his brother, homebridge-mqtt-humidity-tasmota.
The issue is with the temperature (and humidity) resolution and with his rounding.
It's not clear to me if the plugin sends just an integer value to homekit or a float - I assume it's the first scenario, where it sends an integer value.
This value should be rounded starting from the float number that comes from the MQTT telemetric topic from Tasmota device. The point is that the value isn't rounded: if the reading is 31.1 degrees, on HomeKit you read 31; if it's 31.9, you still read 31, which is a mistake, because it should be rounded.
Can you please help about that?
Thanks a lot
C

My plugin send float. Elgato Eve or Home from iOS 12 show temperature with decimal point.

So, why iOS <12 shows a not-rounded number, in your opinion?


Crash when updating mods.

OK. After flip flopping back-n-forth. This does affect all mods but at complete random. Some times updates will go through successfully without issue. Other times they crash with the below error. Most of the time the crash happens, though.
Just a matter of updating all mods to trigger the crash.
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at ModMyFactory.MVVM.Sorters.ModSorter.Compare(Mod x, Mod y)
   at System.Array.BinarySearch(Array array, Int32 index, Int32 length, Object value, IComparer comparer)
   --- End of inner exception stack trace ---
   at System.Array.BinarySearch(Array array, Int32 index, Int32 length, Object value, IComparer comparer)
   at System.Windows.Data.ListCollectionView.AdjustBefore(NotifyCollectionChangedAction action, Object item, Int32 index)
   at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at ModMyFactory.ViewModels.MainViewModel.<UpdateModAsyncInner>d__210.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ModMyFactory.ViewModels.MainViewModel.<UpdateModsAsyncInner>d__211.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ModMyFactory.ViewModels.MainViewModel.<UpdateMods>d__212.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ModMyFactory.ViewModels.MainViewModel.<<-ctor>b__189_6>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

And closing this....was debugging the <IP_ADDRESS> release. Crash happens every time. I then updated my fork to the latest commits and it started working fine.
Just now realised I did this. Checked commit history and found that you had already fixed this exactly because of the Mod portal API changes.
*hangs head in shame for not noticing <IP_ADDRESS> tag != master anymore*


wildcard route ':userId' conflicts with existing children in path '/v2/user/:userId'

I am refactoring some code with golang， it 's written by java before.   And then i got a problem, the https apis like blow are not allowed:
	router := httprouter.New()
	router.GET("/v2/user/details", listUserDetails)
	router.GET("/v2/user/:userId", lookupUser)

got some error:
panic: wildcard route ':userId' conflicts with existing children in path '/v2/user/:userId'

goroutine 1 [running]:
github.com/julienschmidt/httprouter.(*node).insertChild(0xc000082140, 0xc00006fd01, 0x696989, 0x7, 0x696980, 0x10, 0x6a8088)

I also encountered this problem, it does not meet the restful specification

See #183


FTPFileProvider is downloading file twice

I'm using your library to log into my FTP server and download a file but
func copyItem(path: String, toLocalURL destURL: URL, completionHandler: SimpleCompletionHandler) -> Progress?
(only function for downloading I've found) doesn't support overwriting.
So while the first try to download the file to the app's "Documents" folder always succeeds, the second one always fails because the file already exists.
My code:
    private func download() {
        print("start download") //Only called once!
        let foldername = "myfolder"
        let filename = "mytestfile.txf"
        let server = "<IP_ADDRESS>"
        let username = "testuser"
        let password = "testpw"

        let credential = URLCredential(user: username, password: password, persistence: .permanent)
        let ftpProvider = FTPFileProvider(baseURL: server, mode: FTPFileProvider.Mode.passive, credential: credential, cache: URLCache())

        ftpProvider?.delegate = self as FileProviderDelegate

        let fileManager = FileManager.default
        let source = "/\(foldername)/\(filename)"
        let dest = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent(filename)
        let destPath = dest.path

        if fileManager.fileExists(atPath: destPath) {
            print("file already exists!")

            do {
                try fileManager.removeItem(atPath: destPath)
            } catch {
                print("error removing!") //TODO: Error
            }
            print("still exists: \(fileManager.fileExists(atPath: destPath))")
        } else {
            print("file doesn't already exist!")
        }

        let progress = ftpProvider?.copyItem(path: source, toLocalURL: dest, completionHandler: nil)
        progressBar.observedProgress = progress
    }

As you can see, I added my own check for already existing files but unfortunately this doesn't help with the second try.
Why is it even trying to download the file twice? Is there maybe some hidden function for downloading that does support overwriting?
How can I fix this?

Update: I created a simple "sample.txt" at the root of my ftp server (text inside :
"Hello world from sample.txt!"), then tried to just read the file to later save it myself. For this I'm using this code from the "Sample-iOS.swift" file here.
ftpProvider?.contents(path: source, completionHandler: {
    contents, error in
    if let contents = contents {
        print(String(data: contents, encoding: .utf8))
    }
})

But it also does this twice! The output for the "sample.txt" file is:

Optional("Hello world from sample.txt!")
Fetching on sample.txt succeed.
Optional("Hello world from sample.txt!Hello world from sample.txt!")
Fetching on sample.txt succeed.

Why is it calling this twice too? I'm only calling my function once and "start download" is also only printed once.

Update 2: I did some more investigating and found out what's called twice in the contents function:
It's the whole self.ftpDownload section!
And inside FTPHelper.ftpLogin the whole self.ftpRetrieve section is called twice.
And inside FTPHelper.ftpRetrieve the whole self.attributesOfItem section is called twice.
And probably so on...
ftpProvider?.copyItem uses the same ftpDownload func, so at least I know why both contents() and copyItem() are affected.
The same question remains though: Why is it calling these functions twice and how do I fix this?


Implement Montgomery backend with 32 bits

Currently montgomery backend works with limbs of 64 bits. For really small fields, like babybear, it may be useful to have a 32 bits version. This version doesn't need to support multiple limbs, since it's use is limited to this field, but it may be useful to generalize it.

[ ] Implement a montgomery backend of 32 bits, with only one u32 as limb.
[ ] Add a fuzzer to compare both montgomery backends
[ ] Generalize it to be multi limb

We recommend just doing the first task, then generalizing

I can take up this!

I can take up this!

@RajeshRk18 still working on this?

I can take up this!

@RajeshRk18 still working on this?

Yeah, wip

@MauroToscano I ported 64 bits limbs to 32 bits. Can you check it out?
https://github.com/RajeshRk18/lambdaworks/tree/montgomery-backend-32bits

:wave:  Could I take this one?

:wave:  Could I take this one?

It's almost done. Just need to add fuzzer.

Am I correct that for generalizing over both word size the only way is to move const fn from impl blocks, as being generic instantly prevents them from working? So minimum boilerplating would be with a trait Word for generic and having macros for const fn (anyway they're associated) which would generate it for the type aliases... And is intricate to balance readibility/maintainability of such solution with wins from having u32 backend?
Just trying to understand this issue better. Sorry if miss/confused something. Would be nice to see correction of my comprehension of this one! :pray:


Log/optimize

Codecov Report
Patch coverage: 57.14% and project coverage change: -0.05% :warning:

Comparison is base (0185295) 75.39% compared to head (3ed89f9) 75.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #359      +/-   ##
==========================================
- Coverage   75.39%   75.34%   -0.05%
==========================================
  Files          44       44
  Lines        5104     5107       +3
==========================================
  Hits         3848     3848
- Misses        997      999       +2
- Partials      259      260       +1

Files Changed
Coverage Δ

log/log.go
94.26% <57.14%> (-1.84%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix return code for unimplemented functions in driver APIs (ENOSYS vs ENOTSUP)

Fix wrong usage of return codes in driver APIs and remove bogus checkpatch warning.
It turn out, majority of usage of ENOTSUP (~1000) in drivers is correct and we are just using the wrong return code in a few places mostly on the the APIs level and in a few headers only.
This resolves #23727

I think those originally using ASSERT() are must-implement APIs. So there is no need to check for NULL at runtime.

I think those originally using ASSERT() are must-implement APIs. So there is no need to check for NULL at runtime.

right, but asserts were used inconsistently and only in a few places. We should distinguish in all APIs between must-implement and optional APIs and agree to use asserts where APIs are must-implement.


Determine engine from first arg in codeblock-to-json.ts

Reviewed arg retrieve with @georgestagg in person. Merging.


waitForText don't have wrapper with onlyVisible option

From<EMAIL_ADDRESS>on October 23, 2011 23:32:07
Solo.waitForText don't have overload with onlyVisible option that Waiter class have.
Should use reflection for now :( What version of the product are you using? On what operating system? version 2.5
Original issue: http://code.google.com/p/robotium/issues/detail?id=178

From<EMAIL_ADDRESS>on October 25, 2011 07:54:29
Thanks for reporting this. It will be implemented in the next release.
Status: Accepted
Owner<EMAIL_ADDRESS>Labels: -Type-Defect Type-Enhancement

From<EMAIL_ADDRESS>on November 13, 2011 22:30:51
This has been corrected in Robotium 3.0. Please note that finishOpenedActivities() replaces finalize().
Status: Verified


qtractor: 0.9.18 -> 0.9.19

Motivation for this change
Upstream update. Also autotools -> cmake.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Cc @cillianderoiste


Fix python samples links

sentiments doesn't exist, and concat and upper are not mentioned.  Removed sentiments and added concat/upper.  Fixes #411

LGTM, thanks!


Fix #450

Codecov Report
Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1a4ca42) 97.51% compared to head (d6edd93) 97.46%.

Files
Patch %
Lines

blacksheep/server/cors.py
50.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #451      +/-   ##
==========================================
- Coverage   97.51%   97.46%   -0.05%
==========================================
  Files          67       67
  Lines        6353     6355       +2
==========================================
- Hits         6195     6194       -1
- Misses        158      161       +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Question - Is there a way to group subcommands under a common heading in the usage output?

Is there a way to group subcommands in the help output?  For example, I would like to do something like this:
Usage: myCli [-hV] [COMMAND]
My Command Line Interface
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.
Commands:

  User Commands:
  getUserByEmail             Gets User By EMail Address
  getUserByName            Gets User By Last and First Name

  Team Commands:
  getTeamForMember      Gets Team by Member Name

I looked at https://github.com/remkop/picocli/issues/566 but that shows nested subcommands.  I want to group common subcommands under a configurable header.
Thanks!
--Steve

Hi, this cannot be done with just the annotations, but it can be done programmatically using the Help API. See the GroupDemo in picocli-examples:
Usage: grouping-demo [-hV] [COMMAND]
This shows how to group subcommands with separate headings
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.

First Group:
  sub2           How quickly daft jumping zebras vex.
  sub4           Pack my box with five dozen liquor jugs.
  sub6           Cwm fjord bank glyphs vext quiz.

Second Group:
  sub1, s1, foo  The quick brown fox jumps over the lazy dog.
  sub3           The five boxing wizards jump quickly.
  sub5           A wizard’s job is to vex chumps quickly in fog.

Third Group:
  sub7           Jived fox nymph grabs quick waltz.
  sub8           Glib jocks quiz nymph to vex dwarf.

Awesome!  This is exactly what I am looking for.  Thanks for the quick reply.


Improve Save Change notification display in Create Session page!

https://github.com/user-attachments/assets/88d4409f-7b17-4741-8bfb-6370c180d0df
Showing in video.

fc83e42


Catch more general exception

catch more generic ValueError since different json implementations seems to raise either ValueError, json.JSONDecodeError or json.decoder.JSONDecodeError

Ah yes, json.decoder.JSONDecodeError extends ValueError and is new in 3.5, it should not have been used.


error while reading prospector definition from Hiera

Hi,
I have an error while trying to read prospectors declared in Hiera.
Here is my error:

Failure/Error: create_resources('filebeat::prospector', $prospectors_final)
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, no implicit conversion of String into Hash at /root/git/prof_filebeat/spec/fixtures/modules/filebeat/manifests/init.pp:142:5

My Hiera definition:
filebeat::prospectors:
  ensure: 'present'
  paths:
    - '/tmp/log/production.urt.log'
    - '/tmp/log/production.uns.log'
  doc_type: 'log4j'
  multiline:
    pattern: '^[.*'
    negate: 'true'
    match: 'after'

My puppet code:
class { 'filebeat':
      prospectors_merge => true, #reads prospectors from hiera
    }

I guess the error is in my Hiera yml definition.
How to define multiple prospectors?
Thanks.

Passing prospectors in using hiera calls the create_resources function. Try adding a name like like:
filebeat::prospectors:
  production-app:
    ensure: 'present'
    paths:
      - '/tmp/log/production.urt.log'
      - '/tmp/log/production.uns.log'
    doc_type: 'log4j'
    multiline:
      pattern: '^[.*'
      negate: 'true'
      match: 'after'

Unless you're setting prospector defaults using hiera (some folks like to set default/common elements further down, like in common.yaml), you can omit the prospectors_merge parameter and use the default value (false).

Problem solved. Thanks for help.


error on glance setup

Info: /Stage[main]/Glance::Api/Glance_cache_config[DEFAULT/auth_url]: Scheduling refresh of Service[glance-api]
Notice: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Triggered 'refresh' from 53 events
Info: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Scheduling refresh of Service[glance-api]
Info: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Scheduling refresh of Service[glance-registry]
Notice: /Stage[main]/Glance::Registry/Service[glance-registry]: Triggered 'refresh' from 18 events
Notice: /Stage[main]/Glance::Api/Service[glance-api]: Triggered 'refresh' from 47 events
Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-list' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: /Stage[main]/Openstack::Setup::Cirros/Glance_image[Cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0001 - related established]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0002 - localhost]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0003 - localhost]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0022 - ssh]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[8999 - Accept all management network traffic]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[9100 - Accept all vm network traffic]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[9999 - Reject remaining traffic]/ensure: created
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 397.60 seconds
storage node setup is ending with this error.
root@storage:~# puppet agent -t --server=pupmaster
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Caching catalog for storage
Info: Applying configuration version '1432484231'
Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-list' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: /Stage[main]/Openstack::Setup::Cirros/Glance_image[Cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://<IP_ADDRESS>:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Notice: Finished catalog run in 10.35 seconds
root@storage:~#
root@controller:~# source openrc
root@controller:~# glance image-list
Request returned failure status 401.
Invalid OpenStack Identity credentials.
root@controller:~#

Seems like there is an issue with the glance user, does keystone user-list work? Also inspect the puppet output from the first run for any issues in creating the user.

root@controller:~# keystone user-list
+----------------------------------+------------+---------+---------------------------+
|                id                |    name    | enabled |           email           |
+----------------------------------+------------+---------+---------------------------+
| 5fd5010495c84bb7845bd592e5eb58e0 |   admin    |   True  |<EMAIL_ADDRESS>|
| 3be74055492c4b96b844ecabfabade6e | ceilometer |   True  |    ceilometer@localhost   |
| 426ca8e40a324d61b4d14c2fb6ec41c8 |   cinder   |   True  |      cinder@localhost     |
| b6b95a3d8fb8407e94abb48dd1f10121 |    demo    |   True  |<EMAIL_ADDRESS>   |
| 7b67de3c6a1d442d81230bb349c3080b |   demo2    |   True  |<EMAIL_ADDRESS>   |
| 3d0564fd093f414593a774ad77a99a37 |   glance   |   True  |      glance@localhost     |
| 27efd6410a7b4d2c82a8bcdf7d29fa57 |    heat    |   True  |       heat@localhost      |
| fe5143245f9e44bea57369f4f347f5f9 |  heat-cfn  |   True  |     heat-cfn@localhost    |
| 20b342c705764325a7ae9159a75f8300 |  neutron   |   True  |     neutron@localhost     |
| e7135ffaba9b42aa9b7a923f1d94a881 |    nova    |   True  |       nova@localhost      |
| 095f77d2b71e40efb04eb9b3f9bf3cda |   swift    |   True  |      swift@localhost      |
| fadb52f52b2043058743d7cb2a9f63ac |    test    |   True  |<EMAIL_ADDRESS>   |
+----------------------------------+------------+---------+---------------------------+
root@controller:~#
I do see that glance user is created

Salam alikom,
I have a solution to all glance problems:
the constructor of puppetlabs-openstack module was forgotten to install glance registry service in the storage, this error make your identity_uri variable unchangeable.
because glance api and registry is installed in storage node [you can see here the architecture with list of services] (https://github.com/puppetlabs/puppetlabs-openstack/blob/master/examples/RolesProfiles.pdf).
you need to change somme files in this module to correct this problem, so luts go
step 01:
add registry installation to this file /etc/puppet/modules/openstack/manifests/role/storage.pp :
class openstack::role::storage inherits ::openstack::role {
class { '::openstack::profile::firewall': }
class { '::openstack::profile::glance::api': }
class { '::openstack::profile::glance::registry': } #this line is forgoten
class { '::openstack::profile::cinder::volume': }
class { '::openstack::setup::cirros': }
}
step 02:
install glance and python-glanceclient packages rather than glance-api and glance-registry
because these two last packages is not for openstack juno release, [you can se here the correct name of glance packages in install guide] (http://docs.openstack.org/juno/install-guide/install/apt/content/glance-install.html).
so to do this go to /etc/puppet/modules/glance/manifests/params.pp and change these two lines:
$api_package_name      = 'glance-api'
$registry_package_name = 'glance-registry'
to
$api_package_name      = 'glance'
$registry_package_name = 'python-glanceclient'
finally i think everything is will be insha Allah correct,
if you have any other problem, I’m here to help you.
thinks.

add registry installation to this file /etc/puppet/modules/openstack/manifests/role/storage.pp :
...
class { '::openstack::profile::glance::registry': } #this line is forgoten

The registry profile is a noop: https://github.com/puppetlabs/puppetlabs-openstack/blob/master/manifests/profile/glance/registry.pp#L3
The glance::registry class is included in the API profile: https://github.com/puppetlabs/puppetlabs-openstack/blob/master/manifests/profile/glance/api.pp#L34

install glance and python-glanceclient packages rather than glance-api and glance-registry

The master branch targets the kilo release, not the juno release, and the package names in the glance module should be up to date for kilo. If you find they are incorrect you can file a bug against the puppet-glance module.

Hi @srikanth787,
Can you try installing the openstack-selinux package? I'm now able to reproduce this bug with certain versions of selinux, and installing the openstack-selinux package fixed it. If this solves your issue too we can potentially find a place for it in the module.

HI @cmurphy , a have the same problem @srikanth787, how i can resolve this problem?


Blog - Esteroids

Eric Ronne created src/assets/esteroids.jpg
Eric Ronne created src/_blog/community-highlight-esteroids.md

Awaiting PR review and an OK from @angiemaguire before merging.


Should support auto telemetry to cloud storage - Google/AWS

We want to store all telemetry data to cloud storage.
Essentially all logs should get into proper buckets, in JSON form.

This exists, and with Log4j it is highly possible to use any of these.
https://cloud.google.com/logging/docs/setup/java

This is another alternative.
https://github.com/bluedenim/log4j-s3-search

After deliberation this is to be done on the user side. Anyone using Cowj can use gradle to include/exclude dependencies allow the right appender.


Short solution needed: "Save nested dictionary in Redis" (python-redis)

Please help us write most modern and shortest code solution for this issue:
Save nested dictionary in Redis (technology: python-redis)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

Save nested dict to Redis


IDSEQ-2569 Cache location validation keyed on raw_value.

Description
I ended up caching not the location API calls, but the validation of location metadata.
This is because validation of location metadata also includes additional calls to Location table for each metadata value, and this is also a contributing factor to the slowness of validation.
Benchmarks for validation of 24 samples:
With text string locations (no location validation at all) - 300ms
With location objects prior to PR - 5000ms
With caching of just location API calls - 3000ms
With caching of location metadata validation (this PR's approach) - 500ms
We make a couple of assumptions in order to cache the validation. The most important is if the raw location value (e.g. the JSON) that is being passed in is exactly the same (including the locationiq_id, the osm_id, etc.), then the location validation will always produce the same result, and return the same Location object in our database. This allows us to use the raw_value as the key for the cache. It is quite common that the raw_value is exactly the same across all location objects in a batch of sample uploads (when the user clicks Apply All), so this strict strategy for caching gets a lot of hits.
Also some benchmarks for the actual uploading of 24 samples:
With text string locations (no location validation at all) - 4.3s
With location objects prior to PR - 9.1s
With caching of location metadata validation (this PR's approach) - 4.3s
We may want to investigate other causes for the slowness of uploads, though that is outside the scope of this PR.
Notes
See various comments in the code.
Things to note: choice of very short cache expiration time.
Tests

Verified for both CSV and manual metadata upload that upload still works.
Verified for when Redis cache is enabled locally (by adding tmp/caching-dev.txt)
Verified for both raw text, the same location value for all samples, and differing location values for samples in one upload.
Updated rspec tests and added a test for the cache.

Tests for QA

Upload a batch of multiple samples with the same Collection Location metadata value and another with different Collection Location metadata values, and ensure that the Collection Locations are what you expect after the upload is complete.

Good fix, and nice to see all the benchmarks!


Merge 6 -> main

➡ Forward port
Port gz-launch7 to main
Branch comparison: https://github.com/gazebosim/gz-launch/compare/main...gz-launch6
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

hmm CI is failing with msgs issue. Anything we need to do here in gz-launch? @mjcarroll

Anything we need to do here in gz-launch?

Looking

Was missing a message header, should be fixed now.


Incorporate classes / perform alignment with ASHRAE 205 Concepts

https://github.com/open205/schema-205 contains a GitHub release of the standard; would be worthwhile to do the mapping

Note that 205 is out for public review: https://www.ibpsa.us/news/ashrae-standard-205p-public-review-open


Remove if __name__ == "__main__" block from _layout.py

This is legacy code we don't want any more.

Hi! I'd like to work on this. Thank you.


Lokalise: Translations update

This pull request was initiated by Lokalise (user Tian) at 2019-03-23 06:08:16

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


fix that closes #4

Current coverage is 100.00%

Merging #5 into master will not affect coverage as of f188825

@@            master      #5   diff @@
======================================
  Files            3       3
  Stmts           28      30     +2
  Branches         0       0
  Methods          0       0
======================================
+ Hit             28      30     +2
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of f188825

Powered by Codecov. Updated on successful CI builds.


Show number of remainig test runs on test view

This change is inspired by PR
https://github.com/cppseminar/APC/pull/53

@koscelansky Please review this change and merge to master.
I think I tested it pretty well.
I also edited envoy proxy, so consider it when deploying new version. (It must be also updated and I am not sure about helm  charts - those belong to you :) )


Added 'generic static site generator'

Thank you for contributing! Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[ ] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[x] Image (and my file is *.png, square, dimensions 288x288)
[x] Content (and my changes are in index.md)

Generic Static Site Generator is written in JavaScript, It can be used to create static websites

Hi, thanks for the PR, but as there are hundreds of static site generator projects out there, we're only going to add projects to this collection that are relatively established.


newline in string causes execution to fail in radian.

When trying to send lines to radian, if there is a newline in a string, it causes strange behavior. The interpreter seems to be stuck waiting for more input. If I break (ctrl-c) then the prompt appears, but pressing  causes last line to be "resubmitted," and the interpreter gets stuck again.
I tried with and without bracketed paste, and also tried using the windows_linefeed format from iron.fts.python module.
sending strings works with regular R interpreter.

I'm using neovim 0.8 with Windows terminal.

Hi, @fisher-j!
This is very weird. I'll try to reproduce locally so I can debug it and I'll let you know. Hopefully something that can be reproduced easily because I don't have any experience w/ R or radian. I'll keep you posted.

I was about to re-post over at randy3k/radian and I realized that the problem has somehow self-resolved. I am now able to send multi-line strings with no problem. I'm not sure what the problem was.
Thanks for working on this integral piece of software.

I'm glad to hear that it sorted itself out!
Thanks for the support, it is in fact only because of the heartwarming feedback of the community that I keep on supporting iron :)

I have the same problem :( Which version of Neovim/radian are you using?


throw err in theme-folder\react-folder\nodule_modules@devloco\react-scripts-wptheme\scripts\wpstart.js:19

Hello to anyone reading this (I'm guessing no one since this project looks pretty inactive at this point, still want to give it one last try before I move on to other options for integrating React with WordPress).
Initially I was creating a headless WordPress website using React as the frontend, it's for my portfolio and blog. I was thinking of going this route because it's simpler to pull in WP specific widgets and components versus recreating too many elements or querying many objects to get things on the posts pages specifically. I want to know if anyone understands that error I'm showing in the screenshots and has a solution?
I'd rather not waste my time if the project is no longer being supported with the modern versions of Node, webpack, and React, please let me know if anyone is around!

Hello to anyone reading this (I'm guessing no one since this project looks pretty inactive at this point, still want to give it one last try before I move on to other options for integrating React with WordPress).
Initially I was creating a headless WordPress website using React as the frontend, it's for my portfolio and blog. I was thinking of going this route because it's simpler to pull in WP specific widgets and components versus recreating too many elements or querying many objects to get things on the posts pages specifically. I want to know if anyone understands that error I'm showing in the screenshots and has a solution?
I'd rather not waste my time if the project is no longer being supported with the modern versions of Node, webpack, and React, please let me know if anyone is around!

Hi @daquanwright did you make any progress with this? I am a designer with Wordpress but learning react.js and how I could integrate it with WP. I am very new to React. Have you also considered using AI if it might help? Also if you have found other more current solutions, please could you loop me in?
Thank you.

I had the same issue and only half solved it.  I ran "npm update", then "npm audit fix --force".  This got rid of the current error and the second one I ran into, but has given me a new one in place of those two.
react-src\node_modules\@devloco\react-scripts-wptheme\scripts\wpstart.js:19
    throw err;
    ^

TypeError: Cannot read properties of undefined (reading 'compilation')

Hi @daquanwright did you make any progress with this? I am a designer with Wordpress but learning react.js and how I could integrate it with WP. I am very new to React. Have you also considered using AI if it might help? Also if you have found other more current solutions, please could you loop me in?
Thank you.

Ahhh how interesting....that I would receive questions about if I found a fix before someone actually gave me one lmao (I guess that shows the state of this project huh). No dice....TRUST ME I tried googling for DAYS to no success no matter what stone I turned lol. It was agonizing and it was clear this hasn't been supported in a while.....just too many issues getting it to run properly in Visual Studio Code. So I'm just using the base WordPress for my portfolio and blog, as I don't want to waste too much time pulling every instance of API data onto my pages and posts (especially why I wanted to integrate React into WordPress as I badly need direct access to core WordPress functionality for many other things too).
Sorry about the delay.....been pretty busy between work and the holidays, hope you guys are having a blast and enjoy the New Year's (outside of this annoying, broken project of course lol).
Regards,
Daquan Wright

I had the same issue and only half solved it. I ran "npm update", then "npm audit fix --force". This got rid of the current error and the second one I ran into, but has given me a new one in place of those two.
react-src\node_modules\@devloco\react-scripts-wptheme\scripts\wpstart.js:19
    throw err;
    ^

TypeError: Cannot read properties of undefined (reading 'compilation')

Hey @jessegraddy91,
I strongly recommend you save your sanity and move on from this if you haven't already....only the luck and/or technical prowess of Buddha will help you through this!  That's why I'm using core WordPress for my website and reserving React for my actual projects only now (where I don't have to retrieve godly amounts of API data for all the stuff I'll want to setup!
Cheers and Happy New Year's!
Regards,
Daquan Wright

Haha thanks, yes I decided to move on from trying this one.  There's other ways to use react with wordpress but its not all that important I use react right now.  It was more of a what if I can get this working situation.
Take care and happy new year to you too!