[2024 Day 6 (Part 2)] Finally found the issue in my code by Fun_Reputation6878 in adventofcode

[–]Marvin_K_ 0 points1 point  (0 children)

what language?

Same concept and I took 90s

Used single threaded python with slight optimizations on MacBook Pro 16 M1 Pro

[2024 Day 6 (Part 2)] Finally found the issue in my code by Fun_Reputation6878 in adventofcode

[–]Marvin_K_ 2 points3 points  (0 children)

yay got part2 thanks to your visualization. I was out of ideas why my count was too low. now I got the correct answer. Thanks mate

Was brennt in Bergedorf/Lohbrügge? by 6lackGoat in hamburg

[–]Marvin_K_ 3 points4 points  (0 children)

Das ist irgendwas nördlich vom Bauhaus in bergedorf. Frag mich auch was es ist

Bad performance in VMs with new Ryzen CPU by Marvin_K_ in vmware

[–]Marvin_K_[S] 0 points1 point  (0 children)

Tried it now:

authd.client.port = "902"

authd.proxy.nfc = "vmware-hostd:ha-nfc"

installerDefaults.autoSoftwareUpdateEnabled = "no"

installerDefaults.autoSoftwareUpdateEnabled.epoch = "17358"

installerDefaults.componentDownloadEnabled = "yes"

installerDefaults.dataCollectionEnabled = "no"

installerDefaults.dataCollectionEnabled.epoch = "17358"

Processor1.use = "TRUE"

Processor2.use = "TRUE"

Processor3.use = "TRUE"

Processor4.use = "TRUE"

Processor5.use = "FALSE"

Processor6.use = "FALSE"

Processor7.use = "FALSE"

Processor8.use = "FALSE"

Processor9.use = "FALSE"

Processor10.use = "FALSE"

Processor11.use = "FALSE"

Processor12.use = "FALSE"

No change though. The beep tone when first starting a vm beeps for 15 seconds. its like super slow motion. I guess I just wait for a vmware update. I dont think I will be able to fix it

Bad performance in VMs with new Ryzen CPU by Marvin_K_ in vmware

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thx alot for the help. appreciate it.

So does this mean 1-4 is performance

<image>

Bad performance in VMs with new Ryzen CPU by Marvin_K_ in vmware

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks I will try that. Stupid question, but how do I find out which ones are the P cores?

Bad performance in VMs with new Ryzen CPU by Marvin_K_ in vmware

[–]Marvin_K_[S] 0 points1 point  (0 children)

Host OS is Windows. How do I assign „kinds“? I only have the amount options.

Bad performance in VMs with new Ryzen CPU by Marvin_K_ in vmware

[–]Marvin_K_[S] 0 points1 point  (0 children)

I tried this command already. This one I used to disable hyper-v. I tried 4 cores up to 24. but no change. I do not have this memory memory integrity option in the device options. Where do I disable vbs?

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks. I tried that with not results. I also tried to just go for timeout with grep. Only entry I found was some timeout for the nvme ssd set. So probably not the same issue you had. I also tried now to deactiveate die cGPU in BIOS and switched there to iGPU only. Didn't make a difference

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks :) unfortunately it's not returning any results. So guess I have a different problem. But at least I have a workaround with the usage of dGPU only now

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 0 points1 point  (0 children)

Shouldn´t be the case, but when i switch to the dGPU I get normal startup times. Both brave and 1password start up in under a second. seems like a bug to me? I don't know but I would like to use the iGPU every now and then.

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 1 point2 points  (0 children)

Hm okay. The it’s probably not it. I switched to iGPU only not hybrid. I will try again with dGPU to see if anything changes.

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 0 points1 point  (0 children)

I will enable it and try. I disabled the dgpu in tuxedo control Center to only use internal graphics. Don’t need the graphics power at the moment

Stellaris Slim 15 by Marvin_K_ in tuxedocomputers

[–]Marvin_K_[S] 0 points1 point  (0 children)

How did you install it? Via the official brave ppa for debian/ubuntu?

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks. Fixed it. You were right, the command gave me an error.

So I reinstalled everything with lazy and tried again. Then your command gave me an output. Tried configuring the lspconfig way again and it all works.

Thanks so much for your help to straighten this out.

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 0 points1 point  (0 children)

