Vauxoo / travis2docker

This is a Library to transform travis to docker file
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

t2d --deployv: Configure VIM only if you have defined a build-arg to do it #165

Closed moylop260 closed 1 year ago

moylop260 commented 2 years ago

Continue of https://github.com/Vauxoo/travis2docker/issues/164 but for VIM custom installation

MQT was installing a custom VIM and it was working

We need to migrate the vim installation to new method to t2d:

But not all the devs are using VIM

There are other devs using VSCode or other IDEs

So, It could be great using the same behaviour than issue 164 related to only install this VIM + theme + configuration if a environment variable is defined and it is assigned from build-arg

Something lile VIM_INSTALL

luistorresm commented 1 year ago

Hello @antonag32

Do you have any news about this ticket?

Or maybe an expected date?

Regards

antonag32 commented 1 year ago

@luistorresm

Hello, I think I will make a PR for it today.

moylop260 commented 1 year ago

@antonag32

Be aware about the last review, please

Could you send a video with your local functional testing, please?

antonag32 commented 1 year ago

Yes, working on it

moylop260 commented 1 year ago

@hbto @luistorresm @deivislaya @ysantiago

Could you test the new feature using?

You even can use the alias to set it next times

Notice you need to update the t2d pypi package to v6.4.1

Before to build you can double confirm checking the Dockerfile output:

You should see the following output:

ENV VIM_INSTALL=TRUE

It means, it is already configured and the vim plugins will be installed

I just tested and use the word "pdb" + tab and it was auto-filled

@antonag32

It is showing errors on install and warning opening python files

But it good for now

I will let it the issue opened in order to review it after

luistorresm commented 1 year ago

Hello @moylop260

I get this error when found a lint error: Captura de Pantalla 2022-10-20 a la(s) 12 26 51

moylop260 commented 1 year ago

@antonag32

Could you complement the t2d output message if VIM_INSTALL was not defined with:

moylop260 commented 1 year ago

@antonag32

Could you fix the following error, please?

[✔] Successfully cloned vundle.
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
[✔] Now updating/installing plugins using Vundle

Thanks for installing spf13-vim.
© 2022 http://vim.spf13.com/
Cloning https://github.com/vauxoo/vim-openerp.git ...
Cloning https://github.com/davidhalter/jedi-vim.git ...
error: unknown switch `d'
usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive[=<pathspec>]
                          initialize submodules in the clone
    --recurse-submodules[=<pathspec>]
                          initialize submodules in the clone
    -j, --jobs <n>        number of submodules cloned in parallel
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --reference-if-able <repo>
                          reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --shallow-since <time>
                          create a shallow clone since a specific time
    --shallow-exclude <revision>
                          deepen history of shallow clone, excluding rev
    --single-branch       clone only one branch, HEAD or --branch
    --no-tags             don't clone any tags, and make later fetches not to follow them
    --shallow-submodules  any cloned submodules will be shallow
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository
    --server-option <server-specific>
                          option to transmit
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only
    --filter <args>       object filtering
    --remote-submodules   any cloned submodules will use their remote-tracking branch
    --sparse              initialize sparse-checkout file to include only files at root

/bin/sh: 230: cd: can't cd to /home/odoo/.vim/bundle/YouCompleteMe
Cloning https://github.com/wakatime/vim-wakatime.git ...
ZSH_INSTALL is not defined. Skipping zsh installation.
Removing intermediate container 38a6fef5da55
 ---> d5e50af59c52
Step 19/21 : USER odoo
moylop260 commented 1 year ago

@antonag32

Is possible to fix the following one too, please?

[odoo@e1f6a53af9ef]~/instance/extra_addons/account-customer-invoice-split-discount/account_customer_invoice_split_discount/models$
 (14.0)$ vim account_move.py
Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.
Press ENTER or type command to continue
moylop260 commented 1 year ago

@hbto

The pylint was fixed:

Note: You will need to update the t2d package

hbto commented 1 year ago

@hbto

The pylint was fixed:

* <img alt="Screen Shot 2022-10-21 at 14 23 36" width="1084" src="https://user-images.githubusercontent.com/6644187/197273859-b120b0b8-8cef-4d35-80e0-146be22e4085.png">

Note: You will need to update the t2d package

Thanks a lot I will check in my next cycle of t2d generation.

Regards.

antonag32 commented 1 year ago

@moylop260 the requested fixes are here: https://github.com/Vauxoo/travis2docker/pull/183

moylop260 commented 1 year ago

@antonag32

I don't know if something is wrong with this plugin or the version but opening a .py file it is raising the following errors and request press enter again and again:

Could you check it, please?

moylop260 commented 1 year ago

For record,

The installation process was fixed:

Thank you!

hbto commented 1 year ago

@antonag32

Could you complement the t2d output message if VIM_INSTALL was not defined with:

* `vim spf13 is not configured, if you want it run t2d --build-env-args=VIM_INSTALL`
Screen Shot 2022-10-26 at 22 52 13

There is a typo in the output.

Regards.

moylop260 commented 1 year ago

Done from https://github.com/Vauxoo/travis2docker/pull/185

IMHO this issue is ready

Let me know if not

For now, closing it