Git Product home page Git Product logo

Comments (16)

Richard-W avatar Richard-W commented on August 18, 2024 2

I have a workaround until the problem itself is fixed.

$ mkdir -p ~/.vim/ftdetect
$ cp ~/.vim/bundle/vim-scala/ftdetect/scala.vim ~/.vim/ftdetect

This essentially copies the file detection from the bundle to your vim root. I have absolutely no idea why this is working, but it is.

This bug should probably be filed against vundle.

from vim-scala.

Richard-W avatar Richard-W commented on August 18, 2024

Using vundle too i am experiencing the same issue. However, it is possible to enable syntax highlighting using

:set filetype=scala

manually in vim. Seems to be an issue with ftdetect, though i can't figure out what's wrong.

from vim-scala.

katcipis avatar katcipis commented on August 18, 2024

@Richard-W Thanks for the reply, at least I'm not crazy :-). I don't know the internals of how vim works yet (still learning how to use it well :-), but if there is something I can do to help let me know.

The syntax highlighting is already helping a lot, thanks :D

from vim-scala.

katcipis avatar katcipis commented on August 18, 2024

Yep, worked like a charm :-). Already opened an issue on Vundle

Thanks again.

from vim-scala.

tautvilas avatar tautvilas commented on August 18, 2024

I have solved this problem by adding this line to .vimrc

autocmd BufRead,BufNewFile *.scala set filetype=scala

from vim-scala.

ches avatar ches commented on August 18, 2024

Can anyone report if you're still having this issue with up-to-date vim-scala and Vundle?

There's nothing very unusual about the ftdetect and it's working fine with other plugin managers, not something that seems reproducible.

from vim-scala.

paramadeep avatar paramadeep commented on August 18, 2024

I'm facing this issue, I've latest of all.

from vim-scala.

ches avatar ches commented on August 18, 2024

@paramadeep I just peeked at your dotfiles, assuming paramadeep/nagal is the correct place—your .vimrc is missing filetype off before the Vundle setup. That is required according to the Vundle README and VundleVim/Vundle.vim#16. Could you add that and see if it resolves the problem?

Likewise for anyone who experienced this, you may want to confirm that config detail.

from vim-scala.

paramadeep avatar paramadeep commented on August 18, 2024

@ches it worked. My bad I missed it. Thanks a lot.

from vim-scala.

ches avatar ches commented on August 18, 2024

No worries, glad that's solved it and hope that's all takes for most everyone else here too.

from vim-scala.

jamiis avatar jamiis commented on August 18, 2024

@ches I'm still experiencing this problem. I just git pulled the latest version of vundle and insured everything was latest. :set filetype=scala fixes the problem on a per-open-file basis. My vimrc is here, maybe I am doing something wrong?

from vim-scala.

ches avatar ches commented on August 18, 2024

@jamiis You have filetype plugin indent on on line 34, and again redundantly on 164-165—try removing the latter two lines. You also have syntax on on line 35 and and syntax enable on 345. Not sure, but that might also be confusing Vim. The latter probably shouldn't be necessary.

As Derek instructed here, the first thing we'd ask is that you minimize your config to rule out any other plugins as sources of problems. If that eliminates the issue, gradually re-enable plugins and settings until you find the culprit.

from vim-scala.

jamiis avatar jamiis commented on August 18, 2024

@ches that fixed it! thank you.

from vim-scala.

dmitrime avatar dmitrime commented on August 18, 2024

doesn't work for me. even setting filetype=scala does not do anything. vimrc

copying scala.vim to ~/.vim/ftdetect also does nothing.

from vim-scala.

derekwyatt avatar derekwyatt commented on August 18, 2024

This plugin is now part of the Vim distribution. You should just upgrade.
On Tue, Oct 4, 2016 at 3:23 AM Dmitri [email protected] wrote:

doesn't work for me. even setting filetype=scala does not do anything.
vimrc https://github.com/dmitrime/dotfiles/blob/master/vim/vimrc


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#75 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADzdEYjjNdelpW5I1KR_yTKtXovLRTrks5qwf7pgaJpZM4CkU3G
.

from vim-scala.

dmitrime avatar dmitrime commented on August 18, 2024

@derekwyatt thanks! works with vim8.

from vim-scala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.