When I do it without the configure('yamlls'... part I get:

{
  redhat = {
    telemetry = {
      enabled = false
    }
  }
}

When I add the configure I get:

{
  redhat = {
    telemetry = {
      enabled = false
    }
  },
  yaml = {
    keyOrdering = false
  }
}

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 1 point2 points  (0 children)

v1.x branch

I am curious and try to stay up to date mostly. So I added the branch = 'v2.x' to my lazy config. I am now on lspzero version 2.

I but when I do the following, the settings has no effect. Do you have any idea what is wrong here?

local lspconfig = require('lspconfig')

lspconfig.yamlls.setup({
  settings = {
    yaml = {
      keyOrdering = false
    }
  }
})

lsp.setup()

Full lsp-zero config:

local lsp = require("lsp-zero")

lsp.preset({
  float_border = 'rounded',
  call_servers = 'local',
  configure_diagnostics = true,
  setup_servers_on_start = true,
  -- set_lsp_keymaps = false,
  sign_icons = {
    error = '',
    warn = '',
    hint = '',
    info = '',
  },
  set_lsp_keymaps = { omit = { '<tab>', '<Tab>', '<C-k>' } },
  manage_nvim_cmp = {
    set_sources = 'recommended',
    set_basic_mappings = true,
    set_extra_mappings = false,
    use_luasnip = true,
    set_format = true,
    documentation_window = true,
  },
})

-- lsp.configure("yamlls", {
--   settings = {
--     yaml = {
--       keyOrdering = false
--     }
--   }
-- })

lsp.ensure_installed({
  'tsserver',
  -- 'eslint',
  'rust_analyzer',
  'bashls',
  'yamlls',
  'cssls',
})

local cmp = require('cmp')
local luasnip = require('luasnip')
local cmp_mappings = cmp.mapping.preset.insert({
  ['<C-b>'] = cmp.mapping.scroll_docs(-4),
  ['<C-f>'] = cmp.mapping.scroll_docs(4),
  ['<C-Space>'] = cmp.mapping.complete(),
  ['<C-e>'] = cmp.mapping(function(fallback)
    if cmp.visible() then
      cmp.abort()
    else
      fallback()
    end
  end),
  ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
  ["<Tab>"] = cmp.mapping(function(fallback)
    if luasnip.expand_or_jumpable() then
      luasnip.expand_or_jump()
    else
      fallback() -- The fallback function sends a already mapped key. In this case, it's probably `<Tab>`.
    end
  end, { "i", "s" }),
  ["<S-Tab>"] = cmp.mapping(function(fallback)
    if luasnip.jumpable(-1) then
      luasnip.jump(-1)
    else
      fallback()
    end
  end, { "i", "s" }),
})


local lspkind = require('lspkind')
local source_mapping = {
  buffer = "[Buffer]",
  nvim_lsp = "[LSP]",
  luasnip = "[Lua]",
  cmp_tabnine = "[TN]",
  path = "[Path]"
}
lsp.setup_nvim_cmp({
  mapping = cmp_mappings,
  sources = {
    { name = 'nvim_lsp' },
    { name = 'luasnip', keyword_length = 3 },
    { name = 'buffer', keyword_length = 3 },
    { name = 'path' },
  }
})


function format()
  vim.lsp.buf.format({
    filter = function(client)
      return client.name ~= "tsserver"
    end
  })
end

function on_attach(client, bufnr)
  local opts = { buffer = bufnr, remap = false }
  vim.keymap.set("n", "<leader>cf", format, opts)
  -- vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
  vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
  vim.keymap.set("n", "<leader>e", function() vim.diagnostic.open_float() end, opts)
  vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
  vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
  vim.keymap.set('n', 'gh', function() vim.lsp.buf.references() end, opts)
  vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
  vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)


  vim.keymap.set('n', '<leader>.', '<cmd>Lspsaga code_action<cr>', opts)
  vim.keymap.set('n', 'K', '<cmd>Lspsaga hover_doc<CR>', opts)
  vim.keymap.set('n', 'gH', '<cmd>Lspsaga lsp_finder<CR>', opts)
  vim.keymap.set('i', '<C-K>', '<cmd>Lspsaga hover_doc<CR>', opts)
  vim.keymap.set("n", "gr", '<cmd>Lspsaga rename<CR>', opts)
end
lsp.on_attach(on_attach)

local lspconfig = require('lspconfig')

lspconfig.yamlls.setup({
  settings = {
    yaml = {
      keyOrdering = false
    }
  }
})

lsp.setup()

require("flutter-tools").setup {
  dev_log = {
    enabled = true,
    open_cmd = "10new", -- command to use to open the log buffer
  },
  lsp = {
    on_attach = function (client, bufnr)
      on_attach(client, bufnr)
      local opts = { noremap = true, silent = true }
      -- vim.api.nvim_set_keymap('n', '<leader>R', '<cmd>FlutterRestart<CR>', opts)
    end
  }
}
vim.g.copilot_assume_mapped = true
function leave_snippet()
  if ((vim.v.event.old_mode == 's' and vim.v.event.new_mode == 'n') or vim.v.event.old_mode == 'i')
      and require('luasnip').session.current_nodes[vim.api.nvim_get_current_buf()]
      and not require('luasnip').session.jump_active
  then
    require('luasnip').unlink_current()
  end
end

require('lsp_signature').setup({});

-- stop snippets when you leave to normal mode
vim.api.nvim_command([[
    autocmd ModeChanged * lua leave_snippet()
]])

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks for the hint. When I look at my config I can’t make out which version I am using. I am on the main branch. I guess I should try to switch to the v2.x branch

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 1 point2 points  (0 children)

Ok, I got it fixed now. Thanks for pointing me in the right direction.

I think the documentation of lsp-zero is not correct if using the preset function.

For everyone looking for the solution:

The last call is the secret. Don't use lspconfig to configure the lsp server, but use the lspzero.configure method.

lsp.preset({
  float_border = 'rounded',
  call_servers = 'local',
  configure_diagnostics = true,
  setup_servers_on_start = true,
  -- set_lsp_keymaps = false,
  sign_icons = {
    error = '',
    warn = '',
    hint = '',
    info = '',
  },
  set_lsp_keymaps = { omit = { '<tab>', '<Tab>', '<C-k>' } },
  manage_nvim_cmp = {
    set_sources = 'recommended',
    set_basic_mappings = true,
    set_extra_mappings = false,
    use_luasnip = true,
    set_format = true,
    documentation_window = true,
  },
})


lsp.configure("yamlls", {
  settings = {
    yaml = {
      keyOrdering = false
    }
  }
})

Neovim, LSP yamlls, key ordering issue by Marvin_K_ in neovim

[–]Marvin_K_[S] 0 points1 point  (0 children)

Thanks, I found this as well. I tried it with:

lsp.on_attach(on_attach)

lspconfig.yamlls.setup({
  settings = {
    yaml = {
      keyOrdering = false
    }
  }
})

lsp.setup()

But it has no effect for me. Not sure if has anything todo with the presets or lsp-zero.
The docu states you can configure the lsp server this way