springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

Version: 1.0.7 Highlighter and Auto completion #37

Closed nacr closed 8 years ago

nacr commented 8 years ago

Hello,

After updating to version 1.0.7 Highlighter and Auto completion are not working.

Using; PhpStorm 2016.1.2 Build #PS-145.1616, built on May 24, 2016 JRE: 1.8.0_77-b03 x86 JVM: Java HotSpot(TM) Server VM by Oracle Corporation

springeye commented 8 years ago

have more error logs?

agileago commented 8 years ago

+1

deckvig commented 8 years ago

+1 PhpStorm 2016.1.2 2016-06-14 22 11 46

nacr commented 8 years ago

sorry no error log.

springeye commented 8 years ago

I guess when there is no install coffeescript plugins

nacr commented 8 years ago

can you rephrase your last comment?

agileago commented 8 years ago

i have enabled coffee plugin. but it is still not work

PascalAnimateur commented 8 years ago

Same problem here, the script portion of .vue files does not get syntax highlighting and code completion.

springeye commented 8 years ago

@PascalAnimateur add lang attr

PascalAnimateur commented 8 years ago

Can confirm using <script lang="javascript"> solves the problem, but could this be detected as the default language?

likeadeckofcards commented 8 years ago

What changed that caused the highlighting to not be active anymore?

PascaleBeier commented 8 years ago

.editorconfig doesn't apply as well when defining script lang="javascript". Pretty meh :(

I'm getting the following error using vue-cli webpack as well:

Error: Cannot resolve module 'javascript'
Ryqsky commented 8 years ago

+1

springeye commented 8 years ago

@PascalAnimateur This version uses the default text, and the next version I will add the default Lang (template, script, style).

springeye commented 8 years ago

@PascaleBeier what???

springeye commented 8 years ago

2 3 @nacr-dev @agileago @deckvig I don't have any problems here.

springeye commented 8 years ago

I'm sorry. Forgot to tell you that the 1.0.7 version must specify the lang attribute for template,script,style tag.(Currently template only supports HTML highlight) @nacr-dev @agileago @deckvig @PascalAnimateur @infernobass7 @Ryqsky

enso-media commented 8 years ago

Adding the lang attribute fixed the highlighter, but brokes laravel elixir and browserify. With the lang-attribute its no longer possible to compile scripts and components: Browserify Failed!: 'import' and 'export' may appear only with 'sourceType: module' (19:0)

springeye commented 8 years ago

@enso-media Could you provide a screenshot, thank you。Join the chat Join the chat at https://gitter.im/henjue/vue-for-idea

enso-media commented 8 years ago

screen

Ryqsky commented 8 years ago

How long will it take to release next versions ? I am supporter of this project and I rely on this project when I'm writing code. Thank you.

PascaleBeier commented 8 years ago

@henjue I am having the same issue @enso-media is facing with browserify - only that I'm using webpack.

springeye commented 8 years ago

@enso-media @Ryqsky I don't think the problem is vue-for-idea. Suggest you look https://github.com/babel/babelify/issues/136

jsl9208 commented 8 years ago

Vue-loader can't resolve style tag with lang="scss", and there are too many annoying error highlighting when I write scss in lang="sass" tag now. What can I do to solve this problem?

enso-media commented 8 years ago

Browserify still works if those attributes are removed in the components. Its not documented or best practice to use a lang-attribute in vue component tags. So maybe its not a specific vue-for-idea bug, however the lang-attribute is not supposed to be there. Downgrading for now, as everything worked as expected before...

springeye commented 8 years ago

@enso-media see https://github.com/vuejs/vue-loader ;vue-loader is support lang attribute

bhulsman commented 8 years ago

I downgraded to 1.0.6; https://plugins.jetbrains.com/plugin/8123?pr=&showAllUpdates=true

Currently I don't have time to figure this out and while the new highlighting is a lot better, none (without the lang attribute) is worse.

springeye commented 8 years ago

@jsl9208 You tell me your error message?

jsl9208 commented 8 years ago

@henjue sry, it's not a plugin bug, I find a solution for webpack+vue-loader to compile lang=scss tag:

vue: {
    loaders: {
      scss: 'style!css!sass'
    }
}
springeye commented 8 years ago

update version to 1.0.71.default use css and javascript。

springeye commented 8 years ago

support formatter and commenter on version 1.0.71

murbanowicz commented 8 years ago

I think it should be re-opened. The issue is still preset or again, I do not know. I have 1.0.73 on one computer and alpha on another. The same issue - autocompletion does not work, HTML tags are not automatically closed etc. IT's making coding components really hard.

springeye commented 8 years ago

@mariaczi You add the lang attribute?My test is normal.

murbanowicz commented 8 years ago

What you mean?

wt., 21 cze 2016, 05:40 użytkownik henjue notifications@github.com napisał:

@mariaczi https://github.com/mariaczi You add the lang attribute?My test is normal.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/henjue/vue-for-idea/issues/37#issuecomment-227338878, or mute the thread https://github.com/notifications/unsubscribe/AI80kgHcrFF1TwzwWUI7GnxppvNJzF06ks5qN2tIgaJpZM4I1TrI .

murbanowicz commented 8 years ago

Autocompletion and closing tags are not working in all - HTML template, SCRIPT and STYLE